perl-Test-SharedFork/perl-Test-SharedFork.spec

52 lines
1.4 KiB
RPMSpec

# vim: set sw=4 ts=4 et nu:
# norootforbuild
Name: perl-Test-SharedFork
Version: 0.12
Release: 0
Summary: Perl Module to Test Forks
Source: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-SharedFork-%{version}.tar.gz
URL: http://search.cpan.org/dist/Test-SharedFork/
Group: Development/Libraries/Perl
License: Perl License
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: perl = %{perl_version}
BuildRequires: make perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(Test::More) >= 0.88
%description
Test::SharedFork is a utility module for Test::Builder to test forking.
It merges the test count with parent process & child process.
%prep
%setup -q -n "Test-SharedFork-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes README
%dir %{perl_vendorlib}/Test
%{perl_vendorlib}/Test/SharedFork.pm
%{perl_vendorlib}/Test/SharedFork
%dir %{perl_vendorarch}/auto/Test
%{perl_vendorarch}/auto/Test/SharedFork
%doc %{perl_man3dir}/Test::SharedFork.%{perl_man3ext}%{ext_man}
/var/adm/perl-modules/%{name}