From aff263445e4a0fd2952f80fb328798ed6c0b26837352fb35117b742a5914a19d Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Tue, 20 Apr 2010 00:43:46 +0000 Subject: [PATCH] Accepting request 37706 from devel:languages:perl Copy from devel:languages:perl/perl-DateTime based on submit request 37706 from user computersalat OBS-URL: https://build.opensuse.org/request/show/37706 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-DateTime?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + DateTime-0.55.tar.bz2 | 3 + perl-DateTime.changes | 141 ++++++++++++++++++++++++++++++++++++++++++ perl-DateTime.spec | 99 +++++++++++++++++++++++++++++ 5 files changed, 267 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 DateTime-0.55.tar.bz2 create mode 100644 perl-DateTime.changes create mode 100644 perl-DateTime.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/DateTime-0.55.tar.bz2 b/DateTime-0.55.tar.bz2 new file mode 100644 index 0000000..d575371 --- /dev/null +++ b/DateTime-0.55.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85b55b438983d27d659721ba5fe9549fa36cf585c1b9cfa65f4e3b4863bebb54 +size 133189 diff --git a/perl-DateTime.changes b/perl-DateTime.changes new file mode 100644 index 0000000..9d4e31f --- /dev/null +++ b/perl-DateTime.changes @@ -0,0 +1,141 @@ +------------------------------------------------------------------- +Sun Apr 11 21:50:08 UTC 2010 - chris@computersalat.de + +- update to 0.55 + - Get all tests passing on 5.6.2. Thanks to Zefram for help spotting the + problems. + - Moved code to my hg repo at http://hg.urth.org/hg/DateTime.pm. +- 0.54 2010-03-14 + - Bumped the DateTime::TimeZone prereq to 1.09 to force people to use a modern + version. Previously the minimum version was 0.59, and there have been a lot + of bug fixes since then. + - String overloading now extends to string comparison, so a DateTime object + can be compared to any string. In other words + if ( $dt eq $string ) { ... } + + will simply stringify $dt and then do a normal string-is-equals + check. Previously, this would blow up unless both operands were a DateTime + object. + + Note that future versions of Test::More (0.95_01+) will no longer stringify + arguments to is(), which means that older versions of DateTime may cause new + test failures when you upgrade Test::More. It is highly recommended that you + upgrade DateTime before upgrading to Test::More 0.95_01+. + + Patch by Michael Schwern. RT #55453. + - Allow passing end_of_month setting to $duration->inverse(). Requested by + John Siracusa. RT #53985. +- 0.53 2009-12-06 + - Added Test::Exception to build_requires. +- 0.52 2009-12-05 + - Numeric to ->new() are now all validated to make sure they are + integers. Previously, things like "month => 11.2" would have been + allowed. Based on a bug report from Max Kanat-Alexandar. RT #45767. + - Added a warning to the docs suggesting that you cache the locale time zone + if you need to make many DateTime objects in the local zone. Looking up the + local zone can be fairly expensive. RT #46753. +- 0.51 2009-11-01 + - Switched to Module::Build. To force a non-XS build, start the build + process with "perl Build.PL --pp". + - POD-related tests are only run for the maintainer now. + - Fixed handling of negative years in CLDR formatting for "y" and "u" + patterns. Note that the LDML spec says nothing about how this should work, + so I took my best guess. +- cleanup spec + o removed useless comments + o fixed Header + o update License, Url, description + o fixed deps + - perl-macros < 1120 + - perl(Test::Exception) + - perl(Test::More) >= 0.88 + - perl(DateTime::TimeZone) >= 1.09 + o moved changelog to changes file + o macro usage + o Makefile.PL > Build.PL + o changelog to changes file + +------------------------------------------------------------------- +Sat Jul 25 19:36:32 CEST 2009 - chris@computersalat.de + +- spec mods + * removed ^---------- + * removed ^#--------- + +------------------------------------------------------------------- +Sun Jun 21 16:40:20 CEST 2009 - chris@computersalat.de + +- update to 0.50 + - 0.50 2009-05-11 + - Tests were failing on Win32 because they attempted to use a negative + epoch. Fixed so that these tests are skipped. Fixes RT #45966. + - 0.49 2009-05-04 + - A bug in the test code for handling overloaded objects in from_epoch + resulted in a test failure on Perl 5.8.x. This release contains no + changes besides a test code fix. + - 0.48 2009-05-04 + - Some of the accessors (the "main" ones like year(), month(), day(), + etc) now warn if they are passed a value. Patch from Shawn + Moore. Fixes RT #6979. + - DateTime::Duration expected DateTime to be loaded and used some + constants from it, but did not explicitly "use DateTime". Reported + by Jeff Kubina. RT #44740. + - The CLDR formatting for "c" and "cc" was incorrectly using the local + day of the week. This meant that it gave the wrong result for + locales where Monday is not considered the first day of the + week. Reported by Maros Kollar. RT #45007. + - DateTime->from_epoch did not allow an object which overloaded + numification as the epoch value. Patch by Michael Schwern. RT + #45653. + - Fixed how datetime subtraction is handled for some cases around DST + changes. This had been improved back in 0.30, but there were still + bugs. RT #45235. + - 0.47 2009-03-01 + - The handling of CLDR format 'j' and 'jj' was backwards, using 24 + hour time for locales that wanted 12 hour, and vice versa. Reported + by Maros Kollar. + - The CLDR formatting was missing support for lower-case "q" + patterns. Reported by Maros Kollar. + - 0.46 2009-02-28 + - Added a duration_class method for the benefit of DateTime.pm + subclasses. Patch by Shawn Moore. + - 0.4501 2008-11-25 + - The epoch() method got broken in the recent shuffling between + Time::Local and Time::y2038. Unfortunately, the tests to catch this + also got lost in the shuffle. Reported by Avianna Chao. + - 0.45 2008-11-11 + - Reverted the changes to use Time::y2038, on the recommendation of + Michael Schwern (the author of said module), because it is not yet + stable. This may come back in a future release. + - 0.4401 2008-11-03 + - In order to handle epochs > 2**32 properly on a 32-bit machine, we + also need to import gmtime from Time::y2038. This changes fixes a + whole bunch of test failures seen with 0.44. + - 0.44 2008-11-01 + - XS-capable DateTime.pm now uses Time::y2038 instead of + Time::Local. This lets it handle epochs up to 142 million years + before and after the Unix epoch. + - Fixed a compiler warning with Perl 5.10.0. + - Fixed docs for year_with_era, which had AD and BC + backwards. Reported by Vynce Montgomery. RT #39923. + - The format_cldr() method did not format the "yy" format properly + when the year ended in "0X". Reported by Wilson Santos. RT #40555. + - 0.4305 2008-10-03 + - The pure Perl version of this module did not know about the end of + 2008 leap second. Reported by James T Monty. + - 0.4304 2008-07-13 + - Fix test failures when tests are run with DateTime::Locale + 0.41. Reported by David Cantrell via CPAN Testers. + - 0.4303 2008-07-12 + - There is a new leap second coming at the end of 2008. +- added perl-macros + o autogen filelist with perl_gen_filelist +- spec mods + o added header + o fixed deps + +------------------------------------------------------------------- +Tue Jun 3 15:26:37 UTC 2008 - pascal.bleser@opensuse.org + +- new package + diff --git a/perl-DateTime.spec b/perl-DateTime.spec new file mode 100644 index 0000000..d3bf732 --- /dev/null +++ b/perl-DateTime.spec @@ -0,0 +1,99 @@ +# +# spec file for package perl-DateTime (Version 0.55) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: perl-DateTime +%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) +Summary: A date and time object +Version: 0.55 +Release: 1 +License: GPL v1 or later, Artistic License +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/DateTime +Source: %{cpan_name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +%if 0%{?suse_version} < 1120 +BuildRequires: perl-macros +%endif +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +BuildRequires: perl(Test::Pod) >= 1.14 +BuildRequires: perl(Pod::Man) >= 1.14 +# other not perl || perl-base +BuildRequires: perl(DateTime::Locale) >= 0.41 +BuildRequires: perl(DateTime::TimeZone) >= 1.09 +BuildRequires: perl(Params::Validate) >= 0.76 +BuildRequires: perl(Time::Local) >= 1.04 +# +Requires: perl = %{perl_version} +Requires: perl(Scalar::Util) +# other not perl || perl-base +Requires: perl(DateTime::Locale) >= 0.41 +Requires: perl(DateTime::TimeZone) >= 1.09 +Requires: perl(Params::Validate) >= 0.76 +Requires: perl(Time::Local) >= 1.04 + +%description +DateTime is a class for the representation of date/time combinations, +and is part of the Perl DateTime project. For details on this project +please see http://datetime.perl.org/. The DateTime site has a FAQ which +may help answer many "how do I do X?" questions. The FAQ is at +http://datetime.perl.org/?FAQ. + +It represents the Gregorian calendar, extended backwards in time before +its creation (in 1582). This is sometimes known as the "proleptic +Gregorian calendar". In this calendar, the first day of the calendar +(the epoch), is the first day of year 1, which corresponds to the date +which was (incorrectly) believed to be the birth of Jesus Christ. + +The calendar represented does have a year 0, and in that way differs +from how dates are often written using "BCE/CE" or "BC/AD". + +For infinite datetimes, please see the DateTime::Infinite module. + + Author: Dave Rolsky + + +%prep +%setup -q -n %{cpan_name}-%{version} + +%build +CFLAGS="$RPM_OPT_FLAGS" perl Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor +./Build + +%check +./Build test + +%install +./Build install +%perl_process_packlist +%perl_gen_filelist + +%clean +%{__rm} -rf $RPM_BUILD_ROOT + +%files -f %{name}.files +# normally you only need to check for doc files +%defattr(-,root,root) +%doc CREDITS Changes LICENSE README SIGNATURE TODO + +%changelog