This commit is contained in:
Petr Písař 2012-05-10 15:14:48 +02:00
parent b847cb85f7
commit 0f46218132
3 changed files with 57 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/Module-Package-0.30.tar.gz

55
perl-Module-Package.spec Normal file
View File

@ -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@redhat.com> 0.30-1
- Specfile autogenerated by cpanspec 1.78.

View File

@ -0,0 +1 @@
189b1f4a93999088e54d87bc735abddb Module-Package-0.30.tar.gz