Make RPM release in spec file into a variable (RPM_RELEASE).
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 22 Feb 2012 14:05:57 +0000 (14:05 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 22 Feb 2012 14:07:49 +0000 (14:07 +0000)
configure.ac
whenjobs.spec.in

index 4bd2e41..c2b9725 100644 (file)
 AC_INIT([whenjobs],0.0.1)
 AM_INIT_AUTOMAKE([foreign])
 
+dnl Only used temporarily while whenjobs.spec is contained in the
+dnl tarball.  We will remove this later.
+AC_SUBST([RPM_RELEASE],[1])
+
 AC_CONFIG_MACRO_DIR([m4])
 
 dnl Allow all GNU/Linux functions.
index 500c9a0..aba6433 100644 (file)
@@ -6,7 +6,7 @@
 
 Name:            @PACKAGE_NAME@
 Version:         @PACKAGE_VERSION@
-Release:         1
+Release:         @RPM_RELEASE@
 Summary:         Replacement for cron with dependencies
 
 Group:           Development/Libraries
@@ -82,5 +82,5 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
-* Fri Feb 17 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-1
+* Fri Feb 17 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
 - Initial release.