2024-01-06 08:56:43 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Event-Lib
|
|
|
|
Version: 1.03
|
2024-01-06 08:56:43 +01:00
|
|
|
Release: 5mamba
|
2024-01-06 08:56:43 +01:00
|
|
|
Summary: Event::Lib - Perl wrapper around libevent
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 08:56:43 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 08:56:43 +01:00
|
|
|
URL: http://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
|
2024-01-06 08:56:43 +01:00
|
|
|
Patch1: perl-Event-Lib-1.03-libevent-2.1.patch
|
2024-01-06 08:56:43 +01:00
|
|
|
License: Artistic, GPL
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libevent-devel
|
|
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: perl-Test-Pod
|
|
|
|
BuildRequires: perl-Test-Pod-Coverage
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%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}
|
|
|
|
%patch0 -p1
|
2024-01-06 08:56:43 +01:00
|
|
|
%patch1 -p1
|
2024-01-06 08:56:43 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
rm -f .packlist
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:56:43 +01:00
|
|
|
* Sun Dec 06 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-5mamba
|
|
|
|
- rebuilt with patch against libevent 2.1
|
|
|
|
|
2024-01-06 08:56:43 +01:00
|
|
|
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-4mamba
|
|
|
|
- rebuilt with perl 5.24
|
|
|
|
|
2024-01-06 08:56:43 +01:00
|
|
|
* 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
|