From 0afdf0ca83adc10029e42bb21125184c4f2a3d9166a9ab9d727cba2f2cec91aa Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 19 Feb 2015 13:27:57 +0000 Subject: [PATCH] - 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/package/show/devel:languages:perl/perl-Business-ISBN-Data?expand=0&rev=18 --- Business-ISBN-Data-20140910.001.tar.gz | 3 --- Business-ISBN-Data-20140910.002.tar.gz | 3 +++ fix-provides.diff | 14 ++++++++++++++ perl-Business-ISBN-Data.changes | 9 +++++++++ perl-Business-ISBN-Data.spec | 25 +++++++++++++------------ 5 files changed, 39 insertions(+), 15 deletions(-) delete mode 100644 Business-ISBN-Data-20140910.001.tar.gz create mode 100644 Business-ISBN-Data-20140910.002.tar.gz create mode 100644 fix-provides.diff diff --git a/Business-ISBN-Data-20140910.001.tar.gz b/Business-ISBN-Data-20140910.001.tar.gz deleted file mode 100644 index ae7b903..0000000 --- a/Business-ISBN-Data-20140910.001.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0adb9cd52cbefd20fcbae1af782c7e8d19bd11adf7ce9c446942338cefcc2d5d -size 16222 diff --git a/Business-ISBN-Data-20140910.002.tar.gz b/Business-ISBN-Data-20140910.002.tar.gz new file mode 100644 index 0000000..65d85ab --- /dev/null +++ b/Business-ISBN-Data-20140910.002.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e2413d6672f6cbbfad61caa2d6eb315382bb5bc09db5157c8107cbdc98ecbae +size 16522 diff --git a/fix-provides.diff b/fix-provides.diff new file mode 100644 index 0000000..67f6a1f --- /dev/null +++ b/fix-provides.diff @@ -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_/; diff --git a/perl-Business-ISBN-Data.changes b/perl-Business-ISBN-Data.changes index d416c16..1e0e72d 100644 --- a/perl-Business-ISBN-Data.changes +++ b/perl-Business-ISBN-Data.changes @@ -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 diff --git a/perl-Business-ISBN-Data.spec b/perl-Business-ISBN-Data.spec index f7768ae..f8dbee5 100644 --- a/perl-Business-ISBN-Data.spec +++ b/perl-Business-ISBN-Data.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -17,22 +17,20 @@ Name: perl-Business-ISBN-Data -Version: 20140910.001 +Version: 20140910.002 Release: 0 -%define cpan_name Business-ISBN-Data -Summary: Data pack for Business::ISBN +%define cpan_name Business-ISBN-Data +Summary: data pack for Business::ISBN License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Business-ISBN-Data/ Source: http://www.cpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz +Patch0: fix-provides.diff BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Test::More) >= 0.95 -Requires: perl(Test::More) >= 0.95 -#BuildRequires: perl(Test::Pod) -#BuildRequires: perl(Test::Pod::Coverage) %{perl_requires} %description @@ -41,9 +39,9 @@ will load it when it loads. These data are generated from the _RangeMessage.xml_ file provided by the ISBN Agency. You can retrieve this yourself at the -http://www.isbn-international.org/agency?rmxml=1 manpage. This file is -included as part of the distribution and should be installed at -_~lib/Business/ISBN/RangeMessage.xml_. +https://www.isbn-international.org/range_file_generation manpage. This file +is included as part of the distribution and should be installed at +_~lib/Business/ISBN/Data/RangeMessage.xml_. If you want to use a different _RangeMessage.xml_ file, you can set the '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, 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 '$Business::ISBN::country_data{_source}'. %prep %setup -q -n %{cpan_name}-%{version} +%patch0 -p1 +# MANUAL sed -i "s|^#!/usr/local/bin/.*|%{_bindir}/perl|" make_data.pl %build