perl-EV/perl-EV.spec

91 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-EV
Version: 4.18
Release: 1mamba
Summary: EV - Perl interface to libev, a high performance full-featured event loop
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/EV-%{version}.tar.gz
License: GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: perl-devel >= %perl_major_ver
## AUTOBUILDREQ-END
BuildRequires: perl-common-sense
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This module provides an interface to libev
(http://software.schmorp.de/pkg/libev.html).
%prep
%setup -q -n EV-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor << _EOF
_EOF
%make %{?_smp_mflags}
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Tue Sep 09 2014 Automatic Build System <autodist@mambasoft.it> 4.18-1mamba
- automatic update by autodist
* Mon May 26 2014 Automatic Build System <autodist@mambasoft.it> 4.17-1mamba
- automatic update by autodist
* Sat Mar 15 2014 Automatic Build System <autodist@mambasoft.it> 4.16-1mamba
- automatic update by autodist
* Sat Mar 02 2013 Automatic Build System <autodist@mambasoft.it> 4.15-1mamba
- automatic version update by autodist
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11-2mamba
- perl 5.16 mass rebuild
* Tue Aug 07 2012 Automatic Build System <autodist@mambasoft.it> 4.11-1mamba
- automatic version update by autodist
* Mon Jan 17 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.03-1mamba
- update to 4.03
* Tue Mar 31 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.53-1mamba
- automatic update by autodist
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.52-1mamba
- automatic update by autodist
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.42-2mamba
- automatic rebuild by autodist
* Wed Jul 02 2008 gil <puntogil@libero.it> 3.42-1mamba
- package created by autospec