perl-AnyEvent-BDB/perl-AnyEvent-BDB.spec

51 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-AnyEvent-BDB
Version: 1.1
Release: 1mamba
Summary: AnyEvent::BDB - truly asynchronous berkeley db access
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-BDB-%{version}.tar.gz
License: GPL, Artistic
BuildRequires: perl(BDB)
BuildRequires: perl(AnyEvent)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This module is an AnyEvent user, you need to make sure that you use and run a supported event loop.
%prep
%setup -q -n AnyEvent-BDB-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{perl_vendorlib}/*
%{_mandir}/man3/*.3pm.gz
%doc COPYING README
%changelog
* Sun Feb 20 2011 gil <puntogil@libero.it> 1.1-1mamba
- package created by autospec