]>
Commit | Line | Data |
---|---|---|
0c972c18 | 1 | # |
2 | # Conditional build: | |
835a59aa | 3 | %bcond_without tests # do not perform "make test" |
558ceacc | 4 | |
c3ea93d3 | 5 | %define pdir Lingua |
6 | %define pnam EN-Inflect | |
558ceacc | 7 | %include /usr/lib/rpm/macros.perl |
3d1a4a02 | 8 | Summary: Lingua::EN::Inflect - convert singular to plural - select "a" or "an" |
6dc0c87e | 9 | Summary(pl.UTF-8): Lingua::EN::Inflect - konwersja liczby pojedynczej na mnogą z wyborem "a" lub "an" |
3a01ff08 | 10 | Name: perl-Lingua-EN-Inflect |
34f416cc | 11 | Version: 1.895 |
fdc45421 | 12 | Release: 1 |
d2bc07df | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
3a01ff08 | 15 | Group: Development/Languages/Perl |
19c7ccd7 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
34f416cc | 17 | # Source0-md5: 96ce4517a21800a6e90df1f4cdd515a5 |
558ceacc | 18 | URL: http://search.cpan.org/dist/Lingua-EN-Inflect/ |
1fca2cc9 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
c367fcd2 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
f72dd952 | 21 | BuildArch: noarch |
8dcf71b8 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
3a01ff08 | 23 | |
24 | %description | |
3d1a4a02 | 25 | The exportable subroutines of Lingua::EN::Inflect provide plural |
26 | inflections, "a"/"an" selection for English words, and manipulation of | |
27 | numbers as words | |
3a01ff08 | 28 | |
065982f1 JR |
29 | %description -l pl.UTF-8 |
30 | Eksportowalne procedury Lingua::EN::Inflect umożliwiają konwersję | |
31 | pomiędzy liczbą pojedynczą a mnogą z wyborem "a"/"an" dla wyrazów w | |
32 | języku angielskim oraz manipulacje na wielu wyrazach. | |
3a01ff08 | 33 | |
34 | %prep | |
68fcdb0f | 35 | %setup -q -n %{pdir}-%{pnam}-%{version} |
3a01ff08 | 36 | |
37 | %build | |
c367fcd2 | 38 | %{__perl} Makefile.PL \ |
a5f23236 | 39 | INSTALLDIRS=vendor |
00015ab7 | 40 | %{__make} |
835a59aa | 41 | |
42 | %{?with_tests:%{__make} test} | |
3a01ff08 | 43 | |
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
34f416cc | 46 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
3a01ff08 | 47 | |
506043f9 | 48 | %{__make} install \ |
49 | DESTDIR=$RPM_BUILD_ROOT | |
3a01ff08 | 50 | |
fe1eacbf | 51 | install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Lingua/EN/Inflect |
558ceacc | 52 | cp -p demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
fe1eacbf | 53 | |
3a01ff08 | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
88db33e9 | 59 | %doc Changes README |
fe1eacbf | 60 | %dir %{perl_vendorlib}/Lingua/EN/Inflect |
c367fcd2 | 61 | %{perl_vendorlib}/Lingua/EN/Inflect.pm |
3a01ff08 | 62 | %{_mandir}/man3/* |
5558c0e3 | 63 | %{_examplesdir}/%{name}-%{version} |