%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Alien-libuv Version: 1.014 Release: 1mamba Summary: Alien::libuv - Interface to the libuv library Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/Alien-libuv-%{version}.tar.gz License: GPL, Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: ldconfig BuildRequires: perl-Alien-Build BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl-Alien-Autotools BuildRequires: perl-devel Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Alien::libuv - Interface to the libuv library. %prep %setup -q -n Alien-libuv-%{version} %global __provides_exclude ^libuv.so.*$ %build export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" MODULEBUILDRC=/dev/null %{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %make #% make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL="--skipdeps" MODULEBUILDRC=/dev/null %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 -f $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 chmod +w %{buildroot}%{perl_vendorarch}/auto/share/dist/Alien-libuv/lib/libuv.a %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f .packlist %defattr(-,root,root) %doc LICENSE ## note: eventually add the remaining documents (if any) # %doc README %changelog * Tue Dec 08 2020 Silvan Calarco 1.014-1mamba - package created using the webbuild interface