Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-B
perl-Bot-BasicBot-Pluggable-Module-Crontab
perl-Bot-BasicBot-Pluggable-Module-Crontab.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Bot-BasicBot-Pluggable-Module-Crontab.spec of Package perl-Bot-BasicBot-Pluggable-Module-Crontab
# # spec file for package perl-Bot-BasicBot-Pluggable-Module-Crontab # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: perl-Bot-BasicBot-Pluggable-Module-Crontab Version: 1.01 Release: 0 %define cpan_name Bot-BasicBot-Pluggable-Module-Crontab Summary: Provides a crontab-like message service for IRC channels License: Artistic-2.0 Group: Development/Libraries/Perl Url: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BA/BARBIE/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Bot::BasicBot::Pluggable) BuildRequires: perl(DateTime) BuildRequires: perl(FindBin::libs) BuildRequires: perl(Test::MockModule) BuildRequires: perl(Test::More) >= 0.70 BuildRequires: perl(Time::Crontab) Requires: perl(Bot::BasicBot::Pluggable) Requires: perl(DateTime) Requires: perl(FindBin::libs) Requires: perl(Test::MockModule) Requires: perl(Test::More) >= 0.70 Requires: perl(Time::Crontab) Recommends: perl(Test::CPAN::Meta) Recommends: perl(Test::CPAN::Meta::JSON) Recommends: perl(Test::Pod) >= 1.00 Recommends: perl(Test::Pod::Coverage) >= 0.08 %{perl_requires} %description This module does not respond to user messages, public or private. It is purely for posting messages to notminated channels as a specifed time. A crontab like file is used to load instruction sets, which are then acted on at the designated time. Examples are: +-- minute | +-- hour | | +-- day of the month | | | +-- month (1= January, ...) | | | | +-- day of the week (0 = sunday ....) | | | | | +-- week of the year (2/0 = even weeks, 2/1 = odd weeks) v v v v v v * * * * * * #dev Minute Check! 0 * * * * * #dev Hour Check! */10 * * * * * #dev 10 minute Check! 0 9 * * 1 2/0 #dev Review every even week 0 9 * * 1 3/1 #dev Review every third Week As per normal crontabs, the first 5 fields allow for ranges, steps as well as strict values. The 6th field is the week of the year field. In working with Scrum teams running 2 week sprints, knowing when it was an odd week or even week, meant we knew whether we had a regular stand-up or sprint planning meeting. By default this field can be attributed to every week using the traditional '*' symbol. However, to determine when to run, a two part value is used, separated by a '/' symbol. The first part designates the modulus value, and the second part the result it must match. For example, to trigger fornightly on week 1, 3, 5, etc, this would be '2/1'. To trigger every second week of a 3 week sprint, this would be '3/1'. The 7th field determines the channel to post to. Note that the bot cannot post to all channels. However, may be a feature added in a future release. The final free form field is the message. The complete line will be sent, with any line continuation markers ignored. Line continuation markers may be a feature in the future. %prep %setup -q -n %{cpan_name}-%{version} find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes examples README %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor