]> git.pld-linux.org Git - packages/perl-Locale-US.git/blame - perl-Locale-US.spec
- updated to 3.04
[packages/perl-Locale-US.git] / perl-Locale-US.spec
CommitLineData
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
7Summary: Two letter codes for state identification in the United States and vice versa
17b2beb5 8Summary(pl.UTF-8): Dwuliterowe kody do identyfikacji stanów w USA
b47426bd 9Name: perl-Locale-US
2e463d63
JB
10Version: 3.04
11Release: 1
e31944d7
JB
12# same as perl
13License: GPL v1+ or Artistic
b47426bd
SP
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
2e463d63
JB
16# Source0-md5: 20e475b152decc459d5b736dc6964b65
17URL: https://metacpan.org/release/Locale-US
7c55d650 18BuildRequires: perl-ExtUtils-MakeMaker >= 6.30
b47426bd
SP
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
2e463d63 21BuildRequires: rpmbuild(macros) >= 1.745
7c55d650
JB
22%if %{with tests}
23BuildRequires: perl-Data-Section-Simple
24BuildRequires: perl-Test-Simple
25%endif
b47426bd
SP
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30This distribution contains a module which can be used to process USPS
31two letter codes for states in the United States and surrounding
32territories.
33
17b2beb5
JB
34%description -l pl.UTF-8
35Ten pakiet zawiera moduł służący do przetwarzania dwuliterowych kodów
36USPS 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
50rm -rf $RPM_BUILD_ROOT
51
52%{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
54
55%clean
56rm -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*
This page took 0.911043 seconds and 4 git commands to generate.