2007-01-10 18:04:39 +01:00
|
|
|
#
|
2011-06-20 11:02:16 +02:00
|
|
|
# spec file for package yaz
|
2007-01-10 18:04:39 +01:00
|
|
|
#
|
2012-06-21 15:04:35 +02:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
Name: yaz
|
2012-06-21 15:04:35 +02:00
|
|
|
Version: 4.2.33
|
|
|
|
Release: 0
|
2011-08-05 14:20:59 +02:00
|
|
|
Summary: Z39.50/SRW/SRU Programs
|
2012-06-21 15:04:35 +02:00
|
|
|
License: BSD-3-Clause
|
2007-01-10 18:04:39 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-06-21 15:04:35 +02:00
|
|
|
Url: http://www.indexdata.dk/yaz/
|
2011-09-11 12:59:57 +02:00
|
|
|
Source: http://ftp.indexdata.dk/pub/yaz/%{name}-%{version}.tar.bz2
|
2011-09-17 12:03:12 +02:00
|
|
|
Source2: baselibs.conf
|
2011-04-06 12:52:29 +02:00
|
|
|
Patch0: yaz-4.1.7-codecleanup.diff
|
|
|
|
Patch1: yaz-4.1.7-client.diff
|
2011-08-05 14:20:59 +02:00
|
|
|
BuildRequires: libicu-devel
|
|
|
|
BuildRequires: libpcap-devel
|
2011-09-11 12:59:57 +02:00
|
|
|
BuildRequires: libxml2-devel
|
2012-06-21 15:04:35 +02:00
|
|
|
BuildRequires: libxslt-devel
|
2011-08-05 14:20:59 +02:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: tcpd-devel
|
2007-01-10 18:04:39 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-09-11 12:59:57 +02:00
|
|
|
%define libname libyaz4
|
2007-01-10 18:04:39 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2011-09-11 12:59:57 +02:00
|
|
|
%package -n %{libname}
|
2011-09-12 10:39:40 +02:00
|
|
|
|
2007-01-10 18:04:39 +01:00
|
|
|
Summary: Z39.50 Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-09-11 12:59:57 +02:00
|
|
|
Provides: libyaz = %{version}-%{release}
|
|
|
|
Obsoletes: libyaz < %{version}
|
2007-01-10 18:04:39 +01:00
|
|
|
|
2011-09-11 12:59:57 +02:00
|
|
|
%description -n %{libname}
|
2007-01-10 18:04:39 +01:00
|
|
|
YAZ is a C library for developing client - and server applications
|
|
|
|
using the ANSI/NISO Z39.50 protocol for Information Retrieval.
|
|
|
|
|
|
|
|
%package -n libyaz-devel
|
|
|
|
Summary: Z39.50 Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-08-05 14:20:59 +02:00
|
|
|
Requires: libicu-devel
|
2011-09-11 12:59:57 +02:00
|
|
|
Requires: openssl-devel
|
2011-08-05 14:20:59 +02:00
|
|
|
Requires: libxslt-devel
|
2011-09-11 12:59:57 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: %{libname} = %{version}
|
2011-08-05 14:20:59 +02:00
|
|
|
Requires: tcpd-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.
|
|
|
|
|
|
|
|
%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-01-25 18:25:37 +01:00
|
|
|
%configure --enable-shared \
|
|
|
|
--enable-tcpd \
|
|
|
|
--with-xslt \
|
2009-01-19 02:21:50 +01:00
|
|
|
--with-openssl \
|
2011-09-11 12:59:57 +02:00
|
|
|
--with-icu \
|
2009-01-19 02:21:50 +01:00
|
|
|
--disable-static \
|
|
|
|
--with-pic
|
2011-08-05 14:20:59 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-10 18:04:39 +01:00
|
|
|
|
|
|
|
%install
|
2007-01-25 18:25:37 +01:00
|
|
|
%{makeinstall}
|
2007-01-10 18:04:39 +01:00
|
|
|
# Unwanted doc stuff
|
2011-08-05 14:20:59 +02:00
|
|
|
rm -fr %{buildroot}%{_datadir}/doc
|
2007-01-10 18:04:39 +01:00
|
|
|
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
|
2011-08-05 14:20:59 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
2007-01-10 18:04:39 +01:00
|
|
|
|
2011-09-11 12:59:57 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2007-01-10 18:04:39 +01:00
|
|
|
|
2011-09-11 12:59:57 +02:00
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2007-01-10 18:04:39 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-09-11 12:59:57 +02:00
|
|
|
%doc %{DOCFILES} ChangeLog
|
|
|
|
%doc index.html html
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_bindir}/yaz-client*
|
|
|
|
%{_bindir}/yaz-iconv
|
2007-11-20 10:50:20 +01:00
|
|
|
%{_bindir}/yaz-icu
|
2011-09-11 12:59:57 +02:00
|
|
|
%{_bindir}/yaz-illclient
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_bindir}/yaz-marcdump
|
2011-09-11 12:59:57 +02:00
|
|
|
%{_bindir}/yaz-url
|
|
|
|
%{_bindir}/yaz-ztest*
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_bindir}/zoomsh
|
2010-08-27 15:28:10 +02:00
|
|
|
%{_bindir}/yaz-json-parse
|
2011-09-11 12:59:57 +02:00
|
|
|
%{_mandir}/*/yaz.*
|
2007-06-11 13:08:39 +02:00
|
|
|
%{_mandir}/*/yaz-illclient.*
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_mandir}/*/yaz-client.*
|
|
|
|
%{_mandir}/*/zoomsh.*
|
|
|
|
%{_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.*
|
2011-09-11 12:59:57 +02:00
|
|
|
%{_mandir}/*/yaz-url.*
|
|
|
|
%{_mandir}/*/yaz-ztest.*
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_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.*
|
2011-09-11 12:59:57 +02:00
|
|
|
%dir %{_datadir}/yaz
|
|
|
|
%{_datadir}/yaz/etc
|
2007-01-10 18:04:39 +01:00
|
|
|
|
2011-09-11 12:59:57 +02:00
|
|
|
%files -n %{libname}
|
2007-01-10 18:04:39 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%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
|
2011-04-06 12:52:29 +02:00
|
|
|
%{_mandir}/man1/yaz-config.*
|
2007-01-10 18:04:39 +01:00
|
|
|
%{_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
|