3 %bcond_without tests # do not perform "make test"
6 %define pnam SubCountry
7 Summary: Locale::SubCountry - convert state, province, county etc. names to/from code
8 Summary(pl.UTF-8): Locale::SubCountry - zamiana nazw stanu, prowincji, kraju itp. na i z kodu
9 Name: perl-Locale-SubCountry
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: e40c500ef7d5ae45b3ab1bb9a05f9a5b
16 URL: http://search.cpan.org/dist/Locale-SubCountry/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This module allows you to convert the full name for a countries
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
26 "ISO 3166-2:1998, Codes for the representation of names of countries
27 and their subdivisions".
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
33 representation of names of countries and their subdivisions".
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %{perl_vendorlib}/Locale/*.pm
59 %{perl_vendorlib}/Locale/SubCountry