Update to 0.984
- New upstream release 0.984 (documentation fixes) - Add filters for provides/requires from the test suite - BR: perl(base) and perl(Exporter) for the test suite
This commit is contained in:
parent
12efa480eb
commit
340248ef60
@ -1,6 +1,6 @@
|
||||
Name: perl-Sub-Exporter
|
||||
Version: 0.982
|
||||
Release: 11%{?dist}
|
||||
Version: 0.984
|
||||
Release: 1%{?dist}
|
||||
Summary: Sophisticated exporter for custom-built routines
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
@ -17,11 +17,17 @@ BuildRequires: perl(Package::Generator)
|
||||
BuildRequires: perl(Params::Util) >= 0.14
|
||||
BuildRequires: perl(Sub::Install) >= 0.92
|
||||
# Test suite
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(Test::More)
|
||||
# Runtime
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Package::Generator)
|
||||
|
||||
# Don't want doc-file provides or dependencies
|
||||
%global __provides_exclude_from ^%{_datadir}/doc/%{name}-%{version}/
|
||||
%global __requires_exclude_from ^%{_datadir}/doc/%{name}-%{version}/
|
||||
|
||||
%description
|
||||
Sub::Exporter provides a sophisticated alternative to Exporter.pm. It allows
|
||||
for renaming, currying/sub-generation, and other cool stuff.
|
||||
@ -35,6 +41,12 @@ Sub::Exporter::Tutorial first!
|
||||
# Fix shellbangs
|
||||
find t/ -type f -exec sed -i -e 's|^#!perl|#!/usr/bin/perl|' {} \;
|
||||
|
||||
# Filter bogus provides/requires if we don't have rpm ≥ 4.9
|
||||
%global provfilt /bin/sh -c "%{__perl_provides} | grep -Ev '^perl[(]Test::SubExporter.*[)]'"
|
||||
%define __perl_provides %{provfilt}
|
||||
%global reqfilt /bin/sh -c "%{__perl_requires} | grep -Ev '^perl[(](base|Test::SubExporter.*)[)]'"
|
||||
%define __perl_requires %{reqfilt}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
@ -65,6 +77,11 @@ rm -rf %{buildroot}
|
||||
%{_mandir}/man3/Sub::Exporter::Util.3pm*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 5 2012 Paul Howarth <paul@city-fan.org> - 0.984-1
|
||||
- Update to 0.984 (documentation fixes)
|
||||
- Add filters for provides/requires from the test suite
|
||||
- BR: perl(base) and perl(Exporter) for the test suite
|
||||
|
||||
* Sun Mar 18 2012 Paul Howarth <paul@city-fan.org> - 0.982-11
|
||||
- Drop %%defattr, redundant since rpm 4.4
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user