# # Conditional build: # _without_tests - do not perform "make test" %include /usr/lib/rpm/macros.perl %define pdir Locale %define pnam SubCountry Summary: Locale::SubCountry - convert state, province, county etc. names to/from code #Summary(pl): Name: perl-Locale-SubCountry Version: 1.11 Release: 1 License: Artistic Group: Development/Languages/Perl Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: perl >= 5.6 BuildRequires: rpm-perlprov >= 3.0.3-26 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module allows you to convert the full name for a countries administrative region to the code commonly used for postal addressing. The reverse lookup can also be done. Sub country codes are defined in "ISO 3166-2:1998, Codes for the representation of names of countries and their subdivisions". # %description -l pl # TODO %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build perl Makefile.PL %{__make} %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{perl_sitelib}/%{pdir}/*.pm %{_mandir}/man3/*