commit 0f462181323b11647e84dc5ec08e0cd363dc7105 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Thu May 10 15:14:48 2012 +0200 Import .gitignore | 1 + perl-Module-Package.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 57 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..d6f19f6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Module-Package-0.30.tar.gz diff --git a/perl-Module-Package.spec b/perl-Module-Package.spec new file mode 100644 index 0000000..356141d --- /dev/null +++ b/perl-Module-Package.spec @@ -0,0 +1,55 @@ +Name: perl-Module-Package +Version: 0.30 +Release: 1%{?dist} +Summary: Postmodern Perl Module Packaging +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Module-Package/ +Source0: http://www.cpan.org/authors/id/I/IN/INGY/Module-Package-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time: +BuildRequires: perl(Cwd) +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(File::Path) +BuildRequires: perl(IO::All) >= 0.41 +BuildRequires: perl(Module::Install) >= 1.01 +BuildRequires: perl(Module::Install::AuthorRequires) >= 0.02 +BuildRequires: perl(Module::Install::Base) +BuildRequires: perl(Module::Install::ManifestSkip) >= 0.19 +BuildRequires: perl(Moo) >= 0.009008 +# Tests: +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Data::Dumper) +Requires: perl(File::Path) + +%description +This module is a drop-in replacement for Module::Install. It does everything +Module::Install does, but just a bit better. + +%prep +%setup -q -n Module-Package-%{version} +# XXX: Do not unbundle ./inc/ because of bootstrap + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +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 + +%files +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Apr 23 2012 Petr Pisar <ppisar@xxxxxxxxxx> 0.30-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..4d692b6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +189b1f4a93999088e54d87bc735abddb Module-Package-0.30.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