- updated to 3.04
[packages/perl-Locale-US.git] / perl-Locale-US.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4 #
5 %define         pdir    Locale
6 %define         pnam    US
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
9 Name:           perl-Locale-US
10 Version:        3.04
11 Release:        1
12 # same as perl
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
22 %if %{with tests}
23 BuildRequires:  perl-Data-Section-Simple
24 BuildRequires:  perl-Test-Simple
25 %endif
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
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
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
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
63 %{_mandir}/man3/Locale::US.3pm*
This page took 0.233377 seconds and 4 git commands to generate.