%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-YAML-LibYAML Version: 0.41 Release: 1mamba Summary: An XS Wrapper Module of libyaml Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/I/IN/INGY/YAML-LibYAML-%{version}.tar.gz #Patch0: %{name}--.patch License: GPL, Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl-devel Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description An XS Wrapper Module of libyaml. %prep %setup -q -n YAML-LibYAML-%{version} #%patch0 -p1 %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 -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 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f .packlist %defattr(-,root,root) %doc README %changelog * Tue Mar 19 2013 Automatic Build System 0.41-1mamba - automatic version update by autodist * Thu Feb 21 2013 Automatic Build System 0.39-1mamba - automatic version update by autodist * Sun Nov 11 2012 Silvan Calarco 0.38-2mamba - perl 5.16 mass rebuild * Wed Apr 25 2012 Automatic Build System 0.38-1mamba - automatic version update by autodist * Sun May 22 2011 Automatic Build System 0.35-1mamba - automatic update by autodist * Mon Mar 21 2011 Silvan Calarco 0.34-1mamba - package created by autospec