]> git.pld-linux.org Git - packages/perl-Locale-SubCountry.git/blobdiff - perl-Locale-SubCountry.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Locale-SubCountry.git] / perl-Locale-SubCountry.spec
index 57ba94a7fdf2bfe072a819c148d2645175286393..fd8aa31cb5f1558c655a42ebe9dbac878d11e6cb 100644 (file)
@@ -1,19 +1,21 @@
 #
 # Conditional build:
-# _without_tests - do not perform "make test"
-%include       /usr/lib/rpm/macros.perl
-%define        pdir    Locale
-%define        pnam    SubCountry
+%bcond_without tests # do not perform "make test"
+#
+%define                pdir    Locale
+%define                pnam    SubCountry
 Summary:       Locale::SubCountry - convert state, province, county etc. names to/from code
-Summary(pl):   Locale::SubCountry - zamiana nazw stanu, prowincji, kraju itp. na i z kodu
+Summary(pl.UTF-8):     Locale::SubCountry - zamiana nazw stanu, prowincji, kraju itp. na i z kodu
 Name:          perl-Locale-SubCountry
-Version:       1.11
+Version:       1.47
 Release:       1
 License:       Artistic
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl >= 5.6
-BuildRequires: rpm-perlprov >= 3.0.3-26
+Source0:       http://www.cpan.org/modules/by-module/Locale/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: e40c500ef7d5ae45b3ab1bb9a05f9a5b
+URL:           http://search.cpan.org/dist/Locale-SubCountry/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -24,29 +26,35 @@ The reverse lookup can also be done. Sub country codes are defined in
 "ISO 3166-2:1998, Codes for the representation of names of countries
 and their subdivisions".
 
-%description -l pl
-Ten modu³ pozwala zamieniaæ pe³ne nazwy obszarów administracyjnych
-krajów na kody pocztowe. Mo¿liwa jest tak¿e odwrotna zamiana. Kody
-wewnêtrzne krajów s± zdefiniowane w "ISO 3166-2:1998, Codes for the
+%description -l pl.UTF-8
+Ten moduł pozwala zamieniać pełne nazwy obszarów administracyjnych
+krajów na kody pocztowe. Możliwa jest także odwrotna zamiana. Kody
+wewnętrzne krajów są zdefiniowane w "ISO 3166-2:1998, Codes for the
 representation of names of countries and their subdivisions".
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
 %{__make}
-%{!?_without_tests:%{__make} test}
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{perl_sitelib}/%{pdir}/*.pm
+%doc Change*
+%{perl_vendorlib}/Locale/*.pm
+%{perl_vendorlib}/Locale/SubCountry
 %{_mandir}/man3/*
This page took 0.089797 seconds and 4 git commands to generate.