diff --git a/README.md b/README.md index 51dd529..5c774d5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Unicode-LineBreak +UAX 14 Unicode Line Breaking Algorithm. + diff --git a/perl-Unicode-LineBreak.spec b/perl-Unicode-LineBreak.spec new file mode 100644 index 0000000..3931eb7 --- /dev/null +++ b/perl-Unicode-LineBreak.spec @@ -0,0 +1,75 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Unicode-LineBreak +Version: 2017.004 +Release: 1mamba +Summary: Unicode::LineBreak - UAX 14 Unicode Line Breaking Algorithm +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://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: libperl +BuildRequires: libthai-devel +BuildRequires: perl-MIME-Charset +BuildRequires: perl-devel +## AUTOBUILDREQ-END +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* 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