[perl-Module-Find] Spec clean-up

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

 



commit 631dcddf96357c729240a2726432b539de12ed1d
Author: Paul Howarth <paul@xxxxxxxxxxxx>
Date:   Wed Jan 25 23:07:59 2012 +0000

    Spec clean-up
    
    - BR: perl(ExtUtils::MakeMaker), perl(File::Find), perl(File::Spec) and
      perl(Pod::Perldoc)
    - Use DESTDIR rather than PERL_INSTALL_ROOT
    - Use search.cpan.org source URL
    - Don't use macros for commands
    - Use tabs

 perl-Module-Find.spec |   76 +++++++++++++++++++++++++-----------------------
 1 files changed, 40 insertions(+), 36 deletions(-)
---
diff --git a/perl-Module-Find.spec b/perl-Module-Find.spec
index aa8c46f..6eb8259 100644
--- a/perl-Module-Find.spec
+++ b/perl-Module-Find.spec
@@ -1,53 +1,50 @@
-Name:           perl-Module-Find
-Version:        0.10
-Release:        3%{?dist}
-Summary:        Find and use installed modules in a (sub)category
-
-Group:          Development/Libraries
-License:        GPL+ or Artistic
-URL:            http://search.cpan.org/dist/Module-Find/
-Source0:        http://www.cpan.org/authors/id/C/CR/CRENZ/Module-Find-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildArch:      noarch
-BuildRequires:  perl(Test::More)
-BuildRequires:  perl(Test::Pod)
-BuildRequires:  perl(Test::Pod::Coverage)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Name:		perl-Module-Find
+Version:	0.10
+Release:	4%{?dist}
+Summary:	Find and use installed modules in a (sub)category
+Group:		Development/Libraries
+License:	GPL+ or Artistic
+URL:		http://search.cpan.org/dist/Module-Find/
+Source0:	http://search.cpan.org/CPAN/authors/id/C/CR/CRENZ/Module-Find-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch:	noarch
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(File::Find)
+BuildRequires:	perl(File::Spec)
+BuildRequires:	perl(Pod::Perldoc)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(Test::Pod)
+BuildRequires:	perl(Test::Pod::Coverage)
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
 Module::Find lets you find and use modules in categories. This can be very
 useful for auto-detecting driver or plug-in modules. You can differentiate
 between looking in the category itself or in all subcategories.
 
-
 %prep
 %setup -q -n Module-Find-%{version}
 
 # Generate Changes file from POD
 perldoc -t Find.pm |
-  %{__perl} -n -e 'if (/^HISTORY/ ... !/^[[:space:]]/) { print if /^[[:space:]]/ }' > Changes
+	perl -n -e 'if (/^HISTORY/ ... !/^[[:space:]]/) { print if /^[[:space:]]/ }' > Changes
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+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 -empty -exec rmdir {} ';'
-%{_fixperms} $RPM_BUILD_ROOT
-
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
+%{_fixperms} %{buildroot}
 
 %check
 make test
 
-
 %clean
-rm -rf $RPM_BUILD_ROOT
-
+rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
@@ -55,8 +52,15 @@ rm -rf $RPM_BUILD_ROOT
 %{perl_vendorlib}/Module/
 %{_mandir}/man3/Module::Find.3pm*
 
-
 %changelog
+* Wed Jan 25 2012 Paul Howarth <paul@xxxxxxxxxxxx> - 0.10-4
+- BR: perl(ExtUtils::MakeMaker), perl(File::Find), perl(File::Spec) and
+  perl(Pod::Perldoc)
+- Use DESTDIR rather than PERL_INSTALL_ROOT
+- Use search.cpan.org source URL
+- Don't use macros for commands
+- Use tabs
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.10-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
@@ -79,10 +83,10 @@ rm -rf $RPM_BUILD_ROOT
 - Mass rebuild with perl-5.12.0
 
 * Mon Dec  7 2009 Stepan Kasal <skasal@xxxxxxxxxx> - 0.08-2
-- rebuild against perl 5.10.1
+- Rebuild against perl 5.10.1
 
 * Wed Oct  7 2009 Stepan Kasal <skasal@xxxxxxxxxx> - 0.08-1
-- new upstream version
+- New upstream version
 
 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.06-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
@@ -91,11 +95,11 @@ rm -rf $RPM_BUILD_ROOT
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 
 * Wed Jul 02 2008 Chris Weyl <cweyl@xxxxxxxxxxxxxxx> 0.06-1
-- update to 0.06
-- add examples/
+- Update to 0.06
+- Add examples/
 
 * Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@xxxxxxxxxx> - 0.05-2
-- rebuild for new perl
+- Rebuild for new perl
 
 * Tue Dec 19 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1
-- First build.
+- First build
--
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