perl-DateTime/perl-DateTime.spec

84 lines
2.8 KiB
RPMSpec
Raw Normal View History

%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 <aleph0@openmamba.org>
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 <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