2024-01-06 08:50:20 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-DateTime
|
|
|
|
Epoch: 1
|
2024-01-06 08:50:20 +01:00
|
|
|
Version: 1.59
|
|
|
|
Release: 1mamba
|
2024-01-06 08:50:20 +01:00
|
|
|
Summary: DateTime - Complete, correct, and easy to use date/time object implementation
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 08:50:20 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.cpan.org/
|
2024-01-06 08:50:20 +01:00
|
|
|
Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-%{version}.tar.gz
|
|
|
|
License: Artistic
|
2024-01-06 08:50:20 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libperl
|
|
|
|
BuildRequires: perl-DateTime-Locale
|
|
|
|
BuildRequires: perl-DateTime-TimeZone
|
2024-01-06 08:50:20 +01:00
|
|
|
BuildRequires: perl-Params-ValidationCompiler
|
|
|
|
BuildRequires: perl-Scalar-List-Utils
|
|
|
|
BuildRequires: perl-Specio
|
2024-01-06 08:50:20 +01:00
|
|
|
BuildRequires: perl-Try-Tiny
|
|
|
|
BuildRequires: perl-devel
|
2024-01-06 08:50:20 +01:00
|
|
|
BuildRequires: perl-namespace-autoclean
|
2024-01-06 08:50:20 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 08:50:20 +01:00
|
|
|
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)
|
|
|
|
|
|
|
|
# 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
|
2024-01-06 08:50:20 +01:00
|
|
|
%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
|
|
|
%make
|
|
|
|
%make test
|
2024-01-06 08:50:20 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 08:50:20 +01:00
|
|
|
%makeinstall_perl
|
2024-01-06 08:50:20 +01:00
|
|
|
|
|
|
|
packlist=`find %{buildroot} -name .packlist`
|
|
|
|
[ -z "$packlist" ] && exit 1 || cat $packlist | \
|
2024-01-06 08:50:20 +01:00
|
|
|
sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \
|
|
|
|
sort -u > .packlist && rm -f $packlist
|
2024-01-06 08:50:20 +01:00
|
|
|
|
|
|
|
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
|
|
|
|
for dir in `find %{buildroot} -type d | grep $strid`; do
|
|
|
|
echo "%dir ${dir#%buildroot}" >> .packlist
|
|
|
|
done
|
|
|
|
|
2024-01-06 08:50:20 +01:00
|
|
|
find %{buildroot} -name *.so -exec chmod u+w {} \;
|
|
|
|
|
2024-01-06 08:50:20 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files -f .packlist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 08:50:20 +01:00
|
|
|
* Sat Mar 11 2023 Automatic Build System <autodist@mambasoft.it> 1.59-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 08:50:20 +01:00
|
|
|
* Fri Nov 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.04-2mamba
|
|
|
|
- rebuilt with perl 5.24
|
|
|
|
|
2024-01-06 08:50:20 +01:00
|
|
|
* Thu Dec 12 2013 Automatic Build System <autodist@mambasoft.it> 1.04-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue May 28 2013 Automatic Build System <autodist@mambasoft.it> 1.03-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Apr 27 2013 Automatic Build System <autodist@mambasoft.it> 0.78-1mamba
|
|
|
|
- update to 0.78
|
|
|
|
|
|
|
|
* Tue Nov 13 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4501-2mamba
|
|
|
|
- perl 5.16 mass rebuild
|
|
|
|
|
|
|
|
* Thu Feb 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4501-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Nov 04 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.41-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Fri Nov 30 2007 Aleph0 <aleph0@openmamba.org> 0.41-1mamba
|
|
|
|
- package created by autospec
|