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