%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-HTTP-GHTTP Version: 1.07 Release: 6mamba Summary: HTTP::GHTTP - Perl interface to the gnome ghttp library Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cpan.org/ Source: http://search.cpan.org/CPAN/authors/id/M/MS/MSERGEANT/HTTP-GHTTP-%{version}.tar.gz License: Artistic, GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libghttp-devel BuildRequires: libperl BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl >= 2:5.36.0 BuildRequires: libgdbm-devel Requires: perl >= %perl_major_ver %description This is a fairly low level interface to the Gnome project's libghttp, which allows you to process HTTP requests to HTTP servers. There also exists a slightly higher level interface - a simple get() function which takes a URI as a parameter. This is not exported by default, you have to ask for it explicitly. %prep %setup -q -n HTTP-GHTTP-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %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 1.07-6mamba - rebuilt with perl 5.36.0 * Wed Nov 09 2016 Silvan Calarco 1.07-5mamba - rebuilt with perl 5.24 * Sat Nov 10 2012 Silvan Calarco 1.07-4mamba - perl 5.16 mass rebuild * Wed Nov 05 2008 Silvan Calarco 1.07-3mamba - automatic rebuild by autodist * Sat Jul 26 2008 Silvan Calarco 1.07-2mamba - specfile updated * Tue Jun 06 2006 Stefano Cotta Ramusino 1.07-1qilnx - package created by autospec