initial import (rhbz#730656)
This commit is contained in:
parent
c891ce82fd
commit
b1b779f7b2
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
/DateTime-Locale-0.45.tar.gz
|
62
perl-DateTime-Locale.spec
Normal file
62
perl-DateTime-Locale.spec
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
Name: perl-DateTime-Locale
|
||||||
|
Version: 0.45
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Localization support for DateTime.pm
|
||||||
|
# package itself is 'same terms as Perl'
|
||||||
|
# modules under DateTime/Locale/ are generated from data provided by the CLDR project
|
||||||
|
# tools/t/test-data contains CLDR data files under MIT license
|
||||||
|
License: (GPL+ or Artistic) and MIT
|
||||||
|
Group: Development/Libraries
|
||||||
|
URL: http://search.cpan.org/dist/DateTime-Locale/
|
||||||
|
Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/DateTime-Locale-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: perl >= 0:5.006
|
||||||
|
BuildRequires: perl(List::MoreUtils)
|
||||||
|
BuildRequires: perl(Module::Build)
|
||||||
|
BuildRequires: perl(Params::Validate) >= 0.91
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
BuildRequires: perl(Test::Output)
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||||
|
|
||||||
|
# perl-DateTime-Locale used to be bundled with perl-DateTime
|
||||||
|
# ideally, this would be resolved with
|
||||||
|
# Requires: perl-DateTime >= 2:0.70-1
|
||||||
|
# but DateTime::Locale doesn't strictly require DateTime
|
||||||
|
# and this would introduce circular build dependencies
|
||||||
|
Conflicts: perl-DateTime <= 1:0.7000-3.fc16
|
||||||
|
|
||||||
|
%{?perl_default_filter}
|
||||||
|
|
||||||
|
%description
|
||||||
|
DateTime::Locale is primarily a factory for the various locale sub-classes.
|
||||||
|
It also provides some functions for getting information on all the
|
||||||
|
available locales.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n DateTime-Locale-%{version}
|
||||||
|
|
||||||
|
iconv -f iso-8859-1 -t utf-8 Changes >Changes.iconv \
|
||||||
|
&& touch -r Changes Changes.iconv \
|
||||||
|
&& mv -f Changes.iconv Changes
|
||||||
|
|
||||||
|
%build
|
||||||
|
%{__perl} Build.PL installdirs=vendor
|
||||||
|
./Build
|
||||||
|
|
||||||
|
%install
|
||||||
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
|
|
||||||
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
|
%check
|
||||||
|
./Build test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc Changes LICENSE LICENSE.cldr README
|
||||||
|
%{perl_vendorlib}/*
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Aug 15 2011 Iain Arnell <iarnell@gmail.com> 0.45-1
|
||||||
|
- Specfile autogenerated by cpanspec 1.78.
|
Loading…
Reference in New Issue
Block a user