- Rewritten to new filtering rules
http://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Perl
This commit is contained in:
parent
44b1104c0e
commit
74d9ede693
@ -2,7 +2,7 @@
|
||||
|
||||
Name: perl-AnyEvent
|
||||
Version: 5.27
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Framework for multiple event loops
|
||||
|
||||
Group: Development/Libraries
|
||||
@ -16,6 +16,12 @@ BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
# Needed for test
|
||||
BuildRequires: perl(Test::Simple)
|
||||
|
||||
%{?filter_setup:
|
||||
%filter_from_requires /perl(Tk)/d; /perl(EV)/d; /perl(Irssi)/d; /perl(Qt/d; /perl(AnyEvent::Impl::Qt/d
|
||||
%filter_from_provides /perl(AnyEvent::Impl::Qt/d
|
||||
%filter_setup
|
||||
}
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
@ -28,29 +34,6 @@ peacefully at any one time).
|
||||
%prep
|
||||
%setup -q -n AnyEvent-%{version}%{?subver}
|
||||
|
||||
# Filter unwanted Requires:
|
||||
cat << \EOF > %{name}-req
|
||||
#!/bin/sh
|
||||
%{__perl_requires} $* |\
|
||||
sed -e '/perl(Tk)/d' | \
|
||||
sed -e '/perl(EV)/d' | \
|
||||
sed -e '/perl(Irssi)/d' | \
|
||||
sed -e '/^perl(Qt/d' | \
|
||||
sed -e '/^perl(AnyEvent::Impl::Qt/d'
|
||||
|
||||
EOF
|
||||
%define __perl_requires %{_builddir}/AnyEvent-%{version}%{?subver}/%{name}-req
|
||||
chmod +x %{name}-req
|
||||
|
||||
# Filter unwanted Provides:
|
||||
cat << \EOF > %{name}-prov
|
||||
#!/bin/sh
|
||||
%{__perl_provides} $* |\
|
||||
sed -e '/^perl(AnyEvent::Impl::Qt/d'
|
||||
|
||||
EOF
|
||||
%define __perl_provides %{_builddir}/AnyEvent-%{version}%{?subver}/%{name}-prov
|
||||
chmod +x %{name}-prov
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
@ -82,6 +65,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Feb 10 2011 Nicolas Chauvet <kwizart@gmail.com> - 5.27-4
|
||||
- Rewritten to new filtering rules
|
||||
http://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering#Perl
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.27-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user