|
|
@ -1,6 +1,6 @@
|
|
|
|
Name: perl-Locale-US
|
|
|
|
Name: perl-Locale-US
|
|
|
|
Version: 1.2
|
|
|
|
Version: 1.2
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Two letter codes for state identification in the United States and vice versa
|
|
|
|
Summary: Two letter codes for state identification in the United States and vice versa
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
@ -8,6 +8,8 @@ URL: http://search.cpan.org/dist/Locale-US/
|
|
|
|
Source0: http://www.cpan.org/authors/id/T/TB/TBONE/Locale-US-%{version}.tar.gz
|
|
|
|
Source0: http://www.cpan.org/authors/id/T/TB/TBONE/Locale-US-%{version}.tar.gz
|
|
|
|
# https://rt.cpan.org/Public/Bug/Display.html?id=56989
|
|
|
|
# https://rt.cpan.org/Public/Bug/Display.html?id=56989
|
|
|
|
Patch0: locale_us.patch
|
|
|
|
Patch0: locale_us.patch
|
|
|
|
|
|
|
|
# https://rt.cpan.org/Public/Bug/Display.html?id=62218
|
|
|
|
|
|
|
|
Patch1: spelling.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
@ -20,13 +22,11 @@ Map from US two-letter codes to states and vice versa.
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n Locale-US-%{version}
|
|
|
|
%setup -q -n Locale-US-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
|
|
|
|
# doesn't actually use Data::Dumper
|
|
|
|
# doesn't actually use Data::Dumper
|
|
|
|
sed -i -e '/use Data::Dumper/d' US.pm
|
|
|
|
sed -i -e '/use Data::Dumper/d' US.pm
|
|
|
|
|
|
|
|
|
|
|
|
# we don't need this
|
|
|
|
|
|
|
|
rm -f kruft2codes.pl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
|
|
@ -34,6 +34,7 @@ make %{?_smp_mflags}
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name kruft2codes.pl -exec rm -f {} \;
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
|
|
|
@ -44,10 +45,14 @@ make test
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README
|
|
|
|
%doc Changes README kruft2codes.pl
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Mar 22 2011 Iain Arnell <iarnell@gmail.com> 1.2-2
|
|
|
|
|
|
|
|
- fix spelling in pod (rt#62218)
|
|
|
|
|
|
|
|
- install kruft2codes.pl as doc
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 27 2011 Iain Arnell <iarnell@gmail.com> 1.2-1
|
|
|
|
* Thu Jan 27 2011 Iain Arnell <iarnell@gmail.com> 1.2-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|
|
|
|
- Specfile autogenerated by cpanspec 1.78.
|
|
|
|