diff --git a/DateTime-Locale-0.45.tar.gz b/DateTime-Locale-0.45.tar.gz deleted file mode 100644 index 24acddd..0000000 --- a/DateTime-Locale-0.45.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8aa1b8db0baccc26ed88f8976a228d2cdf4f6ed4e10fc88c1501ecd8f3ccaf9c -size 1079736 diff --git a/DateTime-Locale-0.46.tar.gz b/DateTime-Locale-0.46.tar.gz new file mode 100644 index 0000000..dbd02c8 --- /dev/null +++ b/DateTime-Locale-0.46.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4ceaa0dc0b89d4eb180eb970a927cf376e3d04ef42de98de2e034cd2021348d +size 2556441 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-DateTime-Locale.changes b/perl-DateTime-Locale.changes index ea0a3f2..177855e 100644 --- a/perl-DateTime-Locale.changes +++ b/perl-DateTime-Locale.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sun Jun 14 08:04:17 UTC 2015 - coolo@suse.com + +- updated to 0.46 + see /usr/share/doc/packages/perl-DateTime-Locale/Changes + + 0.46 2015-05-21 + + - Fixed handling of C locales like "C.UTF-8". Passing these to + DateTime::Locale->load would cause a warning followed by an exception, ubt + all "C" locales should be special-cased as an alias of en-US-POSIX. Reported + by David Wheeler. RT #104574. + ------------------------------------------------------------------- Wed Feb 12 18:39:28 UTC 2014 - coolo@suse.com diff --git a/perl-DateTime-Locale.spec b/perl-DateTime-Locale.spec index 5d72f6b..8f59a65 100644 --- a/perl-DateTime-Locale.spec +++ b/perl-DateTime-Locale.spec @@ -1,7 +1,7 @@ # # spec file for package perl-DateTime-Locale # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,73 +16,54 @@ # -%bcond_with test - Name: perl-DateTime-Locale +Version: 0.46 +Release: 0 %define cpan_name DateTime-Locale Summary: Localization support for DateTime.pm -License: GPL-1.0+ or Artistic-1.0 +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl -Version: 0.45 -Release: 0 Url: http://search.cpan.org/dist/DateTime-Locale/ -#Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-Locale-%{version}.tar.gz -Source: %{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(Module::Build) -%if %{with test} -BuildRequires: perl(Test::Output) -#BuildRequires: perl(Test::Pod) -#BuildRequires: perl(Test::Pod::Coverage) -%endif +BuildRequires: perl(Dist::CheckConflicts) >= 0.02 BuildRequires: perl(List::MoreUtils) -BuildRequires: perl(Params::Validate) >= 0.91 -# +BuildRequires: perl(Params::Validate) +BuildRequires: perl(Test::More) >= 0.96 +Requires: perl(Dist::CheckConflicts) >= 0.02 Requires: perl(List::MoreUtils) -Requires: perl(Params::Validate) >= 0.91 -# MANUAL -Provides: perl(DateTime::Locale) = %{version}00 +Requires: perl(Params::Validate) +%{perl_requires} %description DateTime::Locale is primarily a factory for the various locale subclasses. It also provides some functions for getting information on all the available locales. -If you want to know what methods are available for locale objects, -then please read the DateTime::Locale::Base documentation. +If you want to know what methods are available for locale objects, then +please read the 'DateTime::Locale::Base' documentation. %prep %setup -q -n %{cpan_name}-%{version} -# rpmlint: spurious-executable-perm -find . -type f -print0 | xargs -0 chmod 644 -%if 0%{?rhel_version} || 0%{?centos_version} -%{__rm} -rf tools -%endif %build -%{__perl} Build.PL installdirs=vendor -./Build +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -./Build test +%{__make} test %install -./Build install destdir=%{buildroot} create_packlist=0 +%perl_make_install +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(-,root,root,-) -%if 0%{suse_version} -%doc Changes LICENSE README SIGNATURE tools -%else -%doc Changes LICENSE README SIGNATURE -%endif +%defattr(-,root,root,755) +%doc Changes LICENSE LICENSE.cldr MANIFEST.base README README.md %changelog