perl-DateTime-Locale/perl-DateTime-Locale.spec
OBS User autobuild fec9f1dc98 Accepting request 37707 from devel:languages:perl
Copy from devel:languages:perl/perl-DateTime-Locale based on submit request 37707 from user computersalat

OBS-URL: https://build.opensuse.org/request/show/37707
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-DateTime-Locale?expand=0&rev=1
2010-04-20 00:44:06 +00:00

90 lines
2.7 KiB
RPMSpec

#
# spec file for package perl-DateTime-Locale (Version 0.45)
#
# 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
Name: perl-DateTime-Locale
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Localization support for DateTime.pm
Version: 0.45
Release: 1
License: GPL Version 2, Artistic License
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime-Locale
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Class::ISA)
# other not perl || perl-base
#BuildRequires: perl(Test::Pod)
#BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Output)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Params::Validate) >= 0.91
Requires: perl = %{perl_version}
Requires: perl(Class::ISA)
# other not perl || perl-base
Requires: perl(List::MoreUtils)
Requires: perl(Params::Validate) >= 0.91
%description
DateTime::Locale is primarily a factory for the various locale subclasses.
It also provides some functions for getting information on all
the available locales.
If you want to know what methods are available for locale objects,
then please read the DateTime::Locale::Base documentation.
Authors:
Richard Evans <rich@ridas.com>
Dave Rolsky <autarch@urth.org>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
./Build
%check
./Build test
%install
./Build install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%doc Changes LICENSE README SIGNATURE
%changelog