%global __requires_exclude perl\\(Time::ParseDate\\) Name: perl-Schedule-Cron Summary: Provides a simple but complete cron like scheduler Version: 1.04 Release: 1%{?dist} License: GPL+ or Artistic URL: https://metacpan.org/release/Schedule-Cron BuildArch: noarch Source0: https://cpan.metacpan.org/authors/id/N/NH/NHUBBARD/Schedule-Cron-%{version}.tar.gz # The following license text is included due to the "perl" license assignment # shown in Makefile.PL Source1: http://dev.perl.org/licenses/#/%{name}-Licensing.html BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Basename) BuildRequires: perl(strict) BuildRequires: perl(warnings) BuildRequires: perl(Data::Dumper) BuildRequires: perl(subs) BuildRequires: perl(vars) BuildRequires: findutils BuildRequires: coreutils BuildRequires: perl(POSIX) # Needed during build for the perl test BuildRequires: perl(Time::ParseDate) >= 2011.0505 BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod::Coverage) Requires: perl(Config) Requires: perl(Time::ParseDate) >= 2011.0505 Requires: perl(POSIX) Requires: perl(Term::ReadLine) %description This module provides a simple but complete cron like scheduler. I.e this modules can be used for periodically executing Perl subroutines. The dates and parameters for the subroutines to be called are specified with a format known as crontab entry (see man page crontab(5) or documentation of Schedule::Cron). The philosophy behind Schedule::Cron is to call subroutines periodically from within one single Perl program instead of letting cron trigger several (possibly different) Perl scripts. Everything under one roof. Furthermore Schedule::Cron provides mechanism to create crontab entries dynamically, which isn't that easy with cron. Schedule::Cron knows about all extensions (well, at least all extensions I'm aware of, i.e those of the so called "Vixie" cron) for crontab entries like ranges including 'steps', specification of month and days of the week by name or coexistence of lists and ranges in the same field. And even a bit more (like lists and ranges with symbolic names). This module is rather effective concerning system load. It calculates the execution dates in advance and will sleep until those dates are reached (and wont wake up every minute to check for execution like cron). However, it relies on the accuracy of your sleep() system call. %prep %autosetup -p 1 -n Schedule-Cron-%{version} cp -a %{SOURCE1} Licensing.html %build %{__perl} Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 %make_build %install %make_build pure_install DESTDIR=%{buildroot} find %{buildroot} -type f -name .packlist -delete %{_fixperms} %{buildroot}/* %check %make_build test %files %license Licensing.html %doc Changes README examples/ %{perl_vendorlib}/Schedule/ %{_mandir}/man3/* %changelog * Sat Oct 08 2022 Andrew Bauer - 1.04-1 - 1.04 release * Thu Oct 06 2022 Andrew Bauer - 1.03-1 - 1.03 release * Fri Jul 22 2022 Fedora Release Engineering - 1.01-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue May 31 2022 Jitka Plesnikova - 1.01-9 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.01-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.01-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.01-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.01-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.01-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.01-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.01-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Dec 12 2018 Andrew Bauer - 1.01-1 - Initial specfile