3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Encode::HanExtra - Extra sets of Chinese encodings
9 Summary(pl.UTF-8): Encode::HanExtra - Dodatkowe zestawy mapowań chińskich
10 Name: perl-Encode-HanExtra
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Encode/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: e1d3bc32c1c8ee304235a06fbcd5d5a4
18 URL: http://search.cpan.org/dist/Encode-HanExtra/
19 BuildRequires: perl-Encode >= 2.09
20 %{?with_tests:BuildRequires: perl-Module-Signature}
21 BuildRequires: perl-devel >= 1:5.7.3
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 In the 1950's, the Chinese government simplified over 2000 Chinese
27 characters. Taiwan and Hong Kong still use the traditional characters.
28 The simplified characters are hard to read if you only know the
29 traditional ones, and vice-versa. This module attempts to convert
30 Chinese text between the two forms, using character-by-character
33 %description -l pl.UTF-8
34 W latach 1950-tych rząd chiński uprościł ponad 2000 chińskich
35 ideogramów. Tajwan i Hong Kong nadal używają ideogramów tradycyjnych.
36 Ideogramy uproszczone są trudne do odczytania dla znających tylko
37 tradycyjne i odwrotnie. Moduł próbuje konwertować teksty chińskie
38 pomiędzy tymi postaciami stosując transliterację znak po znaku.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 OPTIMIZE="%{rpmcflags}"
50 %{?with_tests:%{__make} test}
53 rm -rf $RPM_BUILD_ROOT
56 DESTDIR=$RPM_BUILD_ROOT
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorarch}/Encode/HanExtra.pm
65 %dir %{perl_vendorarch}/Encode/TW
66 %dir %{perl_vendorarch}/Encode/TW/Unisys
67 %{perl_vendorarch}/Encode/TW/Unisys/SOSI*.pm
68 %dir %{perl_vendorarch}/auto/Encode/HanExtra
69 %attr(755,root,root) %{perl_vendorarch}/auto/Encode/HanExtra/HanExtra.so
70 %{_mandir}/man3/Encode::HanExtra.3*
71 %{_mandir}/man3/Encode::TW::Unisys::SOSI*.3*