]>
Commit | Line | Data |
---|---|---|
5bb5e1ed | 1 | # |
2 | # Conditional build: | |
553f0aa5 | 3 | %bcond_without tests # do not perform "make test" |
639ae9a7 | 4 | |
b9100027 | 5 | %define pdir Locale |
6 | %define pnam Maketext-Lexicon | |
639ae9a7 | 7 | %include /usr/lib/rpm/macros.perl |
1577293b | 8 | Summary: Locale::Maketext::Lexicon - use other catalog formats in Maketext |
93e7fc15 | 9 | Summary(pl.UTF-8): Locale::Maketext::Lexicon - używanie innych formatów katalogów w Maketext |
5bb5e1ed | 10 | Name: perl-Locale-Maketext-Lexicon |
4bbf07b7 | 11 | Version: 1.00 |
c6d84980 | 12 | Release: 1 |
9851d16b | 13 | Epoch: 1 |
01cf01ec | 14 | # same as perl |
15 | License: GPL v1+ or Artistic | |
5bb5e1ed | 16 | Group: Development/Languages/Perl |
929c0acc | 17 | Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz |
4bbf07b7 | 18 | # Source0-md5: 51acf0cb00cc01a2c8f560d74dd6c593 |
929c0acc | 19 | URL: http://search.cpan.org/dist/Locale-Maketext-Lexicon/ |
28e2db8b | 20 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.30 |
1edeba59 | 21 | BuildRequires: perl-devel >= 1:5.8.0 |
eb309677 | 22 | BuildRequires: rpm-perlprov >= 4.1-13 |
553f0aa5 | 23 | %if %{with tests} |
639ae9a7 | 24 | BuildRequires: perl-Locale-Maketext >= 1.17 |
5bb5e1ed | 25 | BuildRequires: perl-Regexp-Common |
26 | BuildRequires: perl-Test-Simple | |
dc8d3f8f | 27 | BuildRequires: perl-Lingua-EN-Sentence >= 0.25 |
5bb5e1ed | 28 | %endif |
dc8d3f8f JB |
29 | Requires: perl-Locale-Maketext >= 1.17 |
30 | Suggests: perl-Lingua-EN-Sentence >= 0.25 | |
5bb5e1ed | 31 | BuildArch: noarch |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | This module provides lexicon-handling modules to read from other | |
36 | localization formats, such as Gettext, Msgcat, and so on. | |
37 | ||
5b16708e JR |
38 | %description -l pl.UTF-8 |
39 | Ten moduł udostępnia moduły do obsługi słowników, pozwalające czytać z | |
40 | innych formatów plików lokalizacyjnych, takich jak Gettext, Msgcat | |
ea4c5f9e | 41 | itp. |
5bb5e1ed | 42 | |
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | %build | |
eb309677 | 47 | %{__perl} Makefile.PL \ |
926897ca | 48 | INSTALLDIRS=vendor |
5bb5e1ed | 49 | %{__make} |
50 | ||
553f0aa5 | 51 | %{?with_tests:%{__make} test} |
5bb5e1ed | 52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
58122787 | 56 | %{__make} install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
5bb5e1ed | 58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
28e2db8b JB |
64 | %doc AUTHORS Changes README |
65 | %attr(755,root,root) %{_bindir}/xgettext.pl | |
66 | %{perl_vendorlib}/Locale/Maketext/Extract.pm | |
67 | %{perl_vendorlib}/Locale/Maketext/Extract | |
68 | %{perl_vendorlib}/Locale/Maketext/Lexicon.pm | |
69 | %{perl_vendorlib}/Locale/Maketext/Lexicon | |
70 | %{_mandir}/man1/xgettext.pl.1p* | |
71 | %{_mandir}/man3/Locale::Maketext::Extract*.3pm* | |
72 | %{_mandir}/man3/Locale::Maketext::Lexicon*.3pm* |