2024-01-06 09:51:47 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Unicode-LineBreak
|
2024-01-06 09:51:47 +01:00
|
|
|
Version: 2019.001
|
2024-01-06 09:51:47 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 09:51:47 +01:00
|
|
|
Summary: Unicode::LineBreak - UAX 14 Unicode Line Breaking Algorithm
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 09:51:47 +01:00
|
|
|
URL: https://www.cpan.org/
|
2024-01-06 09:51:47 +01:00
|
|
|
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
|
2024-01-06 09:51:47 +01:00
|
|
|
BuildRequires: perl-Encode
|
2024-01-06 09:51:47 +01:00
|
|
|
BuildRequires: perl-MIME-Charset
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 09:51:47 +01:00
|
|
|
BuildRequires: perl >= 2:5.36.0
|
2024-01-06 09:51:47 +01:00
|
|
|
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
|
|
|
|
|
2024-01-06 09:51:47 +01:00
|
|
|
find %{buildroot} -name *.so -exec chmod u+w {} \;
|
|
|
|
|
2024-01-06 09:51:47 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:51:47 +01:00
|
|
|
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 2019.001-2mamba
|
|
|
|
- rebuilt with perl 5.36.0
|
|
|
|
|
2024-01-06 09:51:47 +01:00
|
|
|
* Sun Apr 19 2020 Automatic Build System <autodist@mambasoft.it> 2019.001-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 09:51:47 +01:00
|
|
|
* Sat Aug 12 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2017.004-1mamba
|
|
|
|
- update to 2017.004
|
|
|
|
|
|
|
|
* Thu Sep 01 2016 Automatic Build System <autodist@mambasoft.it> 2016.007_02-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Dec 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2015.12-1mamba
|
|
|
|
- package created using the webbuild interface
|