perl-DateTime-TimeZone/perl-DateTime-TimeZone.spec

92 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# 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/
#
Name: perl-DateTime-TimeZone
Version: 1.30
Release: 1
Summary: Time zone object base class and factory
# http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/DateTime-TimeZone-%{version}.tar.gz
Source: DateTime-TimeZone-%{version}.tar.bz2
Url: http://search.cpan.org/dist/DateTime-TimeZone
Group: Development/Libraries/Perl
License: GPL+ or Artistic
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl-macros
BuildRequires: make
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
BuildRequires: perl(Class::Singleton) >= 1.03
BuildRequires: perl(parent)
BuildRequires: perl(Params::Validate) >= 0.72
BuildRequires: perl(Pod::Man) >= 1.14
BuildRequires: perl(Class::Load)
BuildRequires: perl(Cwd) >= 3
Requires: perl(Class::Singleton) >= 1.03
Requires: perl(parent)
Requires: perl(Params::Validate) >= 0.72
Requires: perl(Pod::Man) >= 1.14
Requires: perl(Class::Load)
Requires: perl(Cwd) >= 3
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%endif
%description
This class is the base class for all time zone objects. A time zone is
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.
%prep
%setup -q -n "DateTime-TimeZone-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
# rpmlint: spurious-executable-perm
pushd tools
find -type f -exec %{__chmod} 0644 {} \;
popd
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%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}
%changelog