git.annexia.org
/
whenjobs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix various problems in the spec file (thanks Michael Scherer).
[whenjobs.git]
/
whenjobs.spec.in
diff --git
a/whenjobs.spec.in
b/whenjobs.spec.in
index
70b85fb
..
8b663e4
100644
(file)
--- a/
whenjobs.spec.in
+++ b/
whenjobs.spec.in
@@
-1,9
+1,12
@@
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%define debug_package %{nil}
%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@
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
-Release:
1
+Release:
@RPM_RELEASE@%{?dist}
Summary: Replacement for cron with dependencies
Group: Development/Libraries
Summary: Replacement for cron with dependencies
Group: Development/Libraries
@@
-17,15
+20,23
@@
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-calendar-devel >= 2
BuildRequires: ocaml-ocamlnet-devel >= 3
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-calendar-devel >= 2
BuildRequires: ocaml-ocamlnet-devel >= 3
BuildRequires: ocaml-camlp4-devel
+BuildRequires: mailx
# For building manual pages.
BuildRequires: /usr/bin/perldoc
# For building manual pages.
BuildRequires: /usr/bin/perldoc
+# Not clear what requires this, but it is needed.
+BuildRequires: pcre-devel
+BuildRequires: ocaml-pcre-devel
+
# Requires camlp4 and ocamlfind at runtime.
Requires: /usr/bin/ocamlc
Requires: ocaml-camlp4-devel
Requires: ocaml-findlib-devel
# Requires camlp4 and ocamlfind at runtime.
Requires: /usr/bin/ocamlc
Requires: ocaml-camlp4-devel
Requires: ocaml-findlib-devel
+# Requires mailx for sending email.
+Requires: mailx
+
%description
Whenjobs is a powerful but simple cron replacement.
%description
Whenjobs is a powerful but simple cron replacement.
@@
-54,16
+65,21
@@
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+# Add a prelink blacklist.
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d
+cat <<EOF >$RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d/%{name}.conf
+-b %{_bindir}/whenjobs
+-b %{_sbindir}/whenjobsd
+EOF
%files
%files
-%defattr(-,root,root,-)
%doc COPYING README
%doc COPYING README
+%{_sysconfdir}/prelink.conf.d/%{name}.conf
%{_bindir}/whenjobs
%{_sbindir}/whenjobsd
%{_bindir}/whenjobs
%{_sbindir}/whenjobsd
+%dir %{_libdir}/whenjobs
+%{_libdir}/whenjobs/*.cmi
%{_libdir}/whenjobs/pa_when.cmo
%{_libdir}/whenjobs/whenlib.cma
%{_mandir}/man1/*.1*
%{_libdir}/whenjobs/pa_when.cmo
%{_libdir}/whenjobs/whenlib.cma
%{_mandir}/man1/*.1*
@@
-71,5
+87,5
@@
rm -rf $RPM_BUILD_ROOT
%changelog
%changelog
-*
Fri Feb 17 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-1
+*
Sun Mar 18 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-@RPM_RELEASE@
- Initial release.
- Initial release.