[perl-Locale-SubCountry] 1.47 bump
Petr Pisar
ppisar at fedoraproject.org
Thu Jan 26 09:49:48 UTC 2012
commit 8b5fe33268b7e90565d244a780f8e4e0b58e0ea6
Author: Petr Písař <ppisar at redhat.com>
Date: Thu Jan 26 10:49:25 2012 +0100
1.47 bump
.gitignore | 1 +
perl-Locale-SubCountry.spec | 56 ++++++++++++++++++++-----------------------
sources | 2 +-
3 files changed, 28 insertions(+), 31 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c665bac..7ceeea2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
Locale-SubCountry-1.41.tar.gz
+/Locale-SubCountry-1.47.tar.gz
diff --git a/perl-Locale-SubCountry.spec b/perl-Locale-SubCountry.spec
index 5dedd1e..40f57f4 100644
--- a/perl-Locale-SubCountry.spec
+++ b/perl-Locale-SubCountry.spec
@@ -1,69 +1,65 @@
Name: perl-Locale-SubCountry
-Version: 1.41
-Release: 10%{?dist}
+Version: 1.47
+Release: 1%{?dist}
Summary: ISO 3166-2 two letter subcountry codes
-
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Locale-SubCountry
-Source0: http://search.cpan.org/CPAN/authors/id/K/KI/KIMRYAN/Locale-SubCountry-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
+Source0: http://search.cpan.org/CPAN/authors/id/K/KI/KIMRYAN/Locale-SubCountry-%{version}.tar.gz
BuildArch: noarch
-BuildRequires: perl(Test::Pod), perl(Test::Pod::Coverage)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires: perl(ExtUtils::MakeMaker)
+# Run-time
+BuildRequires: perl(Exporter)
+BuildRequires: perl(locale)
+# Tests
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Simple)
+# Optional test
+BuildRequires: perl(Test::Pod) >= 1.14
+BuildRequires: perl(Test::Pod::Coverage) >= 1.04
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module allows you to convert the full name for a countries administrative
-region to the code commonly used for postal addressing. 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".
+region to the code commonly used for postal addressing. The reverse look-up
+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".
Sub countries are termed as states in the US and Australia, provinces in
Canada and counties in the UK and Ireland.
%prep
%setup -q -n Locale-SubCountry-%{version}
-
-find . -type f -exec chmod -c -x {} +
+find examples -type f -exec chmod -c -x {} +
+for i in Changes lib/Locale/SubCountry.pm; do
+ iconv --from=ISO-8859-1 --to=UTF-8 $i > new
+ mv new $i
+done
+sed -i -e $'1 i =encoding utf8\\\n' lib/Locale/SubCountry.pm
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
-# make sure the man page is UTF-8...
-#cd blib/man3
-for i in Changes blib/man3/Locale::SubCountry.3pm ; do
- iconv --from=ISO-8859-1 --to=UTF-8 $i > new
- mv new $i
-done
-
%install
-rm -rf %{buildroot}
-
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
-
%{_fixperms} %{buildroot}/*
-
%check
make test
-
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%doc Changes README examples/
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*
%changelog
+* Thu Jan 26 2012 Petr Pisar <ppisar at redhat.com> - 1.47-1
+- 1.47 bump
+
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.41-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
diff --git a/sources b/sources
index 226e0bc..920e9a3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-44f6b0cc4b1ad5db591e45d1395d2d7f Locale-SubCountry-1.41.tar.gz
+e40c500ef7d5ae45b3ab1bb9a05f9a5b Locale-SubCountry-1.47.tar.gz
More information about the scm-commits
mailing list