]>
Commit | Line | Data |
---|---|---|
02eac309 | 1 | # |
2 | # Conditional build: | |
fa659f21 | 3 | %bcond_without tests # do not perform "make test" |
056a750f | 4 | # |
257223f2 | 5 | %define pdir Locale |
6 | %define pnam SubCountry | |
02eac309 | 7 | Summary: Locale::SubCountry - convert state, province, county etc. names to/from code |
b7f33ed0 | 8 | Summary(pl.UTF-8): Locale::SubCountry - zamiana nazw stanu, prowincji, kraju itp. na i z kodu |
02eac309 | 9 | Name: perl-Locale-SubCountry |
ae0a5bd7 | 10 | Version: 1.47 |
c8065fcb | 11 | Release: 1 |
02eac309 | 12 | License: Artistic |
13 | Group: Development/Languages/Perl | |
2081e41e | 14 | Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz |
ae0a5bd7 | 15 | # Source0-md5: e40c500ef7d5ae45b3ab1bb9a05f9a5b |
2081e41e | 16 | URL: http://search.cpan.org/dist/Locale-SubCountry/ |
be1672a7 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
a329dfa8 | 18 | BuildRequires: rpm-perlprov >= 4.1-13 |
02eac309 | 19 | BuildArch: noarch |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | This module allows you to convert the full name for a countries | |
7c928601 JB |
24 | administrative region to the code commonly used for postal addressing. |
25 | The reverse lookup can also be done. Sub country codes are defined in | |
02eac309 | 26 | "ISO 3166-2:1998, Codes for the representation of names of countries |
27 | and their subdivisions". | |
28 | ||
0e8542af JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł pozwala zamieniać pełne nazwy obszarów administracyjnych | |
31 | krajów na kody pocztowe. Możliwa jest także odwrotna zamiana. Kody | |
32 | wewnętrzne krajów są zdefiniowane w "ISO 3166-2:1998, Codes for the | |
7c928601 | 33 | representation of names of countries and their subdivisions". |
02eac309 | 34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
a329dfa8 | 39 | %{__perl} Makefile.PL \ |
ab2164ad | 40 | INSTALLDIRS=vendor |
fa659f21 | 41 | |
02eac309 | 42 | %{__make} |
056a750f | 43 | |
fa659f21 | 44 | %{?with_tests:%{__make} test} |
02eac309 | 45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
fa659f21 AG |
49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
02eac309 | 51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
056a750f | 57 | %doc Change* |
2081e41e | 58 | %{perl_vendorlib}/Locale/*.pm |
ae0a5bd7 | 59 | %{perl_vendorlib}/Locale/SubCountry |
02eac309 | 60 | %{_mandir}/man3/* |