%{?scl:%scl_package perl-DateTime-Locale} Name: %{?scl_prefix}perl-DateTime-Locale Version: 0.45 Release: 12%{?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: glibc-common BuildRequires: %{?scl_prefix}perl BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) # Run-time: BuildRequires: %{?scl_prefix}perl(base) BuildRequires: %{?scl_prefix}perl(Carp) BuildRequires: %{?scl_prefix}perl(List::MoreUtils) BuildRequires: %{?scl_prefix}perl(Params::Validate) >= 0.91 BuildRequires: %{?scl_prefix}perl(strict) BuildRequires: %{?scl_prefix}perl(utf8) BuildRequires: %{?scl_prefix}perl(warnings) # Tests: # File::Find::Rule not used BuildRequires: %{?scl_prefix}perl(File::Spec) BuildRequires: %{?scl_prefix}perl(Test::More) # Optional tests: BuildRequires: %{?scl_prefix}perl(Storable) %if !%{defined perl_small} BuildRequires: %{?scl_prefix}perl(Test::Output) %endif # Test::Pod 1.14 not used # Test::Pod::Coverage 1.04 not used Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'})) Requires: %{?scl_prefix}perl(Params::Validate) >= 0.91 # perl-DateTime-Locale used to be bundled with perl-DateTime # ideally, this would be resolved with # Requires: %{?scl_prefix}perl-DateTime >= 2:0.70-1 # but DateTime::Locale doesn't strictly require DateTime # and this would introduce circular build dependencies Conflicts: %{?scl_prefix}perl-DateTime <= 1:0.7000-3.fc16 # Remove under-specified dependencies # RPM 4.8 style %{?filter_setup: %filter_from_requires /^%{?scl_prefix}perl(Params::Validate)$/d %?perl_default_filter } # RPM 4.9 style %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^%{?scl_prefix}perl\\(Params::Validate\\)$ %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 %{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'} %install %{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'} find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' %{_fixperms} $RPM_BUILD_ROOT/* %check %{?scl:scl enable %{scl} '}make test%{?scl:'} %files %doc Changes LICENSE LICENSE.cldr README %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Tue Jan 13 2015 Petr Pisar - 0.45-12 - Disable optional tests for small build root * Tue Jan 13 2015 Petr Pisar - 0.45-11 - Modernize spec file * Fri Aug 29 2014 Jitka Plesnikova - 0.45-10 - Perl 5.20 rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.45-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 0.45-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Fri Jul 26 2013 Petr Pisar - 0.45-7 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.45-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 13 2012 Marcela Mašláňová - 0.45-5 - Add BR, fix whitespaces * Fri Jul 20 2012 Fedora Release Engineering - 0.45-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 19 2012 Petr Pisar - 0.45-3 - Perl 5.16 rebuild * Fri Jan 13 2012 Fedora Release Engineering - 0.45-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Aug 15 2011 Iain Arnell 0.45-1 - Specfile autogenerated by cpanspec 1.78.