3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam SubCountry
8 Summary: Locale::SubCountry - convert state, province, county etc. names to/from code
9 Summary(pl.UTF-8): Locale::SubCountry - zamiana nazw stanu, prowincji, kraju itp. na i z kodu
10 Name: perl-Locale-SubCountry
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 44f6b0cc4b1ad5db591e45d1395d2d7f
17 URL: http://search.cpan.org/dist/Locale-SubCountry/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This module allows you to convert the full name for a countries
25 administrative region to the code commonly used for postal addressing.
26 The reverse lookup can also be done. Sub country codes are defined in
27 "ISO 3166-2:1998, Codes for the representation of names of countries
28 and their subdivisions".
30 %description -l pl.UTF-8
31 Ten moduł pozwala zamieniać pełne nazwy obszarów administracyjnych
32 krajów na kody pocztowe. Możliwa jest także odwrotna zamiana. Kody
33 wewnętrzne krajów są zdefiniowane w "ISO 3166-2:1998, Codes for the
34 representation of names of countries and their subdivisions".
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
45 %{?with_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
51 DESTDIR=$RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/Locale/*.pm