update requires filtering to use standard macros

f38
Iain Arnell 14 years ago
parent b9a969c982
commit 4db0a83703

@ -1,6 +1,6 @@
Name: perl-autobox
Version: 2.71
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Call methods on native types
License: GPL+ or Artistic
Group: Development/Libraries
@ -12,6 +12,11 @@ BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?filter_setup:
%filter_from_requires /perl(autobox::universal)/d
%?perl_default_filter
}
%description
The autobox pragma allows methods to be called on integers, floats,
strings, arrays, hashes, and code references in exactly the same manner as
@ -20,17 +25,6 @@ blessed references.
%prep
%setup -q -n autobox-%{version}
# Filter requires
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(autobox)/d' |\
sed -e '/perl(autobox::universal)/d'
EOF
%define __perl_requires %{_builddir}/autobox-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
@ -55,6 +49,9 @@ make test
%{_mandir}/man3/*
%changelog
* Sat Feb 19 2011 Iain Arnell <iarnell@gmail.com> 2.71-3
- update requires filtering to use standard macros
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.71-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

Loading…
Cancel
Save