]>
Commit | Line | Data |
---|---|---|
b47426bd SP |
1 | # |
2 | # Conditional build: | |
2e463d63 | 3 | %bcond_without tests # unit tests |
b47426bd | 4 | # |
b47426bd SP |
5 | %define pdir Locale |
6 | %define pnam US | |
7 | Summary: Two letter codes for state identification in the United States and vice versa | |
17b2beb5 | 8 | Summary(pl.UTF-8): Dwuliterowe kody do identyfikacji stanów w USA |
b47426bd | 9 | Name: perl-Locale-US |
2e463d63 JB |
10 | Version: 3.04 |
11 | Release: 1 | |
e31944d7 JB |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
b47426bd SP |
14 | Group: Development/Languages/Perl |
15 | Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz | |
2e463d63 JB |
16 | # Source0-md5: 20e475b152decc459d5b736dc6964b65 |
17 | URL: https://metacpan.org/release/Locale-US | |
7c55d650 | 18 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.30 |
b47426bd SP |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
2e463d63 | 21 | BuildRequires: rpmbuild(macros) >= 1.745 |
7c55d650 JB |
22 | %if %{with tests} |
23 | BuildRequires: perl-Data-Section-Simple | |
24 | BuildRequires: perl-Test-Simple | |
25 | %endif | |
b47426bd SP |
26 | BuildArch: noarch |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
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 | |
32 | territories. | |
33 | ||
17b2beb5 JB |
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. | |
37 | ||
b47426bd SP |
38 | %prep |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
b47426bd SP |
42 | %{__perl} Makefile.PL \ |
43 | INSTALLDIRS=vendor | |
44 | ||
45 | %{__make} | |
46 | ||
47 | %{?with_tests:%{__make} test} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} pure_install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
60 | %doc Changes README | |
61 | %{perl_vendorlib}/Locale/US.pm | |
62 | %{perl_vendorlib}/Locale/kruft2codes.pl | |
e31944d7 | 63 | %{_mandir}/man3/Locale::US.3pm* |