]>
Commit | Line | Data |
---|---|---|
c1f717ae | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
9875acdf | 4 | |
c1f717ae | 5 | %define pdir Geography |
6 | %define pnam Countries | |
7 | Summary: Geography::Countries - 2-letter, 3-letter, and numerical codes for countries | |
8787d6d4 | 8 | Summary(pl.UTF-8): Geography::Countries - 2-, 3-literowe i numeryczne kody krajów |
c1f717ae | 9 | Name: perl-Geography-Countries |
2c8a3e53 | 10 | Version: 2009041301 |
11 | Release: 1 | |
c1f717ae | 12 | License: Unknown |
13 | Group: Development/Languages/Perl | |
14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
2c8a3e53 | 15 | # Source0-md5: 2c9ef26b46bbeca9abbca5015cc748b9 |
9875acdf | 16 | URL: http://search.cpan.org/dist/Geography-Countries/ |
c1f717ae | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
c1f717ae | 19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | This module maps country names, and their 2-letter, 3-letter and | |
9875acdf ER |
24 | numerical codes, as defined by the ISO-3166 maintenance agency, and |
25 | defined by the UNSD. | |
c1f717ae | 26 | |
0ff1a9b5 JR |
27 | %description -l pl.UTF-8 |
28 | Ten moduł odwzorowuje nazwy krajów oraz ich 2-, 3-literowe i liczbowe | |
29 | kody zgodnie z definicją ISO-3166. | |
c1f717ae | 30 | |
31 | %prep | |
32 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
33 | ||
34 | %build | |
35 | %{__perl} Makefile.PL \ | |
36 | INSTALLDIRS=vendor | |
37 | %{__make} | |
38 | ||
39 | %{?with_tests:%{__make} test} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
47cb7cf2 | 52 | %dir %{perl_vendorlib}/Geography |
c1f717ae | 53 | %{perl_vendorlib}/Geography/*.pm |
54 | %{_mandir}/man3/* |