* configure.ac (SPEC_VERSION, CHANGELOGTIME): Define.
(AC_CONFIG_FILES): Add strace.spec.
* strace.spec: Rename to ...
* strace.spec.in: ... this file. Parametrize Version, srcname,
and the last %changelog entry. Initialize .tarball-version file.
AM_MAINTAINER_MODE
AC_CANONICAL_HOST
+SPEC_VERSION="$(echo "$PACKAGE_VERSION" | sed s/-/./g)"
+AC_SUBST(SPEC_VERSION)
+CHANGELOGTIME="$(LC_TIME=C date '+%a %b %d %Y')"
+AC_SUBST(CHANGELOGTIME)
+
AC_PROG_CC
AC_PROG_CPP
AX_PROG_CC_FOR_BUILD
st_MPERS([m32], [aarch64|powerpc64|sparc64|tile|x32|x86_64])
st_MPERS([mx32], [x86_64])
-AC_CONFIG_FILES([Makefile tests/Makefile tests-m32/Makefile tests-mx32/Makefile])
+AC_CONFIG_FILES([Makefile
+ tests/Makefile
+ tests-m32/Makefile
+ tests-mx32/Makefile
+ strace.spec])
AC_OUTPUT
Summary: Tracks and displays system calls associated with a running process
Name: strace
-Version: 4.12
+Version: @SPEC_VERSION@
Release: 1%{?dist}
-%define srcname %name-%version
+%define srcname @PACKAGE_TARNAME@-@PACKAGE_VERSION@
License: BSD
Group: Development/Debuggers
URL: http://sourceforge.net/projects/strace/
%prep
%setup -q -n %{srcname}
+echo -n %version-%release > .tarball-version
%build
echo 'BEGIN OF BUILD ENVIRONMENT INFORMATION'
%endif
%changelog
+* @CHANGELOGTIME@ @PACKAGE_BUGREPORT@ - @SPEC_VERSION@-%release
+- @PACKAGE_STRING@ snapshot.
+
* Tue May 31 2016 Dmitry V. Levin <ldv@altlinux.org> - 4.12-1
- 4.11.0.163.9720 -> 4.12.