Make RPM release in spec file into a variable (RPM_RELEASE).
[whenjobs.git] / whenjobs.spec.in
index 22ad6de..aba6433 100644 (file)
@@ -1,9 +1,12 @@
 %define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
 %define debug_package %{nil}
 
+# Prevent unwanted bytecode stripping by RPM.
+%define __strip /bin/true
+
 Name:            @PACKAGE_NAME@
 Version:         @PACKAGE_VERSION@
-Release:         1
+Release:         @RPM_RELEASE@
 Summary:         Replacement for cron with dependencies
 
 Group:           Development/Libraries
@@ -79,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.