- updated to 20120719.001

* Support data from RangeMessage.xml. You can use the latest
       data from ISBN without updating this module.
       Specify the Test::More version so I cna use subtest.
       No code or feature changes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Business-ISBN-Data?expand=0&rev=14
This commit is contained in:
Stephan Kulow 2013-06-04 11:44:31 +00:00 committed by Git OBS Bridge
parent 4da5560484
commit 595619ee0e
4 changed files with 47 additions and 42 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:49f8a021dda08704c8bea03ab914a466a1f2521283cec9cb1ddc6db38549421b
size 8126

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:745f6bf8f7bd912c0a1865aa5f7e49343804de27783f544b2e2c714e14a704a3
size 14745

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Jun 4 11:43:57 UTC 2013 - coolo@suse.com
- updated to 20120719.001
* Support data from RangeMessage.xml. You can use the latest
data from ISBN without updating this module.
Specify the Test::More version so I cna use subtest.
No code or feature changes
-------------------------------------------------------------------
Tue Nov 30 19:19:51 UTC 2010 - coolo@novell.com

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-Business-ISBN-Data (Version 20081208)
# spec file for package perl-Business-ISBN-Data
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 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,46 +15,48 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%bcond_with pod
Name: perl-Business-ISBN-Data
Version: 20120719.001
Release: 0
%define cpan_name Business-ISBN-Data
Summary: Data pack for Business::ISBN
Version: 20081208
Release: 9
License: GPL+ or Artistic
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/modules/by-module/Business/Business-ISBN-Data-%{version}.tar.gz
Source: http://www.cpan.org/authors/id/B/BD/BDFOY/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Test::More)
%if %{with pod}
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Pod::Coverage)
%endif
BuildRequires: perl(Test::More) >= 0.95
#BuildRequires: perl(LWP::Simple)
Requires: perl(Test::More) >= 0.95
%{perl_requires}
%description
This data is current as of the date in the module version. At that time,
the publisher codes 9990000-9999999 or 999000-999999 had not been fixed,
although they had been proposed. I do not include them in the data. Some
regions, including India (93), Gabon (99902), and Congo (99951) have
country codes but no publisher codes. They still have entries even though
you won't be able to validate any ISBNs assigned in those regions.
You don't need to load this module yourself in most cases. 'Business::ISBN'
will load it when it loads.
Business::ISBN uses this "data pack" to do its work. You can update
Business::ISBN::Data independently of the main module as the various
ISBN organizations assign new publisher codes. The ISBN agency lists
these data at http://www.isbn-international.org/converter/ranges.htm .
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_.
Authors:
--------
brian d foy <bdfoy@cpan.org>
If you want to use a different _RangeMessage.xml_ file, you can set the
'ISBN_RANGE_MESSAGE' environment variable to the alternate location before
you load 'Business::ISBN'. This way, you can use the latest (or even
earlier) data without having to install something new or wait for an update
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.
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}
@ -68,18 +70,11 @@ Authors:
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%defattr(-,root,root,755)
%doc Changes examples LICENSE README
%changelog