1 # This file is part of the YAZ toolkit
2 # Copyright (C) Index Data
3 # See the file LICENSE for details.
7 %define idmetaversion %(. ./IDMETA; echo $VERSION)
9 Summary: Z39.50 Programs
10 Version: %{idmetaversion}
14 %define is_redhat5 %(grep 'release 5' /etc/redhat-release >/dev/null 2>&1 && echo 1 || echo 0)
15 %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
16 %define is_suse %(test -e /etc/SuSE-release >/dev/null && echo 1 || echo 0)
17 %define is_suse11 %(grep 'VERSION = 11' /etc/SuSE-release >/dev/null 2>&1 && echo 1 || echo 0)
18 %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
19 Requires: readline, libyaz5 = %{version}
21 Group: Applications/Internet
22 Vendor: Index Data ApS <info@indexdata.dk>
23 Source: yaz-%{version}.tar.gz
24 BuildRoot: %{_tmppath}/%{name}-%{version}-root
27 %define TCPWRAPPER tcp_wrappers-devel
30 %define TCPWRAPPER tcp_wrappers
34 %define TCPWRAPPER tcpd-devel
37 BuildRequires: %{TCPWRAPPER}
40 BuildRequires: libgnutls-devel
42 BuildRequires: gnutls-devel
45 BuildRequires: pkgconfig
46 BuildRequires: libxml2-devel
47 BuildRequires: libxslt-devel
48 BuildRequires: readline-devel
49 BuildRequires: libicu-devel
53 BuildRequires: hiredis-devel
55 Packager: Adam Dickmeiss <adam@indexdata.dk>
56 URL: http://www.indexdata.com/yaz
59 This package contains both a test-server and clients (normal & ssl)
60 for the ANSI/NISO Z39.50 protocol for Information Retrieval.
63 Summary: Z39.50 Library
65 Requires: libxslt, gnutls, libicu
71 %description -n libyaz5
72 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
75 %post -n libyaz5 -p /sbin/ldconfig
76 %postun -n libyaz5 -p /sbin/ldconfig
78 %package -n libyaz5-devel
79 Summary: Z39.50 Library - development package
80 Group: Development/Libraries
81 Requires: libyaz5 = %{version}, libxml2-devel, libxslt-devel, libicu-devel
82 Conflicts: libyaz-devel, libyaz4-devel
84 %description -n libyaz5-devel
85 Development libraries and includes for the libyaz package.
87 %package -n yaz-illclient
89 Group: Applications/Communication
90 Requires: readline, libyaz5 = %{version}
92 %description -n yaz-illclient
93 yaz-illclient: an ISO ILL client.
96 Summary: Command line utility for ICU utilities of YAZ
97 Group: Applications/Communication
98 Requires: libyaz5 = %{version}
100 %description -n yaz-icu
101 The yaz-icu program is a command-line based client which exposes the ICU
102 chain facility of YAZ.
109 CFLAGS="$RPM_OPT_FLAGS" \
110 ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
111 --enable-shared --enable-tcpd --with-xslt --with-gnutls --with-icu \
113 make CFLAGS="$RPM_OPT_FLAGS"
116 rm -fr ${RPM_BUILD_ROOT}
117 make install DESTDIR=${RPM_BUILD_ROOT}
118 rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
121 rm -fr ${RPM_BUILD_ROOT}
124 %defattr(-,root,root)
125 %doc README LICENSE NEWS
126 %{_bindir}/yaz-client
129 %{_bindir}/yaz-marcdump
131 %{_bindir}/yaz-json-parse
133 %{_mandir}/man1/yaz-client.*
134 %{_mandir}/man1/yaz-json-parse.*
135 %{_mandir}/man1/yaz-url.*
136 %{_mandir}/man8/yaz-ztest.*
137 %{_mandir}/man1/zoomsh.*
138 %{_mandir}/man1/yaz-marcdump.*
139 %{_mandir}/man1/yaz-iconv.*
140 %{_mandir}/man7/yaz-log.*
141 %{_mandir}/man7/bib1-attr.*
144 %defattr(-,root,root)
147 %files -n libyaz5-devel
148 %defattr(-,root,root)
149 %{_bindir}/yaz-config
150 %{_bindir}/yaz-asncomp
152 %{_libdir}/pkgconfig/yaz.pc
155 %{_datadir}/aclocal/yaz.m4
156 %{_mandir}/man1/yaz-asncomp.*
157 %{_mandir}/man7/yaz.*
158 %{_mandir}/man?/yaz-config.*
162 %files -n yaz-illclient
163 %defattr(-,root,root)
164 %{_bindir}/yaz-illclient
165 %{_mandir}/man1/yaz-illclient.*
168 %defattr(-,root,root)
170 %{_mandir}/man1/yaz-icu.*