# Change the first '-' to a '.', so version-comparing tools work properly.
# Remove the "g" in git describe's output string, to save a byte.
- v=`echo "$v" | sed 's/-/.0./;s/\(.*\)-g/\1-/'`;
+ # Change remaining '-' to '.', so version conforms to policies.
+ v=`echo "$v" | sed 's/-/.0./;s/\(.*\)-g/\1-/;s/-/./g'`;
v_from_git=1
elif test "x$fallback" = x || git --version >/dev/null 2>&1; then
v=UNKNOWN
Summary: Tracks and displays system calls associated with a running process
Name: strace
-Version: @SPEC_VERSION@
+Version: @PACKAGE_VERSION@
Release: 1%{?dist}
-%define srcname @PACKAGE_TARNAME@-@PACKAGE_VERSION@
License: BSD
Group: Development/Debuggers
URL: http://sourceforge.net/projects/strace/
-Source: http://downloads.sourceforge.net/strace/%{srcname}.tar.xz
+Source: http://downloads.sourceforge.net/strace/%{name}-%{version}.tar.xz
%if 0%{?fedora_version} >= 20
%define buildrequires_libunwind_devel BuildRequires: libunwind-devel
%endif
%endif
%prep
-%setup -q -n %{srcname}
+%setup -q
echo -n %version-%release > .tarball-version
%build
%endif
%changelog
-* @CHANGELOGTIME@ @PACKAGE_BUGREPORT@ - @SPEC_VERSION@-%release
+* @CHANGELOGTIME@ @PACKAGE_BUGREPORT@ - @PACKAGE_VERSION@-%release
- @PACKAGE_STRING@ snapshot.
* Tue May 31 2016 Dmitry V. Levin <ldv@altlinux.org> - 4.12-1