From 2c2066134f28828afc7597bc0fa5c6b30127968a Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 12 Jul 2010 15:39:30 +0100 Subject: [PATCH] new --- zoom-perl.spec | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 zoom-perl.spec diff --git a/zoom-perl.spec b/zoom-perl.spec new file mode 100644 index 0000000..2f685ee --- /dev/null +++ b/zoom-perl.spec @@ -0,0 +1,65 @@ +Summary: Perl implementation of the ZOOM abstract API +Name: perl-zoom +Version: 1.26 +Release: 1.indexdata +License: Perl +Group: Applications/Internet +Vendor: Index Data ApS +Source: perl-zoom-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildRequires: perl +Packager: Mike Taylor +URL: http://www.indexdata.com/masterkey/ + +Requires: libyaz4-devel +Requires: perl-marc-record + +%description +This module provides a nice, Perlish implementation of the ZOOM +Abstract API described and documented at http://zoom.z3950.org/api/ + +the ZOOM module is implemented as a set of thin classes on top of the +non-OO functions provided by this distribution's Net::Z3950::ZOOM +module, which in turn is a thin layer on top of the ZOOM-C code +supplied as part of Index Data's YAZ Toolkit. Because ZOOM-C is also +the underlying code that implements ZOOM bindings in C++, Visual +Basic, Scheme, Ruby, .NET (including C#) and other languages, this +Perl module works compatibly with those other implementations. (Of +course, the point of a public API such as ZOOM is that all +implementations should be compatible anyway; but knowing that the same +code is running is reassuring.) + +%prep +%setup + +%build +perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr +make + +%install +make install +#rm $RPM_BUILD_ROOT/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod +# 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 documentation +DOCDIR=$RPM_BUILD_ROOT%{_datadir}/doc/perl-zoom +mkdir -p $DOCDIR +cp -p README $DOCDIR/ + +%clean +rm -fr ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +%doc %{_datadir}/doc/perl-zoom +%{_bindir}/zselect +%{_bindir}/zoomdump + +# Why is this file in such a silly location? This is fragile. +#/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/Masterkey/Admin/.packlist + +%changelog +* Mon Jul 12 2010 Mike Taylor +- First Red Hat packaged version. -- 1.7.10.4