1 %define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n')
2 Summary: Perl API to the YAZ generic front-end server (Z39.50 server)
3 Name: libnet-z3950-simpleserver-perl
4 Version: %{idmetaversion}
7 Group: Applications/Internet
8 Vendor: Index Data ApS <info@indexdata.com>
9 Source: %{name}-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
12 BuildRequires: libyaz5-devel >= 5.0.0
13 # On Centos6: BuildRequires: perl-ExtUtils-MakeMaker
14 Packager: Jakub Skoczen <jakub@indexdata.dk>
15 URL: http://www.indexdata.com/simpleserver/
17 Requires: libyaz5 >= 5.0.0
20 The SimpleServer module is a tool for constructing Z39.50 "Information
21 Retrieval" servers in Perl. The module is easy to use, but it
22 does help to have an understanding of the Z39.50 query
23 structure and the construction of structured retrieval records.
29 perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr
34 # Perl's make install seems to create both uncompressed AND compressed
35 # versions of the manual pages, which confuses /usr/lib/rpm/brp-compress
36 find $RPM_BUILD_ROOT/usr/share/man -name '*.gz' -exec rm -f '{}' \;
38 # Install additional documentation
39 DOCDIR=$RPM_BUILD_ROOT%{_datadir}/doc/perl-simpleserver
41 cp -p README Changes $DOCDIR/
44 rm -fr ${RPM_BUILD_ROOT}
52 %doc %{_mandir}/man3/*.3*
53 %doc %{_datadir}/doc/perl-simpleserver