Accepting request 286761 from devel:languages:perl
- updated to 20140910.002 * Look in the current directory for RangeMessage.xml if it's not in other locations. This can help with various Perl app packagers. (But, also try ISBN_RANGE_MESSAGE env var) - add fix-provides.diff to avoid providing ::ISBN without data OBS-URL: https://build.opensuse.org/request/show/286761 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Business-ISBN-Data?expand=0&rev=19
This commit is contained in:
commit
38452dadde
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:0adb9cd52cbefd20fcbae1af782c7e8d19bd11adf7ce9c446942338cefcc2d5d
|
|
||||||
size 16222
|
|
3
Business-ISBN-Data-20140910.002.tar.gz
Normal file
3
Business-ISBN-Data-20140910.002.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3e2413d6672f6cbbfad61caa2d6eb315382bb5bc09db5157c8107cbdc98ecbae
|
||||||
|
size 16522
|
14
fix-provides.diff
Normal file
14
fix-provides.diff
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Index: Business-ISBN-Data-20140910.002/lib/Business/ISBN/Data.pm
|
||||||
|
===================================================================
|
||||||
|
--- Business-ISBN-Data-20140910.002.orig/lib/Business/ISBN/Data.pm
|
||||||
|
+++ Business-ISBN-Data-20140910.002/lib/Business/ISBN/Data.pm
|
||||||
|
@@ -375,7 +375,8 @@ $Business::ISBN::MAX_COUNTRY_CODE_LENGTH
|
||||||
|
( sort { $a <=> $b } grep { ! /\A_/ } keys %Business::ISBN::country_data )[-1]
|
||||||
|
);
|
||||||
|
|
||||||
|
-package Business::ISBN;
|
||||||
|
+package
|
||||||
|
+ Business::ISBN;
|
||||||
|
|
||||||
|
sub isbn_group_code_string_from_number {
|
||||||
|
return if $_[0] =~ /\A_/;
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 19 13:24:45 UTC 2015 - coolo@suse.com
|
||||||
|
|
||||||
|
- updated to 20140910.002
|
||||||
|
* Look in the current directory for RangeMessage.xml if it's
|
||||||
|
not in other locations. This can help with various Perl app
|
||||||
|
packagers. (But, also try ISBN_RANGE_MESSAGE env var)
|
||||||
|
- add fix-provides.diff to avoid providing ::ISBN without data
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Sep 21 13:42:01 UTC 2014 - lars@linux-schulserver.de
|
Sun Sep 21 13:42:01 UTC 2014 - lars@linux-schulserver.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Business-ISBN-Data
|
# spec file for package perl-Business-ISBN-Data
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX 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
|
||||||
@ -17,22 +17,20 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-Business-ISBN-Data
|
Name: perl-Business-ISBN-Data
|
||||||
Version: 20140910.001
|
Version: 20140910.002
|
||||||
Release: 0
|
Release: 0
|
||||||
%define cpan_name Business-ISBN-Data
|
%define cpan_name Business-ISBN-Data
|
||||||
Summary: Data pack for Business::ISBN
|
Summary: data pack for Business::ISBN
|
||||||
License: Artistic-1.0 or GPL-1.0+
|
License: Artistic-1.0 or GPL-1.0+
|
||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://search.cpan.org/dist/Business-ISBN-Data/
|
Url: http://search.cpan.org/dist/Business-ISBN-Data/
|
||||||
Source: http://www.cpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz
|
Source: http://www.cpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz
|
||||||
|
Patch0: fix-provides.diff
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Test::More) >= 0.95
|
BuildRequires: perl(Test::More) >= 0.95
|
||||||
Requires: perl(Test::More) >= 0.95
|
|
||||||
#BuildRequires: perl(Test::Pod)
|
|
||||||
#BuildRequires: perl(Test::Pod::Coverage)
|
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -41,9 +39,9 @@ will load it when it loads.
|
|||||||
|
|
||||||
These data are generated from the _RangeMessage.xml_ file provided by the
|
These data are generated from the _RangeMessage.xml_ file provided by the
|
||||||
ISBN Agency. You can retrieve this yourself at the
|
ISBN Agency. You can retrieve this yourself at the
|
||||||
http://www.isbn-international.org/agency?rmxml=1 manpage. This file is
|
https://www.isbn-international.org/range_file_generation manpage. This file
|
||||||
included as part of the distribution and should be installed at
|
is included as part of the distribution and should be installed at
|
||||||
_~lib/Business/ISBN/RangeMessage.xml_.
|
_~lib/Business/ISBN/Data/RangeMessage.xml_.
|
||||||
|
|
||||||
If you want to use a different _RangeMessage.xml_ file, you can set the
|
If you want to use a different _RangeMessage.xml_ file, you can set the
|
||||||
'ISBN_RANGE_MESSAGE' environment variable to the alternate location before
|
'ISBN_RANGE_MESSAGE' environment variable to the alternate location before
|
||||||
@ -53,14 +51,17 @@ to this module.
|
|||||||
|
|
||||||
If the default _RangeMessage.xml_ or your alternate one is not available,
|
If the default _RangeMessage.xml_ or your alternate one is not available,
|
||||||
the module falls back to data included in _Data.pm_. However, that data is
|
the module falls back to data included in _Data.pm_. However, that data is
|
||||||
likely to be older data.
|
likely to be older data. If it does not find that file, it looks for
|
||||||
|
_RangeMessage.xml_ in the current directory.
|
||||||
|
|
||||||
The data are in 'Business::ISBN::country_data' (although the "country"
|
The data are in '%Business::ISBN::country_data' (although the "country"
|
||||||
part is historical). If you want to see where the data are from, check
|
part is historical). If you want to see where the data are from, check
|
||||||
'$Business::ISBN::country_data{_source}'.
|
'$Business::ISBN::country_data{_source}'.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
# MANUAL
|
||||||
sed -i "s|^#!/usr/local/bin/.*|%{_bindir}/perl|" make_data.pl
|
sed -i "s|^#!/usr/local/bin/.*|%{_bindir}/perl|" make_data.pl
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user