]> git.pld-linux.org Git - packages/perl-Lingua-ZH-HanConvert.git/blob - perl-Lingua-ZH-HanConvert.spec
a633e1887a872a62735e730f50978b1d7597d9f3
[packages/perl-Lingua-ZH-HanConvert.git] / perl-Lingua-ZH-HanConvert.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    Lingua
7 %define         pnam    ZH-HanConvert
8 Summary:        Lingua::ZH::HanConvert - convert Traditional Chinese <-> Simplified Chinese
9 Summary(pl.UTF-8):      Lingua::ZH::HanConvert - konwersja chiński tradycyjny <-> chiński uproszczony
10 Name:           perl-Lingua-ZH-HanConvert
11 Version:        0.12
12 Release:        4
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tgz
17 # Source0-md5:  918d5221e27fbe5ca8ab1ac81e0c5e10
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 In the 1950's, the Chinese government simplified over 2000 Chinese
25 characters. Taiwan and Hong Kong still use the traditional characters.
26 The simplified characters are hard to read if you only know the
27 traditional ones, and vice-versa. This module attempts to convert
28 Chinese text between the two forms, using character-by-character
29 transliteration.
30
31 %description -l pl.UTF-8
32 W latach 1950-tych rząd chiński uprościł ponad 2000 chińskich
33 ideogramów. Tajwan i Hong Kong nadal używają ideogramów tradycyjnych.
34 Ideogramy uproszczone są nieczytelne dla znających tylko tradycyjne
35 i odwrotnie. Moduł dokonuje wzajemnej konwersji tekstów chińskich
36 w tych dwu postaciach stosując z transliterację znak po znaku.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} -pi -e 's/^use v5\.6\.0(;.*)$/use 5.006_00$1/' HanConvert.pm
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc ChangeLog
61 %dir %{perl_vendorlib}/Lingua/ZH
62 %{perl_vendorlib}/Lingua/ZH/HanConvert.pm
63 %{_mandir}/man3/*
This page took 0.134085 seconds and 2 git commands to generate.