2024-01-06 09:51:59 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
2024-01-06 09:52:00 +01:00
|
|
|
Name: perl-Unicode-Map8
|
|
|
|
Version: 0.13
|
|
|
|
Release: 4mamba
|
|
|
|
Summary: Unicode::Map8 - Mapping table between 8-bit chars and Unicode
|
|
|
|
Group: System/Libraries/Perl
|
2024-01-06 09:51:59 +01:00
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 09:52:00 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.cpan.org/
|
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Unicode-Map8-%{version}.tar.gz
|
|
|
|
License: perl
|
2024-01-06 09:51:59 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-06 09:52:00 +01:00
|
|
|
BuildRequires: libperl
|
|
|
|
BuildRequires: perl(Unicode::String)
|
2024-01-06 09:51:59 +01:00
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 09:52:00 +01:00
|
|
|
BuildRequires: perl >= 2:5.36.0
|
|
|
|
Requires: perl >= %perl_major_ver
|
2024-01-06 09:51:59 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Unicode::Map8 class implement efficient mapping tables between 8-bit character sets and 16 bit character sets like Unicode. The tables are efficient both in terms of space allocated and translation speed. The 16-bit strings is assumed to use network byte order
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Unicode-Map8-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make
|
2024-01-06 09:51:59 +01:00
|
|
|
%ifnarch x86_64 aarch64
|
2024-01-06 09:51:59 +01:00
|
|
|
%make test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
2024-01-06 09:52:00 +01:00
|
|
|
find %{buildroot} -name *.so -exec chmod u+w {} \;
|
|
|
|
|
2024-01-06 09:51:59 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
rm -f .packlist
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:52:00 +01:00
|
|
|
* Sun Apr 16 2023 Sdk Build System <sdk@mambasoft.it> 0.13-4mamba
|
|
|
|
- rebuilt with perl 5.36.0
|
|
|
|
|
2024-01-06 09:51:59 +01:00
|
|
|
* Wed Nov 09 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13-3mamba
|
|
|
|
- rebuilt with perl 5.24
|
|
|
|
|
2024-01-06 09:51:59 +01:00
|
|
|
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.13-2mamba
|
|
|
|
- perl 5.16 mass rebuild
|
|
|
|
|
|
|
|
* Fri Jan 22 2010 Automatic Build System <autodist@mambasoft.it> 0.13-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Nov 06 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Sat Jul 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.12-2mamba
|
|
|
|
- specfile updated
|
|
|
|
|
|
|
|
* Thu Dec 29 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.12-1qilnx
|
|
|
|
- package created by autospec
|