commit c129734148bc7b134fd4d149dde21a722723e070 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Mon Jun 17 14:32:31 2013 +0200 Modernize spec file .rpmlint | 2 + perl-AnyEvent-BDB.spec | 49 +++++++++++++++++++++++++---------------------- 2 files changed, 28 insertions(+), 23 deletions(-) --- diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..9659e98 --- /dev/null +++ b/.rpmlint @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* cb"); diff --git a/perl-AnyEvent-BDB.spec b/perl-AnyEvent-BDB.spec index 4b76069..cbb6783 100644 --- a/perl-AnyEvent-BDB.spec +++ b/perl-AnyEvent-BDB.spec @@ -1,55 +1,58 @@ Name: perl-AnyEvent-BDB Version: 1.1 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Truly asynchronous Berkeley DB access - Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/AnyEvent-BDB/ Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-BDB-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch +BuildRequires: perl BuildRequires: perl(ExtUtils::MakeMaker) -BuildRequires: perl(BDB) -BuildRequires: perl(AnyEvent) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Run-time: +BuildRequires: perl(AnyEvent) >= 3.81 +BuildRequires: perl(base) +BuildRequires: perl(BDB) >= 1.5 +BuildRequires: perl(Exporter) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(AnyEvent) >= 3.81 +Requires: perl(BDB) >= 1.5 +Requires: perl(Exporter) +Requires: perl(warnings) + +# Remove under-speficied dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((AnyEvent|BDB)\\)$ %description -This module is an AnyEvent user, you need to make sure that you use and run -a supported event loop. +Loading this module will install the necessary magic to seamlessly integrate +BDB into AnyEvent, i.e. you no longer need to concern yourself with calling +BDB::poll_cb or any of that stuff. %prep %setup -q -n AnyEvent-BDB-%{version} - %build -%{__perl} Makefile.PL INSTALLDIRS=vendor +perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} - %install -rm -rf $RPM_BUILD_ROOT -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +make pure_install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' - %check make test - -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) -%doc COPYING README +%doc Changes COPYING README %{perl_vendorlib}/* %{_mandir}/man3/*.3* - %changelog +* Mon Jun 17 2013 Petr Pisar <ppisar@xxxxxxxxxx> - 1.1-11 +- Modernize spec file + * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 1.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel