Tweak provides filter to work with rpm >= 4.9 too

epel9
Paul Howarth 14 years ago
parent 639fec2f7b
commit 6f88362fe5

@ -1,6 +1,6 @@
Name: perl-UNIVERSAL-moniker
Version: 0.08
Release: 13%{?dist}
Release: 14%{?dist}
Summary: Real world naming for classes
Group: Development/Libraries
License: GPL+ or Artistic
@ -11,6 +11,9 @@ BuildArch: noarch
BuildRequires: perl(Test::More), perl(Lingua::EN::Inflect)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# Filter bogus provide for perl(UNIVERSAL) (rpm 4.9 onwards)
%global __provides_exclude ^perl\\(UNIVERSAL\\)
%description
UNIVERSAL::moniker enables classes to make a good
guess at what they would be called in the real world.
@ -18,13 +21,9 @@ guess at what they would be called in the real world.
%prep
%setup -q -n UNIVERSAL-moniker-%{version}
cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
sed -e '/^perl(UNIVERSAL)$/d'
EOF
%define __perl_provides %{_builddir}/UNIVERSAL-moniker-%{version}/%{name}-prov
chmod +x %{__perl_provides}
# Filter bogus provide for perl(UNIVERSAL) (prior to rpm 4.9)
%global provfilt /bin/sh -c "%{__perl_provides} | sed -e '/^perl(UNIVERSAL)$/d'"
%define __perl_provides %{provfilt}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
@ -51,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Thu Apr 14 2011 Paul Howarth <paul@city-fan.org> - 0.08-14
- Tweak provides filter to work with rpm >= 4.9 too
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

Loading…
Cancel
Save