Modernize the spec and drop command macros

This commit is contained in:
Petr Šabata 2012-11-14 15:37:02 +01:00
parent a6c184eac1
commit 3683608081

View File

@ -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@redhat.com> - 6.01-4
- Modernize the spec and drop command macros
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.01-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild