2024-01-06 09:51:35 +01:00
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name : perl-Unicode-EastAsianWidth
2024-01-06 09:51:35 +01:00
Version : 12.0
2024-01-06 09:51:35 +01:00
Release : 1mamba
Summary : Unicode::EastAsianWidth - East Asian Width properties
Group : System/Libraries/Perl
Vendor : openmamba
Distribution : openmamba
Packager : Silvan Calarco <silvan.calarco@mambasoft.it>
URL : http://www.cpan.org
Source : http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/Unicode-EastAsianWidth-%{version} .tar.gz
License : MIT
Requires : perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires : perl-devel
## AUTOBUILDREQ-END
BuildRequires : perl-devel >= %perl_major_ver
BuildRoot : %{_tmppath} /%{name} -%{version} -root
%description
This module provide user-defined Unicode properties that deal with East Asian characters' width status, as specified in <http://www.unicode.org/unicode/reports/tr11></http:>.
It exports the following functions to the caller's scope, to be used by Perl' s Unicode matching system: " I n E a s t A s i a n F u l l w i d t h " , " I n E a s t A s i a n H a l f w i d t h " , " I n E a s t A s i a n A m b i g u o u s " , " I n E a s t A s i a n N a r r o w " " I n E a s t A s i a n W i d e " , " I n E a s t A s i a n N e u t r a l " .
In accord to TR11 cited above, two additional context-sensitive properties are exported: " I n F u l l w i d t h " (union of " F u l l w i d t h " and " W i d e " ) and " I n H a l f w i d t h " (union of " H a l f w i d t h " , " N a r r o w " and " N e u t r a l " ).
*Ambiguous* characters are treated by default as part of " I n H a l f w i d t h " , but you can modify this behaviour by assigning a true value to $Unicode::EastAsianWidth::EastAsian.
%prep
%setup -q -n Unicode-EastAsianWidth-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
%makeinstall _perl
packlist=`find %{buildroot} -name .packlist`
[ -z " $ p a c k l i s t " ] && exit 1 || cat $packlist | \
sed " s , % b u i l d r o o t , , g ; s , . * / m a n / . * , & . g z , 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 " % d i r $ { d i r # % b u i l d r o o t } " >> .packlist
done
%clean
[ " %{buildroot} " != / ] && rm -rf " %{buildroot} "
rm -f .packlist
%files -f .packlist
%defattr (-,root,root)
%changelog
2024-01-06 09:51:35 +01:00
* Mon May 25 2020 Automatic Build System <autodist@mambasoft.it> 12.0-1mamba
- automatic update by autodist
2024-01-06 09:51:35 +01:00
* Wed Apr 17 2019 Automatic Build System <autodist@mambasoft.it> 1.40-1mamba
- automatic update by autodist
2024-01-06 09:51:35 +01:00
* Fri Feb 22 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.33-1mamba
- update to 1.33
* Sat Oct 23 2010 gil <puntogil@libero.it> 1.30-1mamba
- package created by autospec