%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-XML-Simple Version: 2.24 Release: 1mamba Summary: XML::Simple - Easy API to read/write XML (esp config files) Group: Development/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://www.cpan.org/modules/by-module/XML/XML-Simple-%{version}.tar.gz License: GPL BuildRequires: perl-devel >= %perl_major_ver Requires: perl >= %perl_major_ver BuildRequires: perl-XML-Parser BuildRequires: perl-XML-SAX BuildRequires: perl-XML-NamespaceSupport BuildRequires: perl-Tie-IxHash BuildRoot: %{_tmppath}/perl-root %description Easy API to read/write XML (esp config files). %prep %setup -q -n XML-Simple-%{version} %build perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor %make 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 * Sun Oct 22 2017 Automatic Build System 2.24-1mamba - automatic update by autodist * Sat Jan 02 2016 Automatic Build System 2.22-1mamba - automatic update by autodist * Sun Nov 11 2012 Silvan Calarco 2.20-2mamba - perl 5.16 mass rebuild * Mon Jun 25 2012 Automatic Build System 2.20-1mamba - automatic version update by autodist * Thu Nov 06 2008 Silvan Calarco 2.18-2mamba - automatic rebuild by autodist * Thu Sep 20 2007 Aleph0 2.18-1mamba - update to 2.18 * Sun Jul 18 2004 Silvan Calarco 2.12-1qilnx - first build