]>
Commit | Line | Data |
---|---|---|
0a7d5111 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
23b8b4d1 | 4 | |
0a7d5111 ER |
5 | %define pdir Lingua |
6 | %define pnam EN-Numbers-Ordinate | |
69f61cd6 | 7 | Summary: Lingua::EN::Numbers::Ordinate - go from cardinal number (3) to ordinal ("3rd") |
c47248c6 | 8 | Summary(pl.UTF-8): Lingua::EN::Numbers::Ordinate - zamiana liczebników głównych (3) na porządkowe (3rd) |
0a7d5111 ER |
9 | Name: perl-Lingua-EN-Numbers-Ordinate |
10 | Version: 1.02 | |
edbda3f0 | 11 | Release: 2 |
0a7d5111 ER |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: e92078fafd9108a137972c4e9bae9e99 | |
23b8b4d1 | 17 | URL: http://search.cpan.org/dist/Lingua-EN-Numbers-Ordinate/ |
0a7d5111 ER |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
0a7d5111 ER |
20 | BuildArch: noarch |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
69f61cd6 | 24 | There are two kinds of numbers in English - cardinals (1, 2, 3...), |
0a7d5111 ER |
25 | and ordinals (1st, 2nd, 3rd...). This library provides functions for |
26 | giving the ordinal form of a number, given its cardinal value. | |
27 | ||
1dd3f642 JR |
28 | %description -l pl.UTF-8 |
29 | W języku angielskim są dwa rodzaje liczebników - główne (cardinals: 1, | |
30 | 2, 3...) oraz porządkowe (ordinals: 1st, 2nd, 3rd...). Ta biblioteka | |
31 | udostępnia funkcje do uzyskiwania formy porządkowej z formy głównej. | |
69f61cd6 | 32 | |
0a7d5111 ER |
33 | %prep |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
39 | %{__make} | |
40 | ||
41 | %{?with_tests:%{__make} test} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} pure_install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc ChangeLog README | |
55 | %dir %{perl_vendorlib}/Lingua/EN/Numbers | |
56 | %{perl_vendorlib}/Lingua/EN/Numbers/Ordinate.pm | |
57 | %{_mandir}/man3/* |