From c0354db18dc563bb3c576dcc6756435be4585b09 Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Tue, 17 Apr 2012 17:28:19 +0200 Subject: [PATCH] Add RPM packaging --- simpleserver.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 simpleserver.spec diff --git a/simpleserver.spec b/simpleserver.spec new file mode 100644 index 0000000..4ac14ef --- /dev/null +++ b/simpleserver.spec @@ -0,0 +1,52 @@ +%define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n') +Summary: Perl API to the YAZ generic front-end server (Z39.50 server) +Name: libnet-z3950-simpleserver-perl +Version: %{idmetaversion} +Release: 1.indexdata +License: Perl +Group: Applications/Internet +Vendor: Index Data ApS +Source: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: perl +BuildRequires: libyaz4-devel +Packager: Jakub Skoczen +URL: http://www.indexdata.com/simpleserver/ + +Requires: libyaz4 + +%description +The SimpleServer module is a tool for constructing Z39.50 "Information +Retrieval" servers in Perl. The module is easy to use, but it +does help to have an understanding of the Z39.50 query +structure and the construction of structured retrieval records. + +%prep +%setup + +%build +perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr +make + +%install +make pure_install +# Perl's make install seems to create both uncompressed AND compressed +# versions of the manual pages, which confuses /usr/lib/rpm/brp-compress +find $RPM_BUILD_ROOT/usr/share/man -name '*.gz' -exec rm -f '{}' \; + +# Install additional documentation +DOCDIR=$RPM_BUILD_ROOT%{_datadir}/doc/perl-simpleserver +mkdir -p $DOCDIR +cp -p README Changes $DOCDIR/ + +%clean +rm -fr ${RPM_BUILD_ROOT} + +%check || : +make test + +%files +%defattr(-,root,root) +%{_libdir}/perl5/site_perl/*/* +%doc %{_mandir}/man3/*.3* +%doc %{_datadir}/doc/perl-simpleserver -- 1.7.10.4