libyaz4-devel is required only for the build.
[ZOOM-Perl-moved-to-github.git] / zoom-perl.spec
1 Summary: Perl implementation of the ZOOM abstract API
2 Name: libnet-z3950-zoom-perl
3 Version: 1.27
4 Release: 1.indexdata
5 License: Perl
6 Group: Applications/Internet
7 Vendor: Index Data ApS <info@indexdata.com>
8 Source: libnet-z3950-zoom-perl-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/libnet-z3950-zoom-perl-%{version}-root
10 BuildRequires: perl
11 BuildRequires: libyaz4-devel
12 Packager: Mike Taylor <mike@indexdata.com>
13 URL: http://www.indexdata.com/masterkey/
14
15 Requires: libyaz4
16 Requires: perl-MARC-Record
17 Requires: perl-XML-LibXML
18 Requires: perl-XML-LibXML-XPathContext
19
20 %description
21 This module provides a nice, Perlish implementation of the ZOOM
22 Abstract API described and documented at http://zoom.z3950.org/api/
23
24 the ZOOM module is implemented as a set of thin classes on top of the
25 non-OO functions provided by this distribution's Net::Z3950::ZOOM
26 module, which in turn is a thin layer on top of the ZOOM-C code
27 supplied as part of Index Data's YAZ Toolkit.  Because ZOOM-C is also
28 the underlying code that implements ZOOM bindings in C++, Visual
29 Basic, Scheme, Ruby, .NET (including C#) and other languages, this
30 Perl module works compatibly with those other implementations.  (Of
31 course, the point of a public API such as ZOOM is that all
32 implementations should be compatible anyway; but knowing that the same
33 code is running is reassuring.)
34
35 %prep
36 %setup
37
38 %build
39 %{__perl} Makefile.PL PREFIX=/usr INSTALLDIRS=vendor
40 %{__make}
41
42 %install
43 %{__rm} -rf %{buildroot}
44 %{__make} pure_install DESTDIR=%{buildroot}
45
46 # Perl's make install seems to create both uncompressed AND compressed
47 # versions of the manual pages, which confuses /usr/lib/rpm/brp-compress
48 find $RPM_BUILD_ROOT/usr/share/man -name '*.gz' -exec rm -f '{}' \;
49
50 # Install documentation
51 DOCDIR=$RPM_BUILD_ROOT%{_datadir}/doc/perl-zoom
52 mkdir -p $DOCDIR
53 cp -p README Changes $DOCDIR/
54
55 %clean
56 rm -fr ${RPM_BUILD_ROOT}
57
58 %files
59 %defattr(-,root,root)
60 %doc %{_datadir}/doc/perl-zoom
61 %{_bindir}/zselect
62 %{_bindir}/zoomdump
63 %doc %{_datadir}/man/man3/Net::Z3950::ZOOM.3pm.gz
64 %doc %{_datadir}/man/man3/ZOOM.3pm.gz
65 %{perl_vendorarch}
66
67 %changelog
68 * Mon Jul 12 2010 Mike Taylor <mike@indexdata.com>
69 - First Red Hat packaged version.
70
71 All versions follow the upstream changelog "Changes".
72