commit e2debd36a43e33daef4fd43357be1b3fa98a917b Author: Andrea Veri <av@xxxxxxxxx> Date: Thu May 9 18:06:06 2013 +0200 First package upload. .gitignore | 1 + perl-Schedule-RateLimiter.spec | 50 ++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 52 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..0c6a30e 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Schedule-RateLimiter-0.01.tar.gz diff --git a/perl-Schedule-RateLimiter.spec b/perl-Schedule-RateLimiter.spec new file mode 100644 index 0000000..e0311e8 --- /dev/null +++ b/perl-Schedule-RateLimiter.spec @@ -0,0 +1,50 @@ +Name: perl-Schedule-RateLimiter +Summary: Prevent events from happening too quickly +Version: 0.01 +Release: 2%{?dist} +License: GPL+ or Artistic +Group: Development/Libraries +Buildarch: noarch +URL: http://search.cpan.org/dist/Schedule-RateLimiter/ +Source: http://search.cpan.org/CPAN/authors/id/D/DW/DWRIGHT/Schedule-RateLimiter-%{version}.tar.gz +BuildRequires: perl +BuildRequires: perl(Time::HiRes) +BuildRequires: perl(strict) +BuildRequires: perl(Test::More) +BuildRequires: perl(warnings) +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This module provides a way to voluntarily restrict how many times a given +action may take place within a specified time frame. Such a tool may be useful +if you have written something which periodically polls some public resource and +want to ensure that you do not overburden that resource with too many requests. + +%prep +%setup -q -n Schedule-RateLimiter-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu May 9 2013 Andrea Veri <averi@xxxxxxxxxxxxxxxxx> - 0.01-2 +- Fix Source0 to point to UpstreamName-%%{version}. +- Add the missing Build Depends. + +* Mon May 6 2013 Andrea Veri <averi@xxxxxxxxxxxxxxxxx> - 0.01-1 +- Initial build. diff --git a/sources b/sources index e69de29..3198c7a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e90052ab44db83a0404c29dffd5c2b3d Schedule-RateLimiter-0.01.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel