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:
parent
9ff831cce0
commit
bce42072b7
@ -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
|
Tue Nov 30 19:20:09 UTC 2010 - coolo@novell.com
|
||||||
|
|
||||||
|
@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -15,15 +15,13 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
|
|
||||||
Name: perl-DateTime-Locale
|
Name: perl-DateTime-Locale
|
||||||
%define cpan_name DateTime-Locale
|
%define cpan_name DateTime-Locale
|
||||||
Summary: Localization support for DateTime.pm
|
Summary: Localization support for DateTime.pm
|
||||||
Version: 0.45
|
Version: 0.45
|
||||||
Release: 2
|
Release: 5
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/DateTime-Locale/
|
Url: http://search.cpan.org/dist/DateTime-Locale/
|
||||||
@ -33,8 +31,8 @@ BuildArch: noarch
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl(Module::Build)
|
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
|
BuildRequires: perl(Module::Build)
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: perl(Test::Output)
|
BuildRequires: perl(Test::Output)
|
||||||
#BuildRequires: perl(Test::Pod)
|
#BuildRequires: perl(Test::Pod)
|
||||||
@ -56,15 +54,13 @@ available locales.
|
|||||||
If you want to know what methods are available for locale objects,
|
If you want to know what methods are available for locale objects,
|
||||||
then please read the DateTime::Locale::Base documentation.
|
then please read the DateTime::Locale::Base documentation.
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Richard Evans <rich@ridas.com>
|
|
||||||
Dave Rolsky <autarch@urth.org>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
# rpmlint: spurious-executable-perm
|
# 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
|
%build
|
||||||
%{__perl} Build.PL installdirs=vendor
|
%{__perl} Build.PL installdirs=vendor
|
||||||
@ -74,14 +70,18 @@ Authors:
|
|||||||
./Build test
|
./Build test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
./Build install destdir=%{buildroot} create_packlist=0
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%if 0%{suse_version}
|
||||||
%doc Changes LICENSE README SIGNATURE tools
|
%doc Changes LICENSE README SIGNATURE tools
|
||||||
|
%else
|
||||||
|
%doc Changes LICENSE README SIGNATURE
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user