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