]>
Commit | Line | Data |
---|---|---|
5bb5e1ed | 1 | # |
2 | # Conditional build: | |
553f0aa5 | 3 | %bcond_without tests # do not perform "make test" |
95ceda36 | 4 | # |
5bb5e1ed | 5 | %include /usr/lib/rpm/macros.perl |
b9100027 | 6 | %define pdir Locale |
7 | %define pnam Maketext-Lexicon | |
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 |
65fc72f3 | 11 | Version: 0.46 |
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 |
75119ae2 | 17 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
65fc72f3 | 18 | # Source0-md5: 40ffe77d0b987c7138f0cc07d9d82051 |
1edeba59 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
eb309677 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
553f0aa5 | 21 | %if %{with tests} |
5bb5e1ed | 22 | BuildRequires: perl-Locale-Maketext |
23 | BuildRequires: perl-Regexp-Common | |
24 | BuildRequires: perl-Test-Simple | |
c83f2482 | 25 | # to resolve dependency package name only: |
26 | BuildRequires: perl-Lingua-EN-Sentence | |
5bb5e1ed | 27 | %endif |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
32 | This module provides lexicon-handling modules to read from other | |
33 | localization formats, such as Gettext, Msgcat, and so on. | |
34 | ||
5b16708e JR |
35 | %description -l pl.UTF-8 |
36 | Ten moduł udostępnia moduły do obsługi słowników, pozwalające czytać z | |
37 | innych formatów plików lokalizacyjnych, takich jak Gettext, Msgcat | |
ea4c5f9e | 38 | itp. |
5bb5e1ed | 39 | |
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
eb309677 | 44 | %{__perl} Makefile.PL \ |
926897ca | 45 | INSTALLDIRS=vendor |
5bb5e1ed | 46 | %{__make} |
47 | ||
553f0aa5 | 48 | %{?with_tests:%{__make} test} |
5bb5e1ed | 49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
58122787 | 53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
5bb5e1ed | 55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc AUTHORS Change* README SIGNATURE | |
bf916117 AM |
62 | %{perl_vendorlib}/%{pdir}/Maketext/*.pm |
63 | %{perl_vendorlib}/%{pdir}/Maketext/Lexicon | |
dc70b645 | 64 | %{perl_vendorlib}/%{pdir}/Maketext/Extract |
5bb5e1ed | 65 | %{_bindir}/* |
66 | %{_mandir}/man?/* |