commit 2fb6dafd979308edcb901fd2344ec2654fb26e0a Author: Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> Date: Thu Jan 27 03:20:41 2011 +0100 Import. perl-Parallel-Scoreboard.spec | 61 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) --- diff --git a/perl-Parallel-Scoreboard.spec b/perl-Parallel-Scoreboard.spec new file mode 100644 index 0000000..02e1e00 --- /dev/null +++ b/perl-Parallel-Scoreboard.spec @@ -0,0 +1,61 @@ +Name: perl-Parallel-Scoreboard +Version: 0.02 +Release: 2%{?dist} +Summary: Scoreboard for monitoring status of many processes +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Parallel-Scoreboard/ +Source0: http://www.cpan.org/authors/id/K/KA/KAZUHO/Parallel-Scoreboard-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +Parallel::Scoreboard is a pure-perl implementation of a process scoreboard. +By using the module it is easy to create a monitor for many worker process, +like the status module of the Apache HTTP server. + +%prep +%setup -q -n Parallel-Scoreboard-%{version} +# Remove bundled modules +rm inc/Test/More.pm inc/File/Temp.pm +rmdir inc/Test inc/File +# Remove bundled modules from MANIFEST +sed -i -e '/inc\/Test\/More\.pm/d' -e '/inc\/File\/Temp\.pm/d' MANIFEST + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Jan 26 2011 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.02-2 +- Use system-wide versions of Test/More.pm and File/Temp.pm instead of + bundled versions. + +* Thu Jan 20 2011 Ralf CorsÃpius <corsepiu@xxxxxxxxxxxxxxxxx> 0.02-1 +- Specfile autogenerated by cpanspec 1.78. -- 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