[perl-HTTP-Date] Modernize the spec, drop command macros

Petr Šabata psabata at fedoraproject.org
Tue Nov 13 16:04:00 UTC 2012


commit 064848490831375b52e247db9490b8e1857609d2
Author: Petr Šabata <contyk at redhat.com>
Date:   Tue Nov 13 17:03:56 2012 +0100

    Modernize the spec, drop command macros

 perl-HTTP-Date.spec |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/perl-HTTP-Date.spec b/perl-HTTP-Date.spec
index 7a0e8eb..52cab65 100644
--- a/perl-HTTP-Date.spec
+++ b/perl-HTTP-Date.spec
@@ -1,6 +1,6 @@
 Name:           perl-HTTP-Date
 Version:        6.02
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Date conversion routines
 License:        GPL+ or Artistic
 Group:          Development/Libraries
@@ -14,7 +14,7 @@ BuildRequires:  perl(Time::Local)
 BuildRequires:  perl(Time::Zone)
 # Tests only:
 BuildRequires:  perl(Test)
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 # Strongly recommended:
 Requires:       perl(Time::Zone)
 Conflicts:      perl-libwww-perl < 6
@@ -28,14 +28,13 @@ str2time(), are exported by default.
 %setup -q -n HTTP-Date-%{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 -depth -type d -exec rmdir {} 2>/dev/null \;
-%{_fixperms} $RPM_BUILD_ROOT/*
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+%{_fixperms} %{buildroot}/*
 
 %check
 make test
@@ -46,6 +45,9 @@ make test
 %{_mandir}/man3/*
 
 %changelog
+* Tue Nov 13 2012 Petr Šabata <contyk at redhat.com> - 6.02-4
+- Modernize the spec, drop command macros
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.02-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 



More information about the perl-devel mailing list