3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 %define pnam libintl-perl
7 Summary: Internationalization library for Perl
8 Summary(pl.UTF-8): Biblioteka umiędzynaradawiająca Perla
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-authors/id/G/GU/GUIDO/%{pnam}-%{version}.tar.gz
15 # Source0-md5: cb36f58a7d2e15974f25b35381548b1b
16 URL: http://search.cpan.org/dist/libintl-perl/
17 BuildRequires: gdbm-devel
18 %{?with_tests:BuildRequires: glibc-localedb-all}
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The package is an internationalization library for Perl that aims to
25 be compatible with the Uniforum message translations system as
26 implemented for example in GNU gettext.
28 %description -l pl.UTF-8
29 Pakiet stanowi bibliotekę umiędzynaradawiającą Perla, która ma na celu
30 zachowanie zgodności ze standardem Uniforum tłumaczenia komunikatów
31 zaimplementowanym na przykład w gettexcie GNU.
34 %setup -q -n %{pnam}-%{version}
37 %{__perl} Makefile.PL \
41 OPTIMIZE="%{rpmcflags}"
43 # LC_ALL= LANG=... -- workaround for broken (?) gettext
44 %{?with_tests:LC_ALL= LANG=en_US %{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} pure_install \
50 DESTDIR=$RPM_BUILD_ROOT
52 %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Locale/{gettext_xs,libintlFAQ}.pod
53 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/libintl-perl/.packlist
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc README ChangeLog TODO
61 %dir %{perl_vendorarch}/auto/Locale/gettext_xs
62 %attr(755,root,root) %{perl_vendorarch}/auto/Locale/gettext_xs/gettext_xs.so
63 %{perl_vendorarch}/auto/Locale/gettext_xs/gettext_xs.bs
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
69 %{perl_vendorlib}/Locale/gettext_pp.pm
70 %{perl_vendorlib}/Locale/gettext_xs.pm
71 %{perl_vendorlib}/Locale/Recode
72 %{perl_vendorlib}/Locale/RecodeData
73 %{_mandir}/man3/Locale::Messages.3pm*
74 %{_mandir}/man3/Locale::Recode*.3pm*
75 %{_mandir}/man3/Locale::TextDomain.3pm*
76 %{_mandir}/man3/Locale::Util.3pm*
77 %{_mandir}/man3/Locale::gettext_pp.3pm*
78 %{_mandir}/man3/Locale::gettext_xs.3pm*
79 %{_mandir}/man3/Locale::libintlFAQ.3pm*