2010-04-20 02:43:46 +02:00
|
|
|
#
|
2010-09-18 01:12:54 +02:00
|
|
|
# spec file for package perl-DateTime (Version 0.60)
|
2010-04-20 02:43:46 +02:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2010-09-18 01:12:54 +02:00
|
|
|
%bcond_with test
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
Name: perl-DateTime
|
2010-09-18 01:12:54 +02:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
|
|
|
Summary: A date and time object
|
|
|
|
Version: 0.60
|
2010-04-20 02:43:46 +02:00
|
|
|
Release: 1
|
2010-09-18 01:12:54 +02:00
|
|
|
License: Artistic License 2.0
|
2010-04-20 02:43:46 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2010-09-18 01:12:54 +02:00
|
|
|
Url: http://search.cpan.org/dist/DateTime
|
2010-04-20 02:43:46 +02:00
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: perl
|
2010-08-02 03:38:55 +02:00
|
|
|
BuildRequires: perl(Module::Build)
|
2010-04-20 02:43:46 +02:00
|
|
|
%if 0%{?suse_version} < 1120
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
%endif
|
2010-09-18 01:12:54 +02:00
|
|
|
BuildRequires: perl(Scalar::Util)
|
2010-09-17 17:09:48 +02:00
|
|
|
BuildRequires: perl(Pod::Man) >= 1.14
|
|
|
|
BuildRequires: perl(Test::Exception)
|
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2010-09-18 01:12:54 +02:00
|
|
|
# for testsuite
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.14
|
|
|
|
%endif
|
|
|
|
# other not perl || perl-base
|
2010-04-20 02:43:46 +02:00
|
|
|
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}
|
2010-09-18 01:12:54 +02:00
|
|
|
Requires: perl(Scalar::Util)
|
|
|
|
# other not perl || perl-base
|
2010-04-20 02:43:46 +02:00
|
|
|
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.
|
|
|
|
|
2010-09-18 01:12:54 +02:00
|
|
|
Author: Dave Rolsky <autarch@urth.org>
|
|
|
|
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2010-09-18 01:12:54 +02:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" perl Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
|
|
|
|
./Build
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
2010-09-18 01:12:54 +02:00
|
|
|
./Build install
|
|
|
|
%perl_process_packlist
|
2010-04-20 02:43:46 +02:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2010-09-18 01:12:54 +02:00
|
|
|
# normally you only need to check for doc files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc CREDITS Changes LICENSE README SIGNATURE TODO
|
2010-04-20 02:43:46 +02:00
|
|
|
|
|
|
|
%changelog
|