commit a99dcb4624a84f6560b387a154b430250bf391e6 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Mon Mar 9 09:40:06 2015 +0100 Import .gitignore | 1 + perl-Proc-Guard.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 68 insertions(+) --- diff --git a/.gitignore b/.gitignore index e69de29..b012e2f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Proc-Guard-0.06.tar.gz diff --git a/perl-Proc-Guard.spec b/perl-Proc-Guard.spec new file mode 100644 index 0000000..af061bd --- /dev/null +++ b/perl-Proc-Guard.spec @@ -0,0 +1,66 @@ +Name: perl-Proc-Guard +Version: 0.06 +Release: 1%{?dist} +Summary: Process runner with RAII pattern +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Proc-Guard/ +Source0: http://www.cpan.org/authors/id/T/TO/TOKUHIROM/Proc-Guard-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::AuthorTests) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::ReadmeMarkdownFromPod) +BuildRequires: perl(Module::Install::WriteAll) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(Class::Accessor::Lite) >= 0.05 +BuildRequires: perl(Exporter) >= 5.63 +BuildRequires: perl(POSIX) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Tests: +BuildRequires: perl(IO::Socket::INET) +BuildRequires: perl(Test::More) >= 0.94 +BuildRequires: perl(Test::Requires) +# Optional tests: +BuildRequires: perl(File::Which) +BuildRequires: perl(Test::TCP) +BuildRequires: perl(Test::SharedFork) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Exporter) >= 5.63 + +# Filter under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Exporter\\)$ + +%description +Proc::Guard runs process, and destroys it when the perl script exits. +This is useful for testing code working with server process. + +%prep +%setup -q -n Proc-Guard-%{version} +# Remove bundled modules, but keep the directory to skip xt tests +rm -r inc/* +sed -i -e '/^inc\//d' MANIFEST + +%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.mkdn +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Mar 06 2015 Petr Pisar <ppisar@xxxxxxxxxx> 0.06-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..33bf0e6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +44a3eb2bfcc8cce049b975afa546466e Proc-Guard-0.06.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