perl-Event-Lib/perl-Event-Lib.spec

79 lines
2.4 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Event-Lib
Version: 1.03
Release: 6mamba
Summary: Event::Lib - Perl wrapper around libevent
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/Event-Lib-%{version}.tar.gz
Patch0: %{name}-1.03-arm-fix-missing-off64_t.patch
Patch1: perl-Event-Lib-1.03-libevent-2.1.patch
License: Artistic, GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libevent-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
BuildRequires: perl-Test-Pod
BuildRequires: perl-Test-Pod-Coverage
%description
This module is a Perl wrapper around libevent as available from http://monkey.org/~provos/libevent/. It allows to execute a function whenever a given event on a filehandle happens, a timeout occurs or a signal is received
%prep
%setup -q -n Event-Lib-%{version}
%patch 0 -p1
%patch 1 -p1
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%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
find %{buildroot} -name *.so -exec chmod u+w {} \;
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 1.03-6mamba
- rebuilt with perl 5.36.0
* Sun Dec 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-5mamba
- rebuilt with patch against libevent 2.1
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-4mamba
- rebuilt with perl 5.24
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-3mamba
- perl 5.16 mass rebuild
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-2mamba
- automatic rebuild by autodist
* Wed Jul 02 2008 gil <puntogil@libero.it> 1.03-1mamba
- package created by autospec