[perl-File-Find-Rule-Perl] Modernize specfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit c6f6041bf64bbcacadb298d608ec3098d87ca5a6
Author: Petr Šabata <contyk@xxxxxxxxxx>
Date:   Tue Oct 23 16:25:32 2012 +0200

    Modernize specfile
    
    Specify all dependencies
    Drop command macros
    Fix mixed whitespace

 perl-File-Find-Rule-Perl.spec |   66 +++++++++++++++++++++-------------------
 1 files changed, 35 insertions(+), 31 deletions(-)
---
diff --git a/perl-File-Find-Rule-Perl.spec b/perl-File-Find-Rule-Perl.spec
index 028282d..453d4be 100644
--- a/perl-File-Find-Rule-Perl.spec
+++ b/perl-File-Find-Rule-Perl.spec
@@ -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@xxxxxxxxxx> - 1.12-6
+- Specify all dependencies
+- Modernize specfile
+- Drop command macros
+- Fix mixed whitespace
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.12-5
 - 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



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux