fix broken filter with RPM4.9

f38
Marcela Mašláňová 14 years ago
parent 1556d0fd9a
commit 288a7ba185

@ -1,6 +1,6 @@
Name: perl-Class-Prototyped
Version: 1.11
Release: 8%{?dist}
Release: 9%{?dist}
Summary: Fast prototype-based OO programming in Perl
License: GPL+ or Artistic
Group: Development/Libraries
@ -11,6 +11,8 @@ BuildArch: noarch
BuildRequires: perl(Module::Build)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description
This package provides for efficient and simple prototype-based programming
in Perl. You can provide different subroutines for each object, and also
@ -19,22 +21,12 @@ have objects inherit their behavior and state from another object.
%prep
%setup -q -n Class-Prototyped-%{version}
cat <<EOF >%{name}-prov
#!/bin/bash
# Filter out bogus provides from documentation
%{__perl_provides} $@ |sed -e 's/perl([ABCD])//g;s/perl(My[^)]*Class)//g'
EOF
cat <<EOF >%{name}-req
#!/bin/bash
# Class/Prototyped/Graph.pm doesn't define Class::Prototyped::Graph package
# Benchmark is dragged in by a regression test
%{__perl_requires} $@ |sed -e '/perl(Class::Prototyped::Graph)/d;/perl(Benchmark)/d'
EOF
%global __perl_provides %{_builddir}/Class-Prototyped-%{version}/%{name}-prov
%global __perl_requires %{_builddir}/Class-Prototyped-%{version}/%{name}-req
chmod +x %{__perl_provides} %{__perl_requires}
%{?filter_setup:
%filter_from_provides /^perl(My[^)]*Class)$/g
%filter_from_requires /^perl(Class::Prototyped::Graph)$/g
%filter_requires_in %{_docdir}/examples
%filter_setup
}
# Documentation and libraries should not be executable
chmod -x perf/* examples/* Changes lib/Class/*.pm lib/Class/Prototyped/*
@ -65,6 +57,9 @@ rm -rf %{buildroot}
%{_mandir}/man3/*
%changelog
* Mon Feb 14 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.11-9
- fix broken filter
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

Loading…
Cancel
Save