forked from vixie/cron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
svcron.spec.in
106 lines (94 loc) · 3.3 KB
/
svcron.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
%undefine _missing_build_ids_terminate_build
%global _unpackaged_files_terminate_build 1
%if %{defined _project}
# define if building on openSUSE build service
%global build_on_obs 1
%else
%define _project local
%global build_on_obs 0
%global _hardened_build 1
%endif
%global xxxxbug 1
%if %{defined nodebug}
%global debug_package %{nil}
%endif
%global _prefix @prefix@
%if 0%{?suse_version}
%global dist suse
%global disttag suse
%endif
%if 0%{?fedora_version}
%global dist %{?dist}
%global disttag fedora
%endif
Summary: Utilities for Safe Banking
Name: svcron
Version: @version@
Release: @release@%{?dist}
%if %build_on_obs == 1
License: GPL-3.0+
%else
License: GPLv3
%endif
Group: System Environment/Base
Requires: rpm
BuildRequires: gcc libqmail-devel autoconf automake libtool sed m4
Source0: http://downloads.sourceforge.net/indimail/%{name}-%{version}.tar.gz
URL: https://github.com/indimail/svcron
%description
svcron is a daemon that runs specified programs at scheduled times. This
package contains Paul Vixie's implementation of cron
%prep
%setup -q
%build
%{__mkdir_p} m4
aclocal -I m4
autoreconf -fis
%configure --prefix=%{_prefix} \
--enable-crondir=%{_sysconfdir}/indimail/cron \
--enable-spooldir=crontabs \
--enable-syscrondir=%{_sysconfdir}/indimail/cron.d \
--enable-syscrontab=%{_sysconfdir}/indimail/crontab \
--mandir=%{_prefix}/share/man
%install
%{__make} %{?_smp_mflags}
%if %{defined nodebug}
%{__make} %{?_smp_mflags} DESTDIR=%{buildroot} install-strip
%else
%{__make} %{?_smp_mflags} DESTDIR=%{buildroot} install
%endif
%{__mkdir_p} %{buildroot}%{_sysconfdir}/indimail/cron
%{__mkdir_p} %{buildroot}%{_sysconfdir}/indimail/cron/crontabs
%{__mkdir_p} %{buildroot}%{_sysconfdir}/indimail/cron.d
%if %{undefined nodebug}
/bin/chmod -R 755 %{buildroot}%{_prefix}/bin
%endif
%files
%defattr(-, root, root,-)
%attr(755,root,root) %{_prefix}/sbin/svcron
%attr(755,root,root) %{_prefix}/bin/svcrontab
%dir %attr(700,root,root ) %{_sysconfdir}/indimail/cron
%dir %attr(700,root,root ) %{_sysconfdir}/indimail/cron/crontabs
%if %{undefined suse_version} && %{undefined sles_version}
%if 0%{?centos_version} > 700 || 0%{?rhel_version} > 700 || 0%{?centos_ver} > 7 || 0%{?rhel} > 7 || 0%{?scientificlinux_version} > 700
%ghost %attr(700,root,root ) %{_sysconfdir}/indimail/cron/crontabs/*
%endif
%else
%endif
%if %{defined suse_version} && %{defined sles_version}
%dir %attr(755,root,root ) %{_sysconfdir}/indimail
%endif
%attr(755,root,root ) %{_sysconfdir}/indimail/crontab
%dir %attr(755,root,root ) %{_sysconfdir}/indimail/cron.d
%dir %attr(755,root,root ) %{_prefix}/share/doc/svcron
%doc %attr(644,root,root) %{_prefix}/share/man/man1/*
%doc %attr(644,root,root) %{_prefix}/share/man/man5/*
%doc %attr(644,root,root) %{_prefix}/share/man/man8/*
%if %build_on_obs == 0
%license %attr(0644,root,root) %{_prefix}/share/doc/%{name}/LICENSE
%else
%attr(0644,root,root) %{_prefix}/share/doc/%{name}/LICENSE
%endif
%attr(0644,root,root) %{_prefix}/share/doc/%{name}/AUTHORS
%attr(0644,root,root) %{_prefix}/share/doc/%{name}/ChangeLog
%changelog