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