diff --git a/.gitignore b/.gitignore index e69de29..8d38309 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/App-FatPacker-0.010000.tar.gz diff --git a/perl-App-FatPacker.spec b/perl-App-FatPacker.spec new file mode 100644 index 0000000..40ad904 --- /dev/null +++ b/perl-App-FatPacker.spec @@ -0,0 +1,59 @@ +Name: perl-App-FatPacker +Version: 0.010000 +Release: 1%{?dist} +Summary: Pack dependencies onto a script file +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/App-FatPacker/ +Source0: http://www.cpan.org/authors/id/H/HA/HAARG/App-FatPacker-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(B) +BuildRequires: perl(Cwd) +BuildRequires: perl(File::Copy) +BuildRequires: perl(File::Find) +BuildRequires: perl(File::Path) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(File::Spec::Unix) +BuildRequires: perl(Getopt::Long) +# Tests: +BuildRequires: perl(File::Basename) +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Temp) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This tool does all the work of tracing, collecting packlists, extracting +perl modules in fatlib, and then concatenating them into a packed script. + +%prep +%setup -q -n App-FatPacker-%{version} +sed -i -e '1s|#!/usr/bin/env perl|#!%{__perl}|' bin/fatpack + +%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 +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Tue Jan 07 2014 Petr Pisar 0.010000-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..dbef72e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d128ba6d6b2a0b038449498725d06471 App-FatPacker-0.010000.tar.gz