Import
This commit is contained in:
parent
30d79906a5
commit
ecfabf3fbe
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Locale-Codes-3.17.tar.gz
|
||||
57
perl-Locale-Codes.spec
Normal file
57
perl-Locale-Codes.spec
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user