# # spec file for package yaz # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: yaz Version: 4.2.38 Release: 0 Summary: Z39.50/SRW/SRU Programs License: BSD-3-Clause Group: Development/Libraries/C and C++ Url: http://www.indexdata.dk/yaz/ Source: http://ftp.indexdata.dk/pub/yaz/%{name}-%{version}.tar.bz2 Source2: baselibs.conf Patch0: yaz-4.1.7-codecleanup.diff Patch1: yaz-4.1.7-client.diff BuildRequires: libicu-devel BuildRequires: libpcap-devel BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRequires: openssl-devel BuildRequires: pkg-config BuildRequires: readline-devel BuildRequires: tcpd-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %define libname libyaz4 %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. %package -n %{libname} Summary: Z39.50 Library Group: Development/Libraries/C and C++ Provides: libyaz = %{version}-%{release} Obsoletes: libyaz < %{version} %description -n %{libname} 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++ Requires: %{libname} = %{version} Requires: %{name} = %{version} Requires: libicu-devel Requires: libxslt-devel Requires: openssl-devel Requires: tcpd-devel %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 %configure --enable-shared \ --enable-tcpd \ --with-xslt \ --with-openssl \ --with-icu \ --disable-static \ --with-pic make %{?_smp_mflags} %install %{makeinstall} # Unwanted doc stuff rm -fr %{buildroot}%{_datadir}/doc rm -fr html mkdir html cp -a doc/*.html html # cp doc/*pdf . ln -sf introduction.html html/index.html # yaz.pdf %define DOCFILES README LICENSE NEWS { echo "%{name} documentation directory" echo "