]> git.pld-linux.org Git - packages/perl-Lingua-EN-Numbers-Ordinate.git/blob - perl-Lingua-EN-Numbers-Ordinate.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Lingua-EN-Numbers-Ordinate.git] / perl-Lingua-EN-Numbers-Ordinate.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4
5 %define pdir    Lingua
6 %define pnam    EN-Numbers-Ordinate
7 Summary:        Lingua::EN::Numbers::Ordinate - go from cardinal number (3) to ordinal ("3rd")
8 Summary(pl.UTF-8):      Lingua::EN::Numbers::Ordinate - zamiana liczebników głównych (3) na porządkowe (3rd)
9 Name:           perl-Lingua-EN-Numbers-Ordinate
10 Version:        1.02
11 Release:        2
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
17 URL:            http://search.cpan.org/dist/Lingua-EN-Numbers-Ordinate/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 There are two kinds of numbers in English - cardinals (1, 2, 3...),
25 and ordinals (1st, 2nd, 3rd...). This library provides functions for
26 giving the ordinal form of a number, given its cardinal value.
27
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.
32
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/*
This page took 0.062816 seconds and 4 git commands to generate.