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