%define version_anyevent 4.22 Name: perl-AnyEvent Version: 4.220 Release: 1%{?dist} Summary: Framework for multiple event loops Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/AnyEvent/ Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-%{version_anyevent}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) # Needed for test BuildRequires: perl(Test::Simple) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description AnyEvent provides a framework for multiple event loops. %prep %setup -q -n AnyEvent-%{version_anyevent} # Filter unwanted Requires: cat << \EOF > %{name}-req #!/bin/sh %{__perl_requires} $* |\ sed -e '/perl(Tk)/d' | \ sed -e '/perl(EV)/d' | \ sed -e '/^perl(Qt/d' | \ sed -e '/^perl(AnyEvent::Impl::Qt/d' EOF %define __perl_requires %{_builddir}/AnyEvent-%{version_anyevent}/%{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_anyevent}/%{name}-prov chmod +x %{name}-prov %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' %check # PERL_ANYEVENT_NET_TESTS shoudn't be set to avoid network tests # on our builder. make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes COPYING README %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Fri Jul 18 2008 kwizart < kwizart at gmail.com > - 4.22-1 - Update to 4.22 (rpm version : 4.220 ) * Fri Jul 18 2008 kwizart < kwizart at gmail.com > - 4.21-1 - Update to 4.21 * Fri Jul 4 2008 kwizart < kwizart at gmail.com > - 4.161-1 - Update to 4.161 * Mon Jun 23 2008 kwizart < kwizart at gmail.com > - 4.152-1 - Update to 4.152 * Mon Jun 9 2008 kwizart < kwizart at gmail.com > - 4.151-1 - Update to 4.151 * Thu Jun 5 2008 kwizart < kwizart at gmail.com > - 4.13-1 - Update to 4.13 * Tue Jun 3 2008 kwizart < kwizart at gmail.com > - 4.12-1 - Update to 4.12 * Thu May 29 2008 kwizart < kwizart at gmail.com > - 4.1-1 - Update to 4.1 * Tue May 27 2008 kwizart < kwizart at gmail.com > - 3.5-1 - Update to 3.5 * Wed Apr 30 2008 kwizart < kwizart at gmail.com > - 3.3-1 - Initial package for Fedora