[perl-IO-String] Modernize the spec a bit

Petr Šabata psabata at fedoraproject.org
Thu Nov 15 14:10:57 UTC 2012


commit f527092842ce845f99227c1ea518d915aeda9fd9
Author: Petr Šabata <contyk at redhat.com>
Date:   Thu Nov 15 15:10:52 2012 +0100

    Modernize the spec a bit

 perl-IO-String.spec |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)
---
diff --git a/perl-IO-String.spec b/perl-IO-String.spec
index 33cc92e..f51023e 100644
--- a/perl-IO-String.spec
+++ b/perl-IO-String.spec
@@ -1,6 +1,6 @@
 Name:           perl-IO-String
 Version:        1.08
-Release:        17%{?dist}
+Release:        18%{?dist}
 Summary:        Emulate file interface for in-core strings
 Group:          Development/Libraries
 License:        GPL+ or Artistic
@@ -13,7 +13,7 @@ BuildRequires:  perl(Data::Dumper)
 BuildRequires:  perl(IO::Handle)
 # Tests:
 BuildRequires:  perl(Test)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 Requires:       perl(Data::Dumper)
 Requires:       perl(IO::Handle)
 
@@ -35,23 +35,18 @@ the code backwards compatible with older versions of Perl.
 %prep
 %setup -q -n IO-String-%{version}
 
-
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
-
 %install
-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 d -depth -exec rmdir {} 2>/dev/null ';'
-chmod -R u+w $RPM_BUILD_ROOT/*
-
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+chmod -R u+w %{buildroot}/*
 
 %check
 make test
 
-
 %files
 %doc Changes README
 %{perl_vendorlib}/IO/
@@ -59,6 +54,10 @@ make test
 
 
 %changelog
+* Thu Nov 15 2012 Petr Šabata <contyk at redhat.com> - 1.08-18
+- Modernize the spec a bit
+- Drop command macros
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.08-17
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 



More information about the perl-devel mailing list