1 # This file is part of the YAZ toolkit
2 # Copyright (C) 1995-2013 Index Data
6 %define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n')
8 Summary: Z39.50 Programs
9 Version: %{idmetaversion}
13 %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
14 %define is_suse %(test -e /etc/SuSE-release >/dev/null && echo 1 || echo 0)
15 %define is_suse11 %(grep 'VERSION = 11' /etc/SuSE-release >/dev/null 2>&1 && echo 1 || echo 0)
16 %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
17 Requires: libxslt, gnutls, readline, libyaz5 = %{version}
19 Group: Applications/Internet
20 Vendor: Index Data ApS <info@indexdata.dk>
21 Source: yaz-%{version}.tar.gz
22 BuildRoot: %{_tmppath}/%{name}-%{version}-root
25 %define TCPWRAPPER tcp_wrappers
28 %define TCPWRAPPER tcp_wrappers-devel
32 %define TCPWRAPPER tcpd-devel
35 BuildRequires: %{TCPWRAPPER}
38 BuildRequires: libgnutls-devel
40 BuildRequires: gnutls-devel
43 BuildRequires: pkgconfig
44 BuildRequires: libxml2-devel
45 BuildRequires: libxslt-devel
46 BuildRequires: readline-devel
47 BuildRequires: libicu-devel
48 Packager: Adam Dickmeiss <adam@indexdata.dk>
49 URL: http://www.indexdata.com/yaz
52 This package contains both a test-server and clients (normal & ssl)
53 for the ANSI/NISO Z39.50 protocol for Information Retrieval.
56 Summary: Z39.50 Library
58 Requires: libxslt, gnutls, libicu
60 %description -n libyaz5
61 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
64 %post -n libyaz5 -p /sbin/ldconfig
65 %postun -n libyaz5 -p /sbin/ldconfig
67 %package -n libyaz5-devel
68 Summary: Z39.50 Library - development package
69 Group: Development/Libraries
70 Requires: libyaz5 = %{version}, libxml2-devel, libxslt-devel, libicu-devel
71 Conflicts: libyaz-devel, libyaz4-devel
73 %description -n libyaz5-devel
74 Development libraries and includes for the libyaz package.
76 %package -n yaz-illclient
78 Group: Applications/Communication
79 Requires: readline, libyaz5 = %{version}
81 %description -n yaz-illclient
82 yaz-illclient: an ISO ILL client.
85 Summary: Command line utility for ICU utilities of YAZ
86 Group: Applications/Communication
87 Requires: libyaz5 = %{version}
89 %description -n yaz-icu
90 The yaz-icu program is a command-line based client which exposes the ICU
91 chain facility of YAZ.
98 CFLAGS="$RPM_OPT_FLAGS" \
99 ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
100 --enable-shared --enable-tcpd --with-xslt --with-gnutls --with-icu
101 make CFLAGS="$RPM_OPT_FLAGS"
104 rm -fr ${RPM_BUILD_ROOT}
105 make install DESTDIR=${RPM_BUILD_ROOT}
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
121 %{_mandir}/man1/yaz-client.*
122 %{_mandir}/man1/yaz-json-parse.*
123 %{_mandir}/man1/yaz-url.*
124 %{_mandir}/man8/yaz-ztest.*
125 %{_mandir}/man1/zoomsh.*
126 %{_mandir}/man1/yaz-marcdump.*
127 %{_mandir}/man1/yaz-iconv.*
128 %{_mandir}/man7/yaz-log.*
129 %{_mandir}/man7/bib1-attr.*
132 %defattr(-,root,root)
135 %files -n libyaz5-devel
136 %defattr(-,root,root)
137 %{_bindir}/yaz-config
138 %{_bindir}/yaz-asncomp
140 %{_libdir}/pkgconfig/yaz.pc
143 %{_datadir}/aclocal/yaz.m4
144 %{_mandir}/man1/yaz-asncomp.*
145 %{_mandir}/man7/yaz.*
146 %{_mandir}/man?/yaz-config.*
150 %files -n yaz-illclient
151 %defattr(-,root,root)
152 %{_bindir}/yaz-illclient
153 %{_mandir}/man1/yaz-illclient.*
156 %defattr(-,root,root)
158 %{_mandir}/man1/yaz-icu.*