2007-01-10 18:04:39 +01:00
|
|
|
#
|
2010-08-27 15:28:10 +02:00
|
|
|
# spec file for package yaz (Version 4.0.12)
|
2007-01-10 18:04:39 +01:00
|
|
|
#
|
2010-08-27 15:28:10 +02:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-10 18:04:39 +01:00
|
|
|
#
|
2009-01-19 02:21:50 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-10 18:04:39 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-07-09 02:37:08 +02:00
|
|
|
|
2007-01-10 18:04:39 +01:00
|
|
|
Name: yaz
|
2008-07-09 02:37:08 +02:00
|
|
|
BuildRequires: libicu-devel libpcap-devel libxslt-devel openssl-devel readline-devel tcpd-devel
|
2007-01-10 18:04:39 +01:00
|
|
|
# libxml2-devel
|
2010-08-27 15:28:10 +02:00
|
|
|
Version: 4.0.12
|
2009-03-05 17:03:45 +01:00
|
|
|
Release: 1
|
2010-08-27 15:28:10 +02:00
|
|
|
License: BSD3c(or similar)
|
2007-01-10 18:04:39 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2007-11-20 10:50:20 +01:00
|
|
|
Source: http://ftp.indexdata.dk/pub/yaz/%{name}-%{version}.tar.bz2
|
2010-08-27 15:28:10 +02:00
|
|
|
Patch0: yaz-4.0.12-codecleanup.diff
|
|
|
|
Patch1: yaz-4.0.12-client.diff
|
2007-01-10 18:04:39 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-10-05 00:42:12 +02:00
|
|
|
Url: http://www.indexdata.dk/yaz/
|
2007-01-10 18:04:39 +01:00
|
|
|
Summary: Z39.50/SRW/SRU Programs
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains both a test-server and clients (normal & ssl) for
|
|
|
|
the ANSI/NISO Z39.50 protocol for Information Retrieval. SRW and SRU
|
|
|
|
clients and servers are also supported.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Adam Dickmeiss <adam@indexdata.dk>
|
|
|
|
|
|
|
|
%package -n libyaz
|
2010-08-27 15:28:10 +02:00
|
|
|
License: BSD3c(or similar)
|
2007-01-10 18:04:39 +01:00
|
|
|
Summary: Z39.50 Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2007-06-11 13:08:39 +02:00
|
|
|
# Requires: libxml2
|
2007-01-10 18:04:39 +01:00
|
|
|
# Requires: libxml2 openssl
|
|
|
|
|
|
|
|
%description -n libyaz
|
|
|
|
YAZ is a C library for developing client - and server applications
|
|
|
|
using the ANSI/NISO Z39.50 protocol for Information Retrieval.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Adam Dickmeiss <adam@indexdata.dk>
|
|
|
|
|
|
|
|
%package -n libyaz-devel
|
2010-08-27 15:28:10 +02:00
|
|
|
License: BSD3c(or similar)
|
2007-01-10 18:04:39 +01:00
|
|
|
Summary: Z39.50 Library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libyaz = %{version}
|
2008-07-09 02:37:08 +02:00
|
|
|
Requires: libxslt-devel tcpd-devel libopenssl-devel libicu-devel
|
2007-01-10 18:04:39 +01:00
|
|
|
|
|
|
|
%description -n libyaz-devel
|
|
|
|
YAZ is a C library for developing client - and server applications
|
|
|
|
using the ANSI/NISO Z39.50 protocol for Information Retrieval.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Adam Dickmeiss <adam@indexdata.dk>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p 1
|
|
|
|
%patch1 -p 1
|
|
|
|
|
|
|
|
%build
|
|
|
|
# --with-dsssl=/usr/share/sgml/docbook/dsssl-stylesheets \
|
|
|
|
# --with-dtd=/usr/share/sgml/db41xml
|
2007-05-10 23:33:57 +02:00
|
|
|
export CFLAGS="%{optflags} -W -fno-strict-aliasing"
|
2007-01-25 18:25:37 +01:00
|
|
|
%configure --enable-shared \
|
|
|
|
--enable-tcpd \
|
|
|
|
--with-xslt \
|
2009-01-19 02:21:50 +01:00
|
|
|
--with-openssl \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic
|
2007-01-25 18:25:37 +01:00
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2007-01-10 18:04:39 +01:00
|
|
|
|
|
|
|
%install
|
2007-01-25 18:25:37 +01:00
|
|
|
%{makeinstall}
|
|
|
|
#pushd doc
|
2007-01-10 18:04:39 +01:00
|
|
|
# make prefix=${RPM_BUILD_ROOT}/usr install
|
2007-01-25 18:25:37 +01:00
|
|
|
# make DESTDIR=${RPM_BUILD_ROOT} install
|
|
|
|
#popd
|
2007-01-10 18:04:39 +01:00
|
|
|
# Unwanted doc stuff
|
|
|
|
rm -fr $RPM_BUILD_ROOT%{_datadir}/doc
|
|
|
|
rm -fr html
|
|
|
|
mkdir html
|
|
|
|
cp -a doc/*.html html
|
|
|
|
# cp doc/*pdf .
|
|
|
|
ln -sf introduction.html html/index.html
|
|
|
|
# yaz.pdf
|
2009-03-05 17:03:45 +01:00
|
|
|
%define DOCFILES README LICENSE NEWS
|
2007-01-10 18:04:39 +01:00
|
|
|
{
|
|
|
|
echo "<html><head><title>%{name} documentation directory</title></head>"
|
|
|
|
echo "<body><ul>"
|
|
|
|
echo "<li><a href=\"html/index.html\">%{name}</a>, official documentation (local)"
|
|
|
|
for f in %{DOCFILES} http://www.indexdata.dk/links/ ; do
|
|
|
|
if [ "http:" = "${f%%%%/*}" ]; then
|
|
|
|
echo "<li><a href=\"$f\">$f</a>"
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
[ -f $f ] || continue
|
|
|
|
echo "<li><a href=\"$f\">$f</a>"
|
|
|
|
done
|
|
|
|
echo "</li></body></html>"
|
|
|
|
} >index.html
|
|
|
|
/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
|
2008-07-09 02:37:08 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
2007-01-10 18:04:39 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -fr ${RPM_BUILD_ROOT}
|
|
|
|
|
2008-07-09 02:37:08 +02:00
|
|
|
%post -n libyaz -p /sbin/ldconfig
|
2007-01-10 18:04:39 +01:00
|
|
|
|
2008-07-09 02:37:08 +02:00
|
|
|
%postun -n libyaz -p /sbin/ldconfig
|
2007-01-10 18:04:39 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-06-11 13:08:39 +02:00
|
|
|
%{_bindir}/yaz-illclient
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_bindir}/yaz-client*
|
|
|
|
%{_bindir}/yaz-ztest*
|
|
|
|
%{_bindir}/yaz-iconv
|
2007-11-20 10:50:20 +01:00
|
|
|
%{_bindir}/yaz-icu
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_bindir}/yaz-marcdump
|
|
|
|
%{_bindir}/zoomsh
|
2010-08-27 15:28:10 +02:00
|
|
|
%{_bindir}/yaz-json-parse
|
2008-07-09 02:37:08 +02:00
|
|
|
# #%%ifarch %ix86 ia64 s390 ppc hppa
|
|
|
|
# %{_bindir}/ziffy
|
|
|
|
# #%%endif
|
2007-06-11 13:08:39 +02:00
|
|
|
%{_mandir}/*/yaz-illclient.*
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_mandir}/*/yaz-client.*
|
2008-07-09 02:37:08 +02:00
|
|
|
# %{_mandir}/*/ziffy.*
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_mandir}/*/zoomsh.*
|
|
|
|
%{_mandir}/*/yaz-ztest.*
|
|
|
|
%{_mandir}/*/yaz-iconv.*
|
2007-11-20 10:50:20 +01:00
|
|
|
%{_mandir}/*/yaz-icu.*
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_mandir}/*/yaz-log.*
|
|
|
|
%{_mandir}/*/yaz-marcdump.*
|
2010-08-27 15:28:10 +02:00
|
|
|
%{_mandir}/*/yaz-json-parse.*
|
2009-03-05 17:03:45 +01:00
|
|
|
%{_mandir}/*/bib1-attr.*
|
2007-01-10 18:04:39 +01:00
|
|
|
|
|
|
|
%files -n libyaz
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{DOCFILES}
|
|
|
|
%doc index.html html
|
|
|
|
# %doc doc/yaz.pdf
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
%{_mandir}/*/yaz.*
|
|
|
|
%dir %{_datadir}/yaz
|
|
|
|
%{_datadir}/yaz/etc
|
|
|
|
|
|
|
|
%files -n libyaz-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/yaz-config
|
|
|
|
%{_bindir}/yaz-asncomp
|
|
|
|
%{_includedir}/yaz
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_datadir}/yaz/z39.50
|
|
|
|
%{_datadir}/yaz/ill
|
|
|
|
%{_datadir}/aclocal/yaz.m4
|
|
|
|
%{_mandir}/man8/yaz-config.*
|
|
|
|
%{_mandir}/man1/yaz-asncomp.*
|
2007-05-10 23:33:57 +02:00
|
|
|
%{_libdir}/pkgconfig/yaz.pc
|
2008-07-09 02:37:08 +02:00
|
|
|
|
2007-05-10 23:33:57 +02:00
|
|
|
%changelog
|