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