Fix various problems in the spec file (thanks Michael Scherer).
authorRichard W.M. Jones <rjones@redhat.com>
Sun, 18 Mar 2012 09:53:41 +0000 (09:53 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sun, 18 Mar 2012 09:53:41 +0000 (09:53 +0000)
whenjobs.spec.in

index cb52aa6..8b663e4 100644 (file)
@@ -6,7 +6,7 @@
 
 Name:            @PACKAGE_NAME@
 Version:         @PACKAGE_VERSION@
-Release:         @RPM_RELEASE@
+Release:         @RPM_RELEASE@%{?dist}
 Summary:         Replacement for cron with dependencies
 
 Group:           Development/Libraries
@@ -26,7 +26,8 @@ BuildRequires:   mailx
 BuildRequires:   /usr/bin/perldoc
 
 # Not clear what requires this, but it is needed.
-BuildRequires:   pcre-devel, ocaml-pcre-devel
+BuildRequires:   pcre-devel
+BuildRequires:   ocaml-pcre-devel
 
 # Requires camlp4 and ocamlfind at runtime.
 Requires:        /usr/bin/ocamlc
@@ -72,16 +73,12 @@ cat <<EOF >$RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d/%{name}.conf
 EOF
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc COPYING README
 %{_sysconfdir}/prelink.conf.d/%{name}.conf
 %{_bindir}/whenjobs
 %{_sbindir}/whenjobsd
+%dir %{_libdir}/whenjobs
 %{_libdir}/whenjobs/*.cmi
 %{_libdir}/whenjobs/pa_when.cmo
 %{_libdir}/whenjobs/whenlib.cma
@@ -90,5 +87,5 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
-* Fri Feb 17 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
+* Sun Mar 18 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
 - Initial release.