fix build/deps for RHEL, CentOS

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-DateTime-Locale?expand=0&rev=15
This commit is contained in:
Christian Wittmer 2011-08-29 21:08:57 +00:00 committed by Git OBS Bridge
parent 9ff831cce0
commit bce42072b7
2 changed files with 21 additions and 14 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Aug 29 21:06:41 UTC 2011 - chris@computersalat.de
- fix build/deps for RHEL, CentOS
* AutoReq seem to be broken: need to remove tools dir, cause otherwise
wrong Requires would be defined, e.g. perl(Moose),....
-------------------------------------------------------------------
Tue Nov 30 19:20:09 UTC 2010 - coolo@novell.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-DateTime-Locale (Version 0.45)
# spec file for package perl-DateTime-Locale
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@ -15,15 +15,13 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%bcond_with test
Name: perl-DateTime-Locale
%define cpan_name DateTime-Locale
Summary: Localization support for DateTime.pm
Version: 0.45
Release: 2
Release: 5
License: GPL+ or Artistic
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/DateTime-Locale/
@ -33,8 +31,8 @@ BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl(Module::Build)
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
%if %{with test}
BuildRequires: perl(Test::Output)
#BuildRequires: perl(Test::Pod)
@ -56,15 +54,13 @@ 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}
# rpmlint: spurious-executable-perm
%{__chmod} 0644 tools/generate-from-cldr
find . -type f -print0 | xargs -0 chmod 644
%if 0%{?rhel_version} || 0%{?centos_version}
%{__rm} -rf tools
%endif
%build
%{__perl} Build.PL installdirs=vendor
@ -74,14 +70,18 @@ Authors:
./Build test
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
./Build install destdir=%{buildroot} create_packlist=0
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,-)
%if 0%{suse_version}
%doc Changes LICENSE README SIGNATURE tools
%else
%doc Changes LICENSE README SIGNATURE
%endif
%changelog