]> git.pld-linux.org Git - packages/perl-libintl.git/blame - perl-libintl.spec
perl 5.38.0 rebuild
[packages/perl-libintl.git] / perl-libintl.spec
CommitLineData
b5cc4102 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
b5cc4102 5%define pnam libintl-perl
6Summary: Internationalization library for Perl
bc898190 7Summary(pl.UTF-8): Biblioteka umiędzynaradawiająca Perla
cfdefdf3 8Name: perl-libintl
85c3d9bb 9Version: 1.32
20b877a4 10Release: 4
bcbc7380 11License: LGPL v2+
b5cc4102 12Group: Development/Languages/Perl
62b76e3f 13Source0: https://cpan.metacpan.org/authors/id/G/GU/GUIDO/%{pnam}-%{version}.tar.gz
85c3d9bb 14# Source0-md5: 2bde66347614962a6f0f1bd1c36b5211
62b76e3f 15URL: https://metacpan.org/release/libintl-perl
2ce65196 16BuildRequires: gdbm-devel
8f6bdc58 17%{?with_tests:BuildRequires: glibc-localedb-all}
b5cc4102 18BuildRequires: perl-devel >= 1:5.8.0
85c3d9bb 19%{?with_tests:BuildRequires: perl-version >= 0.77}
b5cc4102 20BuildRequires: rpm-perlprov >= 4.1-13
85c3d9bb 21BuildRequires: rpmbuild(macros) >= 1.745
b5cc4102 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25The package is an internationalization library for Perl that aims to
26be compatible with the Uniforum message translations system as
27implemented for example in GNU gettext.
28
c6c85c5e
JR
29%description -l pl.UTF-8
30Pakiet stanowi bibliotekę umiędzynaradawiającą Perla, która ma na celu
31zachowanie zgodności ze standardem Uniforum tłumaczenia komunikatów
32zaimplementowanym na przykład w gettexcie GNU.
b5cc4102 33
34%prep
35%setup -q -n %{pnam}-%{version}
36
37%build
38%{__perl} Makefile.PL \
c99d8a4c
ER
39 INSTALLDIRS=vendor
40%{__make} \
41 CC="%{__cc}" \
b5cc4102 42 OPTIMIZE="%{rpmcflags}"
b5cc4102 43
7bac0f91 44# LC_ALL= LANG=... -- workaround for broken (?) gettext
45%{?with_tests:LC_ALL= LANG=en_US %{__make} test}
b5cc4102 46
47%install
48rm -rf $RPM_BUILD_ROOT
b5cc4102 49
bcbc7380 50%{__make} pure_install \
b5cc4102 51 DESTDIR=$RPM_BUILD_ROOT
52
bcbc7380
JB
53%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Locale/{gettext_xs,libintlFAQ}.pod
54rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/libintl-perl/.packlist
8f6bdc58 55
b5cc4102 56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
f0177b2c 61%doc README Changes TODO
b5cc4102 62%dir %{perl_vendorarch}/auto/Locale/gettext_xs
bcbc7380 63%attr(755,root,root) %{perl_vendorarch}/auto/Locale/gettext_xs/gettext_xs.so
bcbc7380
JB
64%{perl_vendorlib}/Locale/Messages.pm
65%{perl_vendorlib}/Locale/Recode.pm
66%{perl_vendorlib}/Locale/RecodeData.pm
67%{perl_vendorlib}/Locale/TextDomain.pm
68%{perl_vendorlib}/Locale/Util.pm
aebbdf9b 69%{perl_vendorlib}/Locale/gettext_dumb.pm
bcbc7380
JB
70%{perl_vendorlib}/Locale/gettext_pp.pm
71%{perl_vendorlib}/Locale/gettext_xs.pm
b5cc4102 72%{perl_vendorlib}/Locale/Recode
73%{perl_vendorlib}/Locale/RecodeData
bcbc7380
JB
74%{_mandir}/man3/Locale::Messages.3pm*
75%{_mandir}/man3/Locale::Recode*.3pm*
76%{_mandir}/man3/Locale::TextDomain.3pm*
77%{_mandir}/man3/Locale::Util.3pm*
aebbdf9b 78%{_mandir}/man3/Locale::gettext_dumb.3pm*
bcbc7380
JB
79%{_mandir}/man3/Locale::gettext_pp.3pm*
80%{_mandir}/man3/Locale::gettext_xs.3pm*
81%{_mandir}/man3/Locale::libintlFAQ.3pm*
This page took 0.2055 seconds and 4 git commands to generate.