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:
Paul Howarth 2012-06-06 09:20:01 +01:00
parent 12efa480eb
commit 340248ef60
2 changed files with 20 additions and 3 deletions

View File

@ -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

View File

@ -1 +1 @@
db90a0d73a5ca2d185dd6c6d2fc848f0 Sub-Exporter-0.982.tar.gz
cfa19c5f09bc08f49174856c0bfd7849 Sub-Exporter-0.984.tar.gz