Modernize spec file

epel9
Petr Písař 13 years ago
parent f6fbf31a28
commit 1d366e87b4

@ -1,60 +1,62 @@
Name: perl-Module-Manifest Name: perl-Module-Manifest
Version: 1.08 Version: 1.08
Release: 7%{?dist} Release: 8%{?dist}
Summary: Parse and examine a Perl distribution MANIFEST file Summary: Parse and examine a Perl distribution MANIFEST file
License: GPL+ or Artistic License: GPL+ or Artistic
Group: Development/Libraries Group: Development/Libraries
URL: http://search.cpan.org/dist/Module-Manifest/ URL: http://search.cpan.org/dist/Module-Manifest/
Source0: http://www.cpan.org/authors/id/A/AD/ADAMK/Module-Manifest-%{version}.tar.gz 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 BuildArch: noarch
BuildRequires: perl >= 0:5.005 BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker) 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 BuildRequires: perl(Params::Util) >= 0.10
# Tests:
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Test::Exception) >= 0.27 BuildRequires: perl(Test::Exception) >= 0.27
BuildRequires: perl(Test::More) >= 0.42 BuildRequires: perl(Test::More) >= 0.42
BuildRequires: perl(Test::Warn) >= 0.11 BuildRequires: perl(Test::Warn) >= 0.11
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(File::Spec) >= 0.80 Requires: perl(File::Spec) >= 0.80
Requires: perl(Params::Util) >= 0.10 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 %description
Module::Manifest is a simple utility module created originally for use in Module::Manifest can load a MANIFEST file that comes in a Perl distribution
Module::Inspector. tarball, examine the contents, and perform some simple tasks. It can also load
the MANIFEST.SKIP file and check that.
%prep %prep
%setup -q -n Module-Manifest-%{version} %setup -q -n Module-Manifest-%{version}
chmod -x examples/*
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$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 -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/* %{_fixperms} $RPM_BUILD_ROOT/*
# Remove executable bit from %%doc files
%{__chmod} 0644 examples/*
%check %check
make test make test
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%doc Changes LICENSE README examples %doc Changes LICENSE README examples
%{perl_vendorlib}/* %{perl_vendorlib}/*
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Thu Aug 09 2012 Petr Pisar <ppisar@redhat.com> - 1.08-8
- Modernize spec file
- Specify all dependencies
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-7 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.08-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

Loading…
Cancel
Save