%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Unicode-String Version: 2.10 Release: 1mamba Summary: Unicode::String - Represents a sequence of Unicode characters Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.cpan.org Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/GAAS/Unicode-String-%{version}.tar.gz License: Artistic, GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: perl-devel ## AUTOBUILDREQ-END Requires: perl >= %perl_major_ver BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Represents a sequence of Unicode characters. Methods are provided to convert between various external formats (encodings) and Unicode::String objects, and methods are provided for common string manipulations. %prep %setup -q -n Unicode-String-%{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 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" rm -f .packlist %files -f .packlist %defattr(-,root,root) %changelog * Wed Nov 09 2016 Silvan Calarco 2.10-1mamba - update to 2.10 * Wed Nov 09 2016 Silvan Calarco 2.09-6mamba - rebuilt with perl 5.24 * Tue Nov 13 2012 Silvan Calarco 2.09-5mamba - perl 5.16 mass rebuild * Wed Nov 05 2008 Silvan Calarco 2.09-4mamba - automatic rebuild by autodist * Sat Jul 26 2008 Silvan Calarco 2.09-3mamba - specfile updated * Wed Oct 11 2006 Stefano Cotta Ramusino 2.09-2qilnx - fixed license * Thu Dec 29 2005 Alessandro Ramazzina 2.09-1qilnx - package created by autospec