]> git.pld-linux.org Git - packages/perl-Encode.git/blame - perl-Encode.spec
- updated to 3.17 (fixes CVE-2021-36770)
[packages/perl-Encode.git] / perl-Encode.spec
CommitLineData
e178297d 1#
2# Conditional build:
89d6ccca 3%bcond_without tests # unit tests
e178297d 4#
e178297d 5%define pdir Encode
6Summary: Encode - character encodings
76c5dcf4 7Summary(pl.UTF-8): Encode - kodowania znaków
e178297d 8Name: perl-Encode
dcebe829
JB
9Version: 3.17
10Release: 1
2ec70903 11Epoch: 2
4f328e55 12License: GPL v1+ or Artistic
e178297d 13Group: Development/Languages/Perl
65278bf6 14Source0: http://www.cpan.org/modules/by-module/Encode/%{pdir}-%{version}.tar.gz
dcebe829 15# Source0-md5: c55a11554641517ae7b04bf2ec53b271
89d6ccca 16URL: https://metacpan.org/release/Encode
e178297d 17BuildRequires: perl-devel >= 1:5.8.0
18BuildRequires: rpm-perlprov >= 4.1-13
89d6ccca 19BuildRequires: rpmbuild(macros) >= 1.745
a34edbdf
JB
20%if %{with tests}
21BuildRequires: perl(Exporter) >= 5.57
22BuildRequires: perl-Test-Simple >= 0.81_01
23BuildRequires: perl-parent >= 0.221
24%endif
2bd60be3 25Requires: perl-parent >= 0.221
dcebe829 26Obsoletes: perl-Encode-compat < 0.08
e178297d 27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30The Encode module provides the interfaces between Perl's strings and
31the rest of the system.
32
059b4387
JR
33%description -l pl.UTF-8
34Moduł Encode udostępnia interfejs pomiędzy łańcuchami w wewnętrznym
35formacie 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
50rm -rf $RPM_BUILD_ROOT
51
52%{__make} install \
53 DESTDIR=$RPM_BUILD_ROOT
54
6ffce9fc 55install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Encode
56
675beb8a
AM
57# rename to avoid conflict with perl-tools
58mv $RPM_BUILD_ROOT%{_bindir}/encguess{,-tool}
59
e178297d 60%clean
61rm -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*
This page took 0.060957 seconds and 4 git commands to generate.