%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) Name: perl-Unicode-LineBreak Version: 2019.001 Release: 2mamba Summary: Unicode::LineBreak - UAX 14 Unicode Line Breaking Algorithm Group: System/Libraries/Perl Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cpan.org/ Source: http://search.cpan.org/CPAN/authors/id/N/NE/NEZUMI/Unicode-LineBreak-%{version}.tar.gz License: GPL, Artistic ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libthai-devel BuildRequires: perl-Encode BuildRequires: perl-MIME-Charset BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRequires: perl >= 2:5.36.0 Requires: perl >= %perl_major_ver %description UAX 14 Unicode Line Breaking Algorithm. %prep %setup -q -n Unicode-LineBreak-%{version} %define _use_internal_dependency_generator 0 %define __find_requires %{_builddir}/Unicode-LineBreak-%{version}/find_requires.sh cat > find_requires.sh << _EOF #! /bin/sh %{_prefix}/lib/rpm/find-requires %{buildroot} %{_target_cpu} 2>/dev/null | \ grep -v "perl(Unicode::LineBreak::Constants)" exit 0 _EOF chmod +x find_requires.sh %build %{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %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 find %{buildroot} -name *.so -exec chmod u+w {} \; %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files -f .packlist %defattr(-,root,root) %changelog * Sun Apr 16 2023 Sdk Build System 2019.001-2mamba - rebuilt with perl 5.36.0 * Sun Apr 19 2020 Automatic Build System 2019.001-1mamba - automatic update by autodist * Sat Aug 12 2017 Silvan Calarco 2017.004-1mamba - update to 2017.004 * Thu Sep 01 2016 Automatic Build System 2016.007_02-1mamba - automatic update by autodist * Mon Dec 14 2015 Silvan Calarco 2015.12-1mamba - package created using the webbuild interface