2011-03-24 17:00:48 +01:00
|
|
|
#
|
|
|
|
# spec file for package perl-DateTime-TimeZone
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2010-04-20 02:44:41 +02:00
|
|
|
|
|
|
|
Name: perl-DateTime-TimeZone
|
2011-03-14 23:31:21 +01:00
|
|
|
Version: 1.30
|
2011-03-24 17:00:48 +01:00
|
|
|
Release: 1
|
2010-04-20 02:44:41 +02:00
|
|
|
Summary: Time zone object base class and factory
|
2011-03-14 23:31:21 +01:00
|
|
|
# http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{version}.tar.gz
|
|
|
|
Source: DateTime-TimeZone-%{version}.tar.bz2
|
2011-03-24 17:00:48 +01:00
|
|
|
Url: http://search.cpan.org/dist/DateTime-TimeZone
|
2010-04-20 02:44:41 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2011-03-14 23:31:21 +01:00
|
|
|
License: GPL+ or Artistic
|
2011-03-24 17:00:48 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 15:01:49 +01:00
|
|
|
%{perl_requires}
|
2010-04-20 02:44:41 +02:00
|
|
|
BuildRequires: perl-macros
|
2011-03-14 23:31:21 +01:00
|
|
|
BuildRequires: make
|
2010-07-20 20:42:03 +02:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2011-03-14 23:31:21 +01:00
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
|
2010-07-20 20:42:03 +02:00
|
|
|
BuildRequires: perl(Class::Singleton) >= 1.03
|
2011-03-14 23:31:21 +01:00
|
|
|
BuildRequires: perl(parent)
|
2010-07-20 20:42:03 +02:00
|
|
|
BuildRequires: perl(Params::Validate) >= 0.72
|
2011-03-14 23:31:21 +01:00
|
|
|
BuildRequires: perl(Pod::Man) >= 1.14
|
|
|
|
BuildRequires: perl(Class::Load)
|
|
|
|
BuildRequires: perl(Cwd) >= 3
|
2010-04-20 02:44:41 +02:00
|
|
|
Requires: perl(Class::Singleton) >= 1.03
|
2011-03-14 23:31:21 +01:00
|
|
|
Requires: perl(parent)
|
2010-04-20 02:44:41 +02:00
|
|
|
Requires: perl(Params::Validate) >= 0.72
|
|
|
|
Requires: perl(Pod::Man) >= 1.14
|
2011-03-14 23:31:21 +01:00
|
|
|
Requires: perl(Class::Load)
|
|
|
|
Requires: perl(Cwd) >= 3
|
|
|
|
%if 0%{?suse_version} >= 1120
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2010-04-20 02:44:41 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This class is the base class for all time zone objects. A time zone is
|
2011-03-14 23:31:21 +01:00
|
|
|
represented internally as a set of observances, each of which describes
|
|
|
|
the offset from GMT for a given time period.
|
|
|
|
Note that without the "DateTime.pm" module, this module does not do much.
|
|
|
|
It's primary interface is through a "DateTime" object, and most users will
|
|
|
|
not need to directly use "DateTime::TimeZone" methods.
|
2010-04-20 02:44:41 +02:00
|
|
|
|
|
|
|
%prep
|
2011-03-14 23:31:21 +01:00
|
|
|
%setup -q -n "DateTime-TimeZone-%{version}"
|
|
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
|
2010-07-20 20:42:03 +02:00
|
|
|
# rpmlint: spurious-executable-perm
|
|
|
|
pushd tools
|
|
|
|
find -type f -exec %{__chmod} 0644 {} \;
|
|
|
|
popd
|
2010-04-20 02:44:41 +02:00
|
|
|
|
|
|
|
%build
|
2011-03-14 23:31:21 +01:00
|
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
|
|
%__make %{?jobs:-j%{jobs}}
|
2010-04-20 02:44:41 +02:00
|
|
|
|
|
|
|
%install
|
2011-03-14 23:31:21 +01:00
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__make test
|
2010-04-20 02:44:41 +02:00
|
|
|
|
|
|
|
%clean
|
2011-03-14 23:31:21 +01:00
|
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
2010-04-20 02:44:41 +02:00
|
|
|
|
2011-03-14 23:31:21 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README Changes LICENSE
|
|
|
|
%doc tools
|
|
|
|
%dir %{perl_vendorlib}/DateTime
|
|
|
|
%{perl_vendorlib}/DateTime/TimeZone
|
|
|
|
%{perl_vendorlib}/DateTime/TimeZone.pm
|
|
|
|
%doc %{perl_man3dir}/DateTime::TimeZone.%{perl_man3ext}%{ext_man}
|
|
|
|
%doc %{perl_man3dir}/DateTime::TimeZone::*.%{perl_man3ext}%{ext_man}
|
2011-03-24 17:00:48 +01:00
|
|
|
%changelog
|