3 # _without_tests - do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
6 %define pnam SubCountry
7 Summary: Locale::SubCountry - convert state, province, county etc. names to/from code
8 Summary(pl): Locale::SubCountry - zamiana nazw stanu, prowincji, kraju itp. na i z kodu
9 Name: perl-Locale-SubCountry
13 Group: Development/Languages/Perl
14 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 BuildRequires: perl >= 5.6
16 BuildRequires: rpm-perlprov >= 3.0.3-26
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This module allows you to convert the full name for a countries
22 administrative region to the code commonly used for postal addressing.
23 The reverse lookup can also be done. Sub country codes are defined in
24 "ISO 3166-2:1998, Codes for the representation of names of countries
25 and their subdivisions".
28 Ten modu³ pozwala zamieniaæ pe³ne nazwy obszarów administracyjnych
29 krajów na kody pocztowe. Mo¿liwa jest tak¿e odwrotna zamiana. Kody
30 wewnêtrzne krajów s± zdefiniowane w "ISO 3166-2:1998, Codes for the
31 representation of names of countries and their subdivisions".
34 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{!?_without_tests:%{__make} test}
42 rm -rf $RPM_BUILD_ROOT
44 %{__make} install DESTDIR=$RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
51 %{perl_sitelib}/%{pdir}/*.pm