3 %bcond_without tests # unit tests
7 Summary: Two letter codes for state identification in the United States and vice versa
8 Summary(pl.UTF-8): Dwuliterowe kody do identyfikacji stanów w USA
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 20e475b152decc459d5b736dc6964b65
17 URL: https://metacpan.org/release/Locale-US
18 BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: rpmbuild(macros) >= 1.745
23 BuildRequires: perl-Data-Section-Simple
24 BuildRequires: perl-Test-Simple
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This distribution contains a module which can be used to process USPS
31 two letter codes for states in the United States and surrounding
34 %description -l pl.UTF-8
35 Ten pakiet zawiera moduł służący do przetwarzania dwuliterowych kodów
36 USPS dla stanów USA i otaczających terytoriów.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/Locale/US.pm
62 %{perl_vendorlib}/Locale/kruft2codes.pl
63 %{_mandir}/man3/Locale::US.3pm*