File perl-Net-Z3950-ZOOM.spec of Package perl-Net-Z3950-ZOOM
#
# spec file for package perl-Net-Z3950-ZOOM
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define cpan_name Net-Z3950-ZOOM
Name: perl-Net-Z3950-ZOOM
Version: 1.32
Release: 0
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl extension for invoking the ZOOM-C API
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/M/MI/MIRK/%{cpan_name}-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(MARC::Record) >= 1.38
Requires: perl(MARC::Record) >= 1.38
%{perl_requires}
%description
This module provides a simple thin-layer through to the ZOOM-C functions in
the YAZ toolkit for Z39.50 and SRW/U communication. You should not be using
this very nasty, low-level API. You should be using the 'ZOOM' module
instead, which implements a nice, Perlish API on top of this module,
conformant to the ZOOM Abstract API described at http://zoom.z3950.org/api/
To enforce the don't-use-this-module prohibition, I am not even going to
document it. If you really, really, really want to use it, then it pretty
much follows the API described in the ZOOM-C documentation at
http://www.indexdata.com/yaz/doc/zoom.html
The only additional (non-ZOOM-C) function provided by this module is
'event_str()', which takes as its argument an event code such as
'Net::Z3950::ZOOM::EVENT_SEND_APDU', and returns a corresponding short
string.
%prep
%autosetup -n %{cpan_name}-%{version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README.md samples
%changelog