https://bugzilla.redhat.com/show_bug.cgi?id=2350109 --- Comment #42 from Pramod V U <pramodvu1502@xxxxxxxxx> --- Unfortunately the character limit is reached before the specfile can be fit into the "custom" script... The specfile really needs to be upstream... things would be easier... The specfile for reference: ``` # https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd # https://github.com/systemd/systemd/blob/42911a567dc22c3115fb3ee3c56a7dcfb034f102/src/core/macros.systemd.in # "If your package includes one or more systemd units that need # to be enabled by default on package installation, # they must be covered by the Fedora preset policy." Name: systemd-cron Version: 2.5.1 Release: %{autorelease} License: MIT Summary: A systemd generator to provide (ana)cron functionality Url: https://github.com/systemd-cron/systemd-cron Source0: https://github.com/systemd-cron/systemd-cron/archive/v%{version}.tar.gz Provides: cronie Provides: cronie-anacron Conflicts: cronie Conflicts: cronie-anacron Requires: crontabs Requires: systemd Requires: libmd BuildRequires: g++ BuildRequires: libmd-devel BuildRequires: systemd-rpm-macros %description A systemd generator implementing (ana)cron. It uses systemd.timer and systemd.service under the hood. %pre # Prevent execution of boot and reboot scripts on installation touch %{_rundir}/crond.reboot touch %{_rundir}/crond.bootdir %preun %systemd_preun cron.target %post %systemd_post cron.target # To apply the /var/spool/cron and crontab group to the system on installation systemctl reload-or-restart systemd-sysusers.service systemd-tmpfiles-setup.service %postun %systemd_postun_with_restart cron.target %prep %setup -q %build # Don't use the %%configure macro as this is not an autotool script ./configure \ --version="%{version}" \ --prefix="%{_prefix}" \ --bindir="%{_bindir}" \ --datadir="%{_datadir}" \ --libdir="%{_libdir}" \ --libexecdir="%{_libexecdir}" \ --mandir="%{_mandir}" \ --docdir="%{_docdir}" \ --unitdir="%{_unitdir}" \ --generatordir="%{_systemdgeneratordir}" \ --sysusersdir="%{_sysusersdir}" \ --enable-runparts=no \ --enable-minutely=yes \ --enable-quarterly=yes \ --enable-semi_annually=yes \ --enable-boot=yes # Disabled run-parts i.e. static single units for each granuarity level. # Instead opting to use only the systemd-crontab-generator # run-parts override the generator when installed # # Also enabled all disabled-by-default granularity levels # # cron.boot isn't otherwise supported in fedora, # But we enable it anyway for those who want it. # Compile %make_build %install %make_install # Required directories mkdir -p "%{buildroot}%{_sysconfdir}/cron.d/" # Systemd preset policy mkdir -p "%{buildroot}%{_presetdir}" echo 'enable cron.target' > "%{buildroot}%{_presetdir}/50-systemd-cron.preset" # Appropriate group(s); echo 'g crontab - -' >> "%{buildroot}%{_sysusersdir}/systemd-cron.conf" # Appending this to systemd-cron.conf already having _cron_failure # Preparing /var/spool/cron using tmpfiles.d mkdir -p "%{buildroot}%{_tmpfilesdir}" echo 'd /var/spool/cron 1730 root crontab' >> "%{buildroot}%{_tmpfilesdir}/systemd-cron.conf" # /var/spool/cron not included in package as tmpfiles handles it # setgid helper chmod g+s "%{buildroot}%{_libexecdir}/systemd-cron/crontab_setgid" %files %license LICENSE %doc README.md CHANGELOG %dir %{_sysconfdir}/cron.d/ %dir %{_libexecdir}/systemd-cron %{_bindir}/crontab %{_libexecdir}/systemd-cron/mail_for_job %{_libexecdir}/systemd-cron/boot_delay %{_libexecdir}/systemd-cron/remove_stale_stamps %attr(2755, root, crontab) %{_libexecdir}/systemd-cron/crontab_setgid %{_systemdgeneratordir}/systemd-crontab-generator %{_presetdir}/50-systemd-cron.preset %{_unitdir}/cron.target %{_unitdir}/cron-update.path %{_unitdir}/cron-update.service %{_unitdir}/cron-mail@.service %{_unitdir}/systemd-cron-cleaner.service %{_unitdir}/systemd-cron-cleaner.timer %{_sysusersdir}/systemd-cron.conf %{_tmpfilesdir}/systemd-cron.conf %{_mandir}/man1/crontab.* %{_mandir}/man5/crontab.* %{_mandir}/man5/anacrontab.* %{_mandir}/man7/systemd.cron.* %{_mandir}/man8/systemd-crontab-generator.* %changelog %autochangelog ``` -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component https://bugzilla.redhat.com/show_bug.cgi?id=2350109 Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202350109%23c42 -- _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue