[perl-HTTP-Negotiate] Modernize the spec and drop command macros
Petr Šabata
psabata at fedoraproject.org
Wed Nov 14 14:37:07 UTC 2012
commit 36836080810c02ed86d0eb0b87fa452a87b1b396
Author: Petr Šabata <contyk at redhat.com>
Date: Wed Nov 14 15:37:02 2012 +0100
Modernize the spec and drop command macros
perl-HTTP-Negotiate.spec | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/perl-HTTP-Negotiate.spec b/perl-HTTP-Negotiate.spec
index 4e44b9a..bd2f8a1 100644
--- a/perl-HTTP-Negotiate.spec
+++ b/perl-HTTP-Negotiate.spec
@@ -1,6 +1,6 @@
Name: perl-HTTP-Negotiate
Version: 6.01
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Choose a variant to serve
License: GPL+ or Artistic
Group: Development/Libraries
@@ -13,7 +13,7 @@ BuildRequires: perl(HTTP::Headers) >= 6
# Tests only:
BuildRequires: perl(Test)
BuildRequires: perl(HTTP::Request)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires: perl(HTTP::Headers) >= 6
Conflicts: perl-libwww-perl < 6
@@ -31,14 +31,13 @@ value of the various Accept* header fields in the request.
%setup -q -n HTTP-Negotiate-%{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
@@ -49,6 +48,9 @@ make test
%{_mandir}/man3/*
%changelog
+* Wed Nov 14 2012 Petr Šabata <contyk at redhat.com> - 6.01-4
+- Modernize the spec and drop command macros
+
* 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 scm-commits
mailing list