Add magic init-script comments (I think from John)
[ZOOM-Perl-moved-to-github.git] / libnet-z3950-zoom-perl.spec
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}
5 Release: 1.indexdata
6 License: Perl
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
11 BuildRequires: perl
12 BuildRequires: libyaz5-devel
13 Packager: Mike Taylor <mike@indexdata.com>
14 URL: http://www.indexdata.com/masterkey/
15
16 Requires: libyaz5
17 Requires: perl-MARC-Record
18 Requires: perl-XML-LibXML
19 %{?el5:Requires: perl-XML-LibXML-XPathContext}
20
21 %description
22 This module provides a nice, Perlish implementation of the ZOOM
23 Abstract API described and documented at http://zoom.z3950.org/api/
24
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.)
35
36 %prep
37 %setup
38
39 %build
40 %{__perl} Makefile.PL PREFIX=/usr INSTALLDIRS=vendor
41 %{__make}
42
43 %install
44 %{__rm} -rf %{buildroot}
45 %{__make} pure_install DESTDIR=%{buildroot}
46
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 '{}' \;
50
51 # Install documentation
52 DOCDIR=$RPM_BUILD_ROOT%{_datadir}/doc/perl-zoom
53 mkdir -p $DOCDIR
54 cp -p README Changes $DOCDIR/
55
56 %clean
57 rm -fr ${RPM_BUILD_ROOT}
58
59 %files
60 %defattr(-,root,root)
61 %doc %{_datadir}/doc/perl-zoom
62 %{_bindir}/zselect
63 %{_bindir}/zoomdump
64 %{_bindir}/zoom-delete-records
65 %doc %{_datadir}/man/man3/Net::Z3950::ZOOM.3pm.gz
66 %doc %{_datadir}/man/man3/ZOOM.3pm.gz
67 %{perl_vendorarch}
68
69 %changelog
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.
74
75 All versions follow the upstream changelog "Changes".
76