]> git.pld-linux.org Git - SPECS.git/blob - perl-Locale-SubCountry.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / perl-Locale-SubCountry.spec
1 #
2 # Conditional build:
3 %bcond_without  tests # do not perform "make test"
4 #
5 %define         pdir    Locale
6 %define         pnam    SubCountry
7 Summary:        Locale::SubCountry - convert state, province, county etc. names to/from code
8 Summary(pl.UTF-8):      Locale::SubCountry - zamiana nazw stanu, prowincji, kraju itp. na i z kodu
9 Name:           perl-Locale-SubCountry
10 Version:        1.47
11 Release:        1
12 License:        Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  e40c500ef7d5ae45b3ab1bb9a05f9a5b
16 URL:            http://search.cpan.org/dist/Locale-SubCountry/
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 BuildArch:      noarch
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 This module allows you to convert the full name for a countries
24 administrative region to the code commonly used for postal addressing.
25 The reverse lookup can also be done. Sub country codes are defined in
26 "ISO 3166-2:1998, Codes for the representation of names of countries
27 and their subdivisions".
28
29 %description -l pl.UTF-8
30 Ten moduł pozwala zamieniać pełne nazwy obszarów administracyjnych
31 krajów na kody pocztowe. Możliwa jest także odwrotna zamiana. Kody
32 wewnętrzne krajów są zdefiniowane w "ISO 3166-2:1998, Codes for the
33 representation of names of countries and their subdivisions".
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41
42 %{__make}
43
44 %{?with_tests:%{__make} test}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc Change*
58 %{perl_vendorlib}/Locale/*.pm
59 %{perl_vendorlib}/Locale/SubCountry
60 %{_mandir}/man3/*
This page took 0.105456 seconds and 3 git commands to generate.