diff --git a/perl-DateTime-Locale.changes b/perl-DateTime-Locale.changes index 75a716f..72a897c 100644 --- a/perl-DateTime-Locale.changes +++ b/perl-DateTime-Locale.changes @@ -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 diff --git a/perl-DateTime-Locale.spec b/perl-DateTime-Locale.spec index 360f2d0..325bf0c 100644 --- a/perl-DateTime-Locale.spec +++ b/perl-DateTime-Locale.spec @@ -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 - Dave Rolsky - %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