From 9f484f9da67cb3b669bcde9b6c840b14a7b1b154 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 08:50:20 +0100 Subject: [PATCH] automatic update by autodist [release 1.04-1mamba;Thu Dec 12 2013] --- README.md | 6 ++++ perl-DateTime.spec | 83 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 perl-DateTime.spec diff --git a/README.md b/README.md index b7ee921..088fbce 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # perl-DateTime +The DateTime.pm module aims to provide a complete, correct, and easy to use date/time object implementation. +Currently it handles many date calculations, date math (addition and subtraction), and provides convenient methods for retrieving portions of a date/time. + +This module properly supports the Olson time zone database, meaning that historical time zone information, and more importantly, daylight saving time rules, can be handled transparently, simply by setting the correct time zone. +This is done by using the DateTime::TimeZone module. + diff --git a/perl-DateTime.spec b/perl-DateTime.spec new file mode 100644 index 0000000..949cfe0 --- /dev/null +++ b/perl-DateTime.spec @@ -0,0 +1,83 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-DateTime +Epoch: 1 +Version: 1.04 +Release: 1mamba +Summary: DateTime - Complete, correct, and easy to use date/time object implementation +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-%{version}.tar.gz +License: Artistic +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRequires: perl-DateTime-Locale +BuildRequires: perl-DateTime-TimeZone +BuildRequires: perl-Params-Validate +Provides: perl(DateTimePPExtra) +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +# FIXME (needed for "make test"): +# DateTime::Format::ICal +# DateTime::Format::Strptime 1.0400+ + +%description +The DateTime.pm module aims to provide a complete, correct, and easy to use date/time object implementation. +Currently it handles many date calculations, date math (addition and subtraction), and provides convenient methods for retrieving portions of a date/time. + +This module properly supports the Olson time zone database, meaning that historical time zone information, and more importantly, daylight saving time rules, can be handled transparently, simply by setting the correct time zone. +This is done by using the DateTime::TimeZone module. + +%prep +%setup -q -n DateTime-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build +./Build test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +./Build install destdir=%{buildroot} + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Thu Dec 12 2013 Automatic Build System 1.04-1mamba +- automatic update by autodist + +* Tue May 28 2013 Automatic Build System 1.03-1mamba +- automatic update by autodist + +* Sat Apr 27 2013 Automatic Build System 0.78-1mamba +- update to 0.78 + +* Tue Nov 13 2012 Silvan Calarco 0.4501-2mamba +- perl 5.16 mass rebuild + +* Thu Feb 05 2009 Silvan Calarco 0.4501-1mamba +- automatic update by autodist + +* Tue Nov 04 2008 Silvan Calarco 0.41-2mamba +- automatic rebuild by autodist + +* Fri Nov 30 2007 Aleph0 0.41-1mamba +- package created by autospec