%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-AptPkg Version: 0.1.24 Release: 3mamba Summary: AptPkg - A Perl interface to APT's libapt-pkg Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Stefano Cotta Ramusino URL: http://packages.qa.debian.org/liba/libapt-pkg-perl.html Source: http://ftp.debian.org/debian/pool/main/liba/libapt-pkg-perl/libapt-pkg-perl_%{version}.tar.gz Patch0: %{name}-0.1.22-cstring_include.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libstdc++6-devel BuildRequires: perl-devel BuildRequires: apt-devel ## AUTOBUILDREQ-END Requires: perl >= %{perl_major_ver} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description A Perl interface to APT's libapt-pkg which provides modules for configuration file/command line parsing, version comparison, inspection of the binary package cache and source package details. %prep %setup -q -n libapt-pkg-perl-%{version} %patch0 -p1 %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make %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 * Thu Dec 30 2010 Silvan Calarco 0.1.24-3mamba - rebuilt with apt 0.5.15lorg3.94a * Wed Jun 02 2010 Silvan Calarco 0.1.24-2mamba - rebuilt with recent apt libraries * Sat Aug 29 2009 Automatic Build System 0.1.24-1mamba - automatic update by autodist * Sat May 02 2009 Automatic Build System 0.1.23-1mamba - automatic update by autodist * Sun Nov 09 2008 Silvan Calarco 0.1.22-1mamba - update to 0.1.22 * Sun Nov 09 2008 Silvan Calarco 0.1.21-3mamba - automatic rebuild by autodist * Sat Dec 15 2007 Silvan Calarco 0.1.21-2mamba - rebuilt against new apt library * Thu Jul 05 2007 Stefano Cotta Ramusino 0.1.21-1mamba - package created by autospec aggiornamento del pacchetto perl-AptPkg alla versione [?]...