Add prelink blacklist to specfile.
[whenjobs.git] / whenjobs.spec.in
1 %define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
2 %define debug_package %{nil}
3
4 Name:            @PACKAGE_NAME@
5 Version:         @PACKAGE_VERSION@
6 Release:         1
7 Summary:         Replacement for cron with dependencies
8
9 Group:           Development/Libraries
10 License:         GPLv2+
11 URL:             http://people.redhat.com/~rjones/whenjobs
12 Source0:         http://people.redhat.com/~rjones/whenjobs/files/%{name}-%{version}.tar.gz
13
14 BuildRequires:   ocaml >= 3.12.0
15 BuildRequires:   ocaml-ocamldoc
16 BuildRequires:   ocaml-findlib-devel
17 BuildRequires:   ocaml-calendar-devel >= 2
18 BuildRequires:   ocaml-ocamlnet-devel >= 3
19 BuildRequires:   ocaml-camlp4-devel
20
21 # For building manual pages.
22 BuildRequires:   /usr/bin/perldoc
23
24 # Requires camlp4 and ocamlfind at runtime.
25 Requires:        /usr/bin/ocamlc
26 Requires:        ocaml-camlp4-devel
27 Requires:        ocaml-findlib-devel
28
29
30 %description
31 Whenjobs is a powerful but simple cron replacement.
32
33 Two key advantages over cron are a simpler syntax for writing rules
34 and a powerful dependency system that lets one job depend on variables
35 set when other jobs run (allowing, for example, one job to run only
36 when another job has finished successfully).
37
38
39 %prep
40 %setup -q
41
42
43 %build
44 %configure
45 make %{?_smp_mflags}
46
47
48 %check
49 make check
50
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 make DESTDIR=$RPM_BUILD_ROOT install
56
57 # Add a prelink blacklist.
58 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d
59 cat <<EOF >$RPM_BUILD_ROOT/%{_sysconfdir}/prelink.conf.d/%{name}.conf
60 -b %{_bindir}/whenjobs
61 -b %{_sbindir}/whenjobsd
62 EOF
63
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68
69 %files
70 %defattr(-,root,root,-)
71 %doc COPYING README
72 %{_sysconfdir}/prelink.conf.d/%{name}.conf
73 %{_bindir}/whenjobs
74 %{_sbindir}/whenjobsd
75 %{_libdir}/whenjobs/pa_when.cmo
76 %{_libdir}/whenjobs/whenlib.cma
77 %{_mandir}/man1/*.1*
78 %{_mandir}/man8/*.8*
79
80
81 %changelog
82 * Fri Feb 17 2012 Richard W.M. Jones <rjones@redhat.com> - @PACKAGE_VERSION@-1
83 - Initial release.