Modernize specfile

Specify all dependencies
Drop command macros
Fix mixed whitespace
This commit is contained in:
Petr Šabata 2012-10-23 16:25:32 +02:00
parent 3b2149a535
commit c6f6041bf6
1 changed files with 35 additions and 31 deletions

View File

@ -1,21 +1,25 @@
Name: perl-File-Find-Rule-Perl
Version: 1.12
Release: 5%{?dist}
Summary: Common rules for searching for Perl things
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/File-Find-Rule-Perl/
Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/File-Find-Rule-Perl-%{version}.tar.gz
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: perl(File::Find::Rule) >= 0.20
BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl(Test::More) >= 0.47
Name: perl-File-Find-Rule-Perl
Version: 1.12
Release: 6%{?dist}
Summary: Common rules for searching for Perl things
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/File-Find-Rule-Perl/
Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/File-Find-Rule-Perl-%{version}.tar.gz
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildArch: noarch
BuildRequires: perl(constant)
BuildRequires: perl(inc::Module::Install::DSL) >= 1.00
BuildRequires: perl(lib)
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find::Rule) >= 0.20
BuildRequires: perl(File::Spec) >= 0.82
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(Params::Util) >= 0.38
BuildRequires: perl(Parse::CPAN::Meta) >= 0.04
BuildRequires: perl(Test::More) >= 0.47
# For improved tests
%if !%{defined perl_bootstrap}
BuildRequires: perl(Perl::MinimumVersion) >= 1.27
@ -28,37 +32,37 @@ BuildRequires: perl(Test::CPAN::Meta) >= 0.17
Common rules for searching for Perl things.
%prep
%setup -q -T -c
%setup -q -T -D -a0
%setup -q -n File-Find-Rule-Perl-%{version}
rm -rf inc
%build
cd File-Find-Rule-Perl-%{version}
%{__perl} Makefile.PL INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
cd ..
%install
cd File-Find-Rule-Perl-%{version}
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
cd ..
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
%check
rm -f debug*.list
%if !%{defined perl_bootstrap}
cd File-Find-Rule-Perl-%{version}
make test AUTOMATED_TESTING=1
cd ..
%endif
%files
%defattr(-,root,root,-)
%doc File-Find-Rule-Perl-%{version}/Changes File-Find-Rule-Perl-%{version}/LICENSE
%doc Changes LICENSE
%{perl_vendorlib}/File
%{_mandir}/man3/*
%changelog
* Tue Oct 23 2012 Petr Šabata <contyk@redhat.com> - 1.12-6
- Specify all dependencies
- Modernize specfile
- Drop command macros
- Fix mixed whitespace
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.12-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild