1 %define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n')
2 Summary: Perl implementation of the ZOOM abstract API
3 Name: libnet-z3950-zoom-perl
4 Version: %{idmetaversion}
7 Group: Applications/Internet
8 Vendor: Index Data ApS <info@indexdata.com>
9 Source: libnet-z3950-zoom-perl-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/libnet-z3950-zoom-perl-%{version}-root
12 BuildRequires: libyaz5-devel
13 Packager: Mike Taylor <mike@indexdata.com>
14 URL: http://www.indexdata.com/masterkey/
17 Requires: perl-MARC-Record
18 Requires: perl-XML-LibXML
19 %{?el5:Requires: perl-XML-LibXML-XPathContext}
22 This module provides a nice, Perlish implementation of the ZOOM
23 Abstract API described and documented at http://zoom.z3950.org/api/
25 the ZOOM module is implemented as a set of thin classes on top of the
26 non-OO functions provided by this distribution's Net::Z3950::ZOOM
27 module, which in turn is a thin layer on top of the ZOOM-C code
28 supplied as part of Index Data's YAZ Toolkit. Because ZOOM-C is also
29 the underlying code that implements ZOOM bindings in C++, Visual
30 Basic, Scheme, Ruby, .NET (including C#) and other languages, this
31 Perl module works compatibly with those other implementations. (Of
32 course, the point of a public API such as ZOOM is that all
33 implementations should be compatible anyway; but knowing that the same
34 code is running is reassuring.)
40 %{__perl} Makefile.PL PREFIX=/usr INSTALLDIRS=vendor
44 %{__rm} -rf %{buildroot}
45 %{__make} pure_install DESTDIR=%{buildroot}
47 # Perl's make install seems to create both uncompressed AND compressed
48 # versions of the manual pages, which confuses /usr/lib/rpm/brp-compress
49 find $RPM_BUILD_ROOT/usr/share/man -name '*.gz' -exec rm -f '{}' \;
51 # Install documentation
52 DOCDIR=$RPM_BUILD_ROOT%{_datadir}/doc/perl-zoom
54 cp -p README Changes $DOCDIR/
57 rm -fr ${RPM_BUILD_ROOT}
61 %doc %{_datadir}/doc/perl-zoom
64 %{_bindir}/zoom-delete-records
65 %doc %{_datadir}/man/man3/Net::Z3950::ZOOM.3pm.gz
66 %doc %{_datadir}/man/man3/ZOOM.3pm.gz
70 * Fri Jan 24 2014 John Malconian <malc@indexdata.com>
71 - Require perl-XML-LibXML-XPathContext on RHEL/CentOS v5 or lower only.
72 * Mon Jul 12 2010 Mike Taylor <mike@indexdata.com>
73 - First Red Hat packaged version.
75 All versions follow the upstream changelog "Changes".