Omit definitions of xmlNode and xmlDocPtr if YAZ_HAVE_XML2 is unset.
[yaz-moved-to-github.git] / yaz.spec.in
1 Summary: Z39.50 Programs
2 Name: yaz
3 Version: @VERSION@
4 Release: 1
5 Requires: libxslt gnutls readline libyaz3 = %{version}
6 License: BSD
7 Group: Applications/Internet
8 Vendor: Index Data ApS <info@indexdata.dk>
9 Source: yaz-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
11 BuildRequires: libxml2-devel libxslt-devel tcp_wrappers gnutls-devel readline-devel libicu-devel
12 Packager: Adam Dickmeiss <adam@indexdata.dk>
13 URL: http://www.indexdata.dk/yaz/
14
15 %description
16 This package contains both a test-server and clients (normal & ssl)
17 for the ANSI/NISO Z39.50 protocol for Information Retrieval.
18
19 %package -n libyaz3
20 Summary: Z39.50 Library
21 Group: Libraries
22 Requires: libxslt gnutls libicu
23
24 %description -n libyaz3
25 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
26 Retrieval.
27
28 %package -n libyaz3-devel
29 Summary: Z39.50 Library - development package
30 Group: Development/Libraries
31 Requires: libyaz3 = %{version} libxml2-devel libxslt-devel
32 Conflicts: libyaz-devel
33
34 %description -n libyaz3-devel
35 Development libraries and includes for the libyaz package.
36
37 %package -n yaz-illclient
38 Summary: ILL client
39 Group: Applications/Communication
40 Requires: readline libyaz3 = %{version}
41
42 %description -n yaz-illclient
43 yaz-illclient: an ISO ILL client.
44
45 %package -n yaz-icu
46 Summary: Command line utility for ICU utilities of YAZ
47 Group: Applications/Communication
48 Requires: libyaz3 = %{version}
49
50 %description -n yaz-icu
51 The yaz-icu program is a command-line based client which exposes the ICU
52 chain facility of YAZ.
53
54 %prep
55 %setup
56
57 %build
58
59 CFLAGS="$RPM_OPT_FLAGS" \
60  ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
61         --enable-shared --enable-tcpd --with-xslt --with-gnutls --with-icu
62 make CFLAGS="$RPM_OPT_FLAGS"
63
64 %install
65 rm -fr ${RPM_BUILD_ROOT}
66 make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \
67         libdir=${RPM_BUILD_ROOT}/%{_libdir} install
68
69 %clean
70 rm -fr ${RPM_BUILD_ROOT}
71
72 %files
73 %defattr(-,root,root)
74 %doc README LICENSE NEWS TODO
75 %{_bindir}/yaz-client
76 %{_bindir}/yaz-ztest
77 %{_bindir}/zoomsh
78 %{_bindir}/yaz-marcdump
79 %{_bindir}/yaz-iconv
80 %{_mandir}/man1/yaz-client.*
81 %{_mandir}/man8/yaz-ztest.*
82 %{_mandir}/man1/zoomsh.*
83 %{_mandir}/man1/yaz-marcdump.*
84 %{_mandir}/man1/yaz-iconv.*
85 %{_mandir}/man7/yaz-log.*
86
87 %files -n libyaz3
88 %defattr(-,root,root)
89 %{_libdir}/*.so.*
90
91 %files -n libyaz3-devel
92 %defattr(-,root,root)
93 %{_bindir}/yaz-config
94 %{_bindir}/yaz-asncomp
95 %{_includedir}/yaz
96 %{_libdir}/pkgconfig/yaz.pc
97 %{_libdir}/*.so
98 %{_libdir}/*.a
99 %{_libdir}/*.la
100 %{_datadir}/aclocal/yaz.m4
101 %{_mandir}/man1/yaz-asncomp.*
102 %{_mandir}/man7/yaz.*
103 %{_mandir}/man8/yaz-config.*
104 %{_datadir}/doc/yaz
105 %{_datadir}/yaz
106
107 %files -n yaz-illclient
108 %defattr(-,root,root)
109 %{_bindir}/yaz-illclient
110 %{_mandir}/man1/yaz-illclient.*
111
112 %files -n yaz-icu
113 %defattr(-,root,root)
114 %{_bindir}/yaz-icu
115 %{_mandir}/man1/yaz-icu.*