Accepting request 43315 from devel:languages:perl

Copy from devel:languages:perl/perl-DateTime-Locale based on submit request 43315 from user computersalat

OBS-URL: https://build.opensuse.org/request/show/43315
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-DateTime-Locale?expand=0&rev=4
This commit is contained in:
OBS User autobuild 2010-07-19 18:49:44 +00:00 committed by Git OBS Bridge
parent fec9f1dc98
commit 6e5d401cea
2 changed files with 34 additions and 27 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jul 16 14:25:32 UTC 2010 - chris@computersalat.de
- recreated by cpanspec 1.78
o fix deps
- added bcond_with test
-------------------------------------------------------------------
Sun Apr 11 18:39:41 UTC 2010 - chris@computersalat.de

View File

@ -17,73 +17,73 @@
# norootforbuild
%bcond_with test
Name: perl-DateTime-Locale
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
%define cpan_name DateTime-Locale
Summary: Localization support for DateTime.pm
Version: 0.45
Release: 1
License: GPL Version 2, Artistic License
Release: 2
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime-Locale
Url: http://search.cpan.org/dist/DateTime-Locale/
#Source: http://www.cpan.org/modules/by-module/DateTime/DateTime-Locale-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl(Module::Build)
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
BuildRequires: perl(Class::ISA)
# other not perl || perl-base
%if %{with test}
BuildRequires: perl(Test::Output)
#BuildRequires: perl(Test::Pod)
#BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Output)
%endif
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
#
#Conflicts: perl(DateTime::Format::Strptime) >= 1.1000
%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.
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>
Authors:
--------
Richard Evans <rich@ridas.com>
Dave Rolsky <autarch@urth.org>
%prep
%setup -q -n %{cpan_name}-%{version}
# rpmlint: spurious-executable-perm
%{__chmod} 0644 tools/generate-from-cldr
%build
CFLAGS="$RPM_OPT_FLAGS" perl Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
%{__perl} Build.PL 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
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%perl_gen_filelist
%clean
%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
%defattr(-,root,root,-)
%doc Changes LICENSE README SIGNATURE tools
%changelog