- refresh spec files (move license to licensedir)
OBS-URL: https://build.opensuse.org/package/show/Base:System/cronie?expand=0&rev=193
This commit is contained in:
parent
db4b3ee70b
commit
3f0833fcd1
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 12 22:08:43 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- refresh spec files (move license to licensedir)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 31 14:25:09 UTC 2020 - Kristyna Streitova <kstreitova@suse.com>
|
Mon Aug 31 14:25:09 UTC 2020 - Kristyna Streitova <kstreitova@suse.com>
|
||||||
|
|
||||||
|
58
cronie.spec
58
cronie.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cronie
|
# spec file for package cronie
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,12 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define cron_configs %{_sysconfdir}/pam.d/crond %{_sysconfdir}/crontab %{_sysconfdir}/cron.deny
|
||||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
%define _fillupdir /var/adm/fillup-templates
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define cron_configs %{_sysconfdir}/pam.d/crond %{_sysconfdir}/crontab %{_sysconfdir}/cron.deny
|
|
||||||
Name: cronie
|
Name: cronie
|
||||||
Version: 1.5.5
|
Version: 1.5.5
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -58,19 +57,18 @@ BuildRequires: libselinux-devel
|
|||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: pkgconfig(systemd)
|
BuildRequires: pkgconfig(systemd)
|
||||||
|
Requires: mail
|
||||||
Requires(post): %fillup_prereq
|
Requires(post): %fillup_prereq
|
||||||
Requires(post): permissions
|
Requires(post): permissions
|
||||||
Requires(pre): cron
|
Requires(pre): cron
|
||||||
%if 0%{?suse_version} >= 1330
|
|
||||||
Requires(pre): group(trusted)
|
|
||||||
%endif
|
|
||||||
Requires: mail
|
|
||||||
Suggests: mailx
|
Suggests: mailx
|
||||||
Conflicts: cron <= 4.1
|
Conflicts: cron <= 4.1
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
# This is needed as cron subpkg has its own version
|
# This is needed as cron subpkg has its own version
|
||||||
%{expand: %%define cronie_version %{version}}
|
%{expand: %%define cronie_version %{version}}
|
||||||
|
%if 0%{?suse_version} >= 1330
|
||||||
|
Requires(pre): group(trusted)
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
cron automatically starts programs at specific times. Add new entries
|
cron automatically starts programs at specific times. Add new entries
|
||||||
@ -125,7 +123,7 @@ autoreconf -f -i
|
|||||||
--with-inotify \
|
--with-inotify \
|
||||||
--enable-pie \
|
--enable-pie \
|
||||||
SPOOL_DIR="%{_localstatedir}/spool/cron/tabs"
|
SPOOL_DIR="%{_localstatedir}/spool/cron/tabs"
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
@ -198,33 +196,33 @@ exit 0
|
|||||||
[ -e %{_localstatedir}/spool/anacron/cron.monthly ] || touch %{_localstatedir}/spool/anacron/cron.monthly
|
[ -e %{_localstatedir}/spool/anacron/cron.monthly ] || touch %{_localstatedir}/spool/anacron/cron.monthly
|
||||||
|
|
||||||
%verifyscript -n cron
|
%verifyscript -n cron
|
||||||
%verify_permissions -e /etc/cron.d/
|
%verify_permissions -e %{_sysconfdir}/cron.d/
|
||||||
%verify_permissions -e /etc/cron.daily/
|
%verify_permissions -e %{_sysconfdir}/cron.daily/
|
||||||
%verify_permissions -e /etc/cron.hourly/
|
%verify_permissions -e %{_sysconfdir}/cron.hourly/
|
||||||
%verify_permissions -e /etc/cron.monthly/
|
%verify_permissions -e %{_sysconfdir}/cron.monthly/
|
||||||
%verify_permissions -e /etc/cron.weekly/
|
%verify_permissions -e %{_sysconfdir}/cron.weekly/
|
||||||
|
|
||||||
%post -n cron
|
%post -n cron
|
||||||
%set_permissions /etc/cron.d/
|
%set_permissions %{_sysconfdir}/cron.d/
|
||||||
%set_permissions /etc/cron.daily/
|
%set_permissions %{_sysconfdir}/cron.daily/
|
||||||
%set_permissions /etc/cron.hourly/
|
%set_permissions %{_sysconfdir}/cron.hourly/
|
||||||
%set_permissions /etc/cron.monthly/
|
%set_permissions %{_sysconfdir}/cron.monthly/
|
||||||
%set_permissions /etc/cron.weekly/
|
%set_permissions %{_sysconfdir}/cron.weekly/
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%license COPYING
|
||||||
%doc AUTHORS COPYING README ChangeLog
|
%doc AUTHORS README ChangeLog
|
||||||
%dir %attr(700,root,root) %{_localstatedir}/spool/cron
|
%dir %attr(700,root,root) %{_localstatedir}/spool/cron
|
||||||
%dir %attr(700,root,root) %{_localstatedir}/spool/cron/tabs
|
%dir %attr(700,root,root) %{_localstatedir}/spool/cron/tabs
|
||||||
%dir %{_localstatedir}/spool/cron/lastrun
|
%dir %{_localstatedir}/spool/cron/lastrun
|
||||||
%config %{_sysconfdir}/pam.d/crond
|
%config %{_sysconfdir}/pam.d/crond
|
||||||
%verify(not mode) %config(noreplace) %{_sysconfdir}/crontab
|
%verify(not mode) %config(noreplace) %{_sysconfdir}/crontab
|
||||||
%config(noreplace) %{_sysconfdir}/cron.deny
|
%config(noreplace) %{_sysconfdir}/cron.deny
|
||||||
%{_mandir}/man1/crontab.1%{ext_man}
|
%{_mandir}/man1/crontab.1%{?ext_man}
|
||||||
%{_mandir}/man5/crontab.5%{ext_man}
|
%{_mandir}/man5/crontab.5%{?ext_man}
|
||||||
%{_mandir}/man8/cron.8%{ext_man}
|
%{_mandir}/man8/cron.8%{?ext_man}
|
||||||
%{_mandir}/man8/crond.8%{ext_man}
|
%{_mandir}/man8/crond.8%{?ext_man}
|
||||||
%{_mandir}/man1/cronnext.1%{ext_man}
|
%{_mandir}/man1/cronnext.1%{?ext_man}
|
||||||
%verify(not mode) %attr (4750,root,trusted) %{_bindir}/crontab
|
%verify(not mode) %attr (4750,root,trusted) %{_bindir}/crontab
|
||||||
%attr (755,root,root) %{_sbindir}/cron
|
%attr (755,root,root) %{_sbindir}/cron
|
||||||
%attr (755,root,root) %{_bindir}/cronnext
|
%attr (755,root,root) %{_bindir}/cronnext
|
||||||
@ -234,7 +232,6 @@ exit 0
|
|||||||
%{_fillupdir}/sysconfig.cron
|
%{_fillupdir}/sysconfig.cron
|
||||||
|
|
||||||
%files anacron
|
%files anacron
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{_sbindir}/anacron
|
%{_sbindir}/anacron
|
||||||
%attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron
|
%attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron
|
||||||
%config(noreplace) %{_sysconfdir}/anacrontab
|
%config(noreplace) %{_sysconfdir}/anacrontab
|
||||||
@ -242,11 +239,10 @@ exit 0
|
|||||||
%ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.daily
|
%ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.daily
|
||||||
%ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.weekly
|
%ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.weekly
|
||||||
%ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.monthly
|
%ghost %verify(not md5 size mtime) %{_localstatedir}/spool/anacron/cron.monthly
|
||||||
%{_mandir}/man5/anacrontab.5%{ext_man}
|
%{_mandir}/man5/anacrontab.5%{?ext_man}
|
||||||
%{_mandir}/man8/anacron.8%{ext_man}
|
%{_mandir}/man8/anacron.8%{?ext_man}
|
||||||
|
|
||||||
%files -n cron
|
%files -n cron
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc cron_to_cronie.README
|
%doc cron_to_cronie.README
|
||||||
%dir %attr(755,root,root) %{_sysconfdir}/cron.d
|
%dir %attr(755,root,root) %{_sysconfdir}/cron.d
|
||||||
%dir %attr(755,root,root) %{_sysconfdir}/cron.hourly
|
%dir %attr(755,root,root) %{_sysconfdir}/cron.hourly
|
||||||
|
Loading…
Reference in New Issue
Block a user