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