]>
Commit | Line | Data |
---|---|---|
e178297d | 1 | # |
2 | # Conditional build: | |
89d6ccca | 3 | %bcond_without tests # unit tests |
e178297d | 4 | # |
e178297d | 5 | %define pdir Encode |
6 | Summary: Encode - character encodings | |
76c5dcf4 | 7 | Summary(pl.UTF-8): Encode - kodowania znaków |
e178297d | 8 | Name: perl-Encode |
dcebe829 JB |
9 | Version: 3.17 |
10 | Release: 1 | |
2ec70903 | 11 | Epoch: 2 |
4f328e55 | 12 | License: GPL v1+ or Artistic |
e178297d | 13 | Group: Development/Languages/Perl |
65278bf6 | 14 | Source0: http://www.cpan.org/modules/by-module/Encode/%{pdir}-%{version}.tar.gz |
dcebe829 | 15 | # Source0-md5: c55a11554641517ae7b04bf2ec53b271 |
89d6ccca | 16 | URL: https://metacpan.org/release/Encode |
e178297d | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
89d6ccca | 19 | BuildRequires: rpmbuild(macros) >= 1.745 |
a34edbdf JB |
20 | %if %{with tests} |
21 | BuildRequires: perl(Exporter) >= 5.57 | |
22 | BuildRequires: perl-Test-Simple >= 0.81_01 | |
23 | BuildRequires: perl-parent >= 0.221 | |
24 | %endif | |
2bd60be3 | 25 | Requires: perl-parent >= 0.221 |
dcebe829 | 26 | Obsoletes: perl-Encode-compat < 0.08 |
e178297d | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | The Encode module provides the interfaces between Perl's strings and | |
31 | the rest of the system. | |
32 | ||
059b4387 JR |
33 | %description -l pl.UTF-8 |
34 | Moduł Encode udostępnia interfejs pomiędzy łańcuchami w wewnętrznym | |
35 | formacie Perla a resztą systemu. | |
e178297d | 36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} \ | |
04acbe1e | 44 | CC="%{__cc}" \ |
e178297d | 45 | OPTIMIZE="%{rpmcflags}" |
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 | ||
6ffce9fc | 55 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Encode |
56 | ||
675beb8a AM |
57 | # rename to avoid conflict with perl-tools |
58 | mv $RPM_BUILD_ROOT%{_bindir}/encguess{,-tool} | |
59 | ||
e178297d | 60 | %clean |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
65 | %doc AUTHORS Changes README | |
2939b82f | 66 | %attr(755,root,root) %{_bindir}/enc2xs |
675beb8a | 67 | %attr(755,root,root) %{_bindir}/encguess-tool |
2939b82f | 68 | %attr(755,root,root) %{_bindir}/piconv |
4a2ccf55 JB |
69 | %{perl_vendorarch}/Encode.pm |
70 | %{perl_vendorarch}/encoding.pm | |
fe71043d | 71 | # FIXME: *.h to devel(?), check out the use for *.e2x files |
e901fea2 JB |
72 | %{perl_vendorarch}/Encode |
73 | %dir %{perl_vendorarch}/auto/Encode | |
65278bf6 JB |
74 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/Encode.so |
75 | %dir %{perl_vendorarch}/auto/Encode/Byte | |
76 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/Byte/Byte.so | |
77 | %dir %{perl_vendorarch}/auto/Encode/CN | |
78 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/CN/CN.so | |
79 | %dir %{perl_vendorarch}/auto/Encode/EBCDIC | |
80 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/EBCDIC/EBCDIC.so | |
81 | %dir %{perl_vendorarch}/auto/Encode/JP | |
82 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/JP/JP.so | |
83 | %dir %{perl_vendorarch}/auto/Encode/KR | |
84 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/KR/KR.so | |
85 | %dir %{perl_vendorarch}/auto/Encode/Symbol | |
86 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/Symbol/Symbol.so | |
87 | %dir %{perl_vendorarch}/auto/Encode/TW | |
88 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/TW/TW.so | |
89 | %dir %{perl_vendorarch}/auto/Encode/Unicode | |
90 | %attr(755,root,root) %{perl_vendorarch}/auto/Encode/Unicode/Unicode.so | |
6ffce9fc | 91 | %dir %{perl_vendorlib}/Encode |
2939b82f | 92 | %{_mandir}/man1/enc2xs.1* |
e247279f | 93 | %{_mandir}/man1/encguess.1* |
2939b82f JB |
94 | %{_mandir}/man1/piconv.1* |
95 | %{_mandir}/man3/Encode*.3pm* | |
96 | %{_mandir}/man3/encoding.3pm* |