]>
Commit | Line | Data |
---|---|---|
ae3576ed PG |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
ae3576ed PG |
5 | %define pdir Encode |
6 | %define pnam HanExtra | |
7 | Summary: Encode::HanExtra - Extra sets of Chinese encodings | |
8 | Summary(pl.UTF-8): Encode::HanExtra - Dodatkowe zestawy mapowań chińskich | |
9 | Name: perl-Encode-HanExtra | |
10 | Version: 0.23 | |
f48e6d47 | 11 | Release: 16 |
ae3576ed PG |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Encode/%{pdir}-%{pnam}-%{version}.tar.gz | |
0251cf9a | 16 | # Source0-md5: e1d3bc32c1c8ee304235a06fbcd5d5a4 |
ae3576ed | 17 | URL: http://search.cpan.org/dist/Encode-HanExtra/ |
d0a505e3 | 18 | BuildRequires: perl-Encode >= 2.09 |
ae3576ed PG |
19 | %{?with_tests:BuildRequires: perl-Module-Signature} |
20 | BuildRequires: perl-devel >= 1:5.7.3 | |
21 | BuildRequires: rpm-perlprov >= 4.1-13 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | In the 1950's, the Chinese government simplified over 2000 Chinese | |
26 | characters. Taiwan and Hong Kong still use the traditional characters. | |
27 | The simplified characters are hard to read if you only know the | |
28 | traditional ones, and vice-versa. This module attempts to convert | |
29 | Chinese text between the two forms, using character-by-character | |
30 | transliteration. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | W latach 1950-tych rząd chiński uprościł ponad 2000 chińskich | |
34 | ideogramów. Tajwan i Hong Kong nadal używają ideogramów tradycyjnych. | |
35 | Ideogramy uproszczone są trudne do odczytania dla znających tylko | |
36 | tradycyjne i odwrotnie. Moduł próbuje konwertować teksty chińskie | |
37 | pomiędzy tymi postaciami stosując transliterację znak po znaku. | |
38 | ||
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} Makefile.PL \ | |
44 | INSTALLDIRS=vendor | |
45 | %{__make} \ | |
46 | CC="%{__cc}" \ | |
47 | OPTIMIZE="%{rpmcflags}" | |
48 | ||
49 | %{?with_tests:%{__make} test} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Changes | |
ae3576ed | 63 | %{perl_vendorarch}/Encode/HanExtra.pm |
0251cf9a PG |
64 | %dir %{perl_vendorarch}/Encode/TW |
65 | %dir %{perl_vendorarch}/Encode/TW/Unisys | |
d0a505e3 | 66 | %{perl_vendorarch}/Encode/TW/Unisys/SOSI*.pm |
ae3576ed | 67 | %dir %{perl_vendorarch}/auto/Encode/HanExtra |
ae3576ed | 68 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/HanExtra/HanExtra.so |
d0a505e3 JB |
69 | %{_mandir}/man3/Encode::HanExtra.3* |
70 | %{_mandir}/man3/Encode::TW::Unisys::SOSI*.3* |