[perl-HTTP-Cookies] Modernize the spec
Petr Šabata
psabata at fedoraproject.org
Tue Nov 13 14:42:13 UTC 2012
commit e66972819d17fb60eb1d1158213ace884201aaa9
Author: Petr Šabata <contyk at redhat.com>
Date: Tue Nov 13 15:42:08 2012 +0100
Modernize the spec
perl-HTTP-Cookies.spec | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/perl-HTTP-Cookies.spec b/perl-HTTP-Cookies.spec
index c16b3ce..38abb6f 100644
--- a/perl-HTTP-Cookies.spec
+++ b/perl-HTTP-Cookies.spec
@@ -1,6 +1,6 @@
Name: perl-HTTP-Cookies
Version: 6.01
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: HTTP cookie jars
License: GPL+ or Artistic
Group: Development/Libraries
@@ -16,7 +16,7 @@ BuildRequires: perl(HTTP::Response)
BuildRequires: perl(Test)
BuildRequires: perl(URI)
# Time::Local needed on MacOS only
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(HTTP::Date) >= 6
Requires: perl(HTTP::Headers::Util) >= 6
Conflicts: perl-libwww-perl < 6
@@ -40,25 +40,26 @@ knows about.
%setup -q -n HTTP-Cookies-%{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
%files
-%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
+* Tue Nov 13 2012 Petr Šabata <contyk at redhat.com> - 6.01-4
+- Modernize the spec
+
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 6.01-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the perl-devel
mailing list