This commit is contained in:
Petr Písař 2011-08-30 11:44:35 +02:00
parent 30d79906a5
commit ecfabf3fbe
3 changed files with 59 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/Locale-Codes-3.17.tar.gz

57
perl-Locale-Codes.spec Normal file
View File

@ -0,0 +1,57 @@
Name: perl-Locale-Codes
Version: 3.17
Release: 1%{?dist}
Summary: Distribution of modules to handle locale codes
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/Locale-Codes/
Source0: http://www.cpan.org/authors/id/S/SB/SBECK/Locale-Codes-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(Module::Build)
# Tests
BuildRequires: perl(constant)
BuildRequires: perl(Exporter)
BuildRequires: perl(Storable)
BuildRequires: perl(Test::More)
# Optional tests
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage) >= 1.00
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(constant)
# Inject not detected module version
%{?filter_setup:
%filter_from_provides s/^\(perl(Locale\>[^)]*)\)[^=]*$/\1 = %{version}/
%filter_setup
}
%description
Locale-Codes is a distribution containing a set of modules. The modules
each deal with different types of codes which identify parts of the locale
including languages, countries, currency, etc.
%prep
%setup -q -n Locale-Codes-%{version}
chmod -x examples/*
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%files
%doc ChangeLog LICENSE README README.first examples
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Thu Jun 30 2011 Petr Pisar <ppisar@redhat.com> 3.17-1
- Specfile autogenerated by cpanspec 1.78.
- Remove BuildRoot and defattr

View File

@ -0,0 +1 @@
f0181dd8bf625db584fddbd3f5e2143b Locale-Codes-3.17.tar.gz