commit 1d366e87b4991bb48c1202c17427be7ce7a8002b Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Thu Aug 9 10:49:12 2012 +0200 Modernize spec file perl-Module-Manifest.spec | 38 ++++++++++++++++++++------------------ 1 files changed, 20 insertions(+), 18 deletions(-) --- diff --git a/perl-Module-Manifest.spec b/perl-Module-Manifest.spec index da4960f..adf0798 100644 --- a/perl-Module-Manifest.spec +++ b/perl-Module-Manifest.spec @@ -1,60 +1,62 @@ Name: perl-Module-Manifest Version: 1.08 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Parse and examine a Perl distribution MANIFEST file License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Module-Manifest/ Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Module-Manifest-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch -BuildRequires: perl >= 0:5.005 +BuildRequires: perl(Cwd) BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(File::Spec) >= 0.80 +BuildRequires: perl(File::Spec::Unix) BuildRequires: perl(Params::Util) >= 0.10 +# Tests: +BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(Test::Exception) >= 0.27 BuildRequires: perl(Test::More) >= 0.42 BuildRequires: perl(Test::Warn) >= 0.11 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(File::Spec) >= 0.80 Requires: perl(Params::Util) >= 0.10 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +# Do not export under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((File::Spec|Params::Util)\\) %description -Module::Manifest is a simple utility module created originally for use in -Module::Inspector. +Module::Manifest can load a MANIFEST file that comes in a Perl distribution +tarball, examine the contents, and perform some simple tasks. It can also load +the MANIFEST.SKIP file and check that. %prep %setup -q -n Module-Manifest-%{version} +chmod -x examples/* %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -rm -rf $RPM_BUILD_ROOT - 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/* -# Remove executable bit from %%doc files -%{__chmod} 0644 examples/* - %check make test -%clean -rm -rf $RPM_BUILD_ROOT - %files -%defattr(-,root,root,-) %doc Changes LICENSE README examples %{perl_vendorlib}/* %{_mandir}/man3/* %changelog +* Thu Aug 09 2012 Petr Pisar <ppisar@xxxxxxxxxx> - 1.08-8 +- Modernize spec file +- Specify all dependencies + * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.08-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild -- 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