1 # This file is part of the YAZ toolkit
2 # Copyright (C) 1995-2011 Index Data
7 Summary: Z39.50 Programs
12 %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
13 %define is_suse %(test -e /etc/SuSE-release >/dev/null && echo 1 || echo 0)
14 %define is_suse11 %(grep 'VERSION = 11' /etc/SuSE-release >/dev/null 2>&1 && echo 1 || echo 0)
15 %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
16 Requires: libxslt, gnutls, readline, libyaz4 = %{version}
18 Group: Applications/Internet
19 Vendor: Index Data ApS <info@indexdata.dk>
20 Source: yaz-%{version}.tar.gz
21 BuildRoot: %{_tmppath}/%{name}-%{version}-root
24 %define TCPWRAPPER tcp_wrappers
27 %define TCPWRAPPER tcp_wrappers-devel
31 %define TCPWRAPPER tcpd-devel
34 BuildRequires: %{TCPWRAPPER}
37 BuildRequires: libgnutls-devel
39 BuildRequires: gnutls-devel
42 BuildRequires: pkgconfig
43 BuildRequires: libxml2-devel
44 BuildRequires: libxslt-devel
45 BuildRequires: readline-devel
46 BuildRequires: libicu-devel
47 Packager: Adam Dickmeiss <adam@indexdata.dk>
48 URL: http://www.indexdata.com/yaz
51 This package contains both a test-server and clients (normal & ssl)
52 for the ANSI/NISO Z39.50 protocol for Information Retrieval.
55 Summary: Z39.50 Library
57 Requires: libxslt, gnutls, libicu
59 %description -n libyaz4
60 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
63 %post -n libyaz4 -p /sbin/ldconfig
64 %postun -n libyaz4 -p /sbin/ldconfig
66 %package -n libyaz4-devel
67 Summary: Z39.50 Library - development package
68 Group: Development/Libraries
69 Requires: libyaz4 = %{version}, libxml2-devel, libxslt-devel, libicu-devel
70 Conflicts: libyaz-devel
72 %description -n libyaz4-devel
73 Development libraries and includes for the libyaz package.
75 %package -n yaz-illclient
77 Group: Applications/Communication
78 Requires: readline, libyaz4 = %{version}
80 %description -n yaz-illclient
81 yaz-illclient: an ISO ILL client.
84 Summary: Command line utility for ICU utilities of YAZ
85 Group: Applications/Communication
86 Requires: libyaz4 = %{version}
88 %description -n yaz-icu
89 The yaz-icu program is a command-line based client which exposes the ICU
90 chain facility of YAZ.
97 CFLAGS="$RPM_OPT_FLAGS" \
98 ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
99 --enable-shared --enable-tcpd --with-xslt --with-gnutls --with-icu
100 make CFLAGS="$RPM_OPT_FLAGS"
103 rm -fr ${RPM_BUILD_ROOT}
104 make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \
105 libdir=${RPM_BUILD_ROOT}/%{_libdir} install
106 rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
109 rm -fr ${RPM_BUILD_ROOT}
112 %defattr(-,root,root)
113 %doc README LICENSE NEWS
114 %{_bindir}/yaz-client
117 %{_bindir}/yaz-marcdump
119 %{_bindir}/yaz-json-parse
120 %{_mandir}/man1/yaz-client.*
121 %{_mandir}/man1/yaz-json-parse.*
122 %{_mandir}/man8/yaz-ztest.*
123 %{_mandir}/man1/zoomsh.*
124 %{_mandir}/man1/yaz-marcdump.*
125 %{_mandir}/man1/yaz-iconv.*
126 %{_mandir}/man7/yaz-log.*
127 %{_mandir}/man7/bib1-attr.*
130 %defattr(-,root,root)
133 %files -n libyaz4-devel
134 %defattr(-,root,root)
135 %{_bindir}/yaz-config
136 %{_bindir}/yaz-asncomp
138 %{_libdir}/pkgconfig/yaz.pc
141 %{_datadir}/aclocal/yaz.m4
142 %{_mandir}/man1/yaz-asncomp.*
143 %{_mandir}/man7/yaz.*
144 %{_mandir}/man?/yaz-config.*
148 %files -n yaz-illclient
149 %defattr(-,root,root)
150 %{_bindir}/yaz-illclient
151 %{_mandir}/man1/yaz-illclient.*
154 %defattr(-,root,root)
156 %{_mandir}/man1/yaz-icu.*