Recognise yet ANOTHER location where docbookx.dtd may be found -- this
[yaz-moved-to-github.git] / yaz.spec.in
1 Summary: Z39.50 Programs
2 Name: yaz
3 Version: @VERSION@
4 Release: 1
5 Requires: libxml2 openssl readline libyaz = %{version}
6 Copyright: YAZ License
7 Group: Other
8 Vendor: Index Data ApS <info@indexdata.dk>
9 Source: yaz-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
11 BuildRequires: libxml2 libxml2-devel tcp_wrappers openssl-devel readline-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 lib%{name}
20 Summary: Z39.50 Library
21 Group: Libraries
22 Requires: libxml2 openssl
23
24 %description -n lib%{name}
25 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
26 Retrieval.
27
28 %package -n lib%{name}-devel
29 Summary: Z39.50 Library - development package
30 Group: Development/Libraries
31 Requires: libyaz = %{version} libxml2-devel
32
33 %description -n lib%{name}-devel
34 Development libraries and includes for the libyaz package.
35
36 %prep
37 %setup
38
39 %build
40
41 CFLAGS="$RPM_OPT_FLAGS" \
42  ./configure --prefix=/usr --enable-shared --enable-tcpd --with-xml2 --with-openssl
43 make CFLAGS="$RPM_OPT_FLAGS"
44
45 %install
46 rm -fr ${RPM_BUILD_ROOT}
47 make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/usr/share/man install
48
49 %clean
50 rm -fr ${RPM_BUILD_ROOT}
51
52 %files
53 %defattr(-,root,root)
54 %doc README LICENSE NEWS TODO
55 /usr/bin/yaz-client
56 /usr/bin/yaz-ztest
57 /usr/bin/zoomsh*
58 /usr/bin/yaz-marcdump
59 /usr/bin/yaz-iconv
60 /usr/share/man/man1/yaz-client.*
61 /usr/share/man/man8/yaz-ztest.*
62 /usr/share/man/man1/zoomsh.*
63 /usr/share/man/man1/yaz-marcdump.*
64 /usr/share/man/man1/yaz-iconv.*
65 /usr/share/man/man7/yaz-log.*
66
67 %files -n lib%{name}
68 /usr/lib/*.so.*
69 /usr/share/man/man7/yaz.*
70 /usr/share/yaz/etc
71
72 %files -n lib%{name}-devel
73 /usr/bin/yaz-config
74 /usr/bin/yaz-asncomp
75 /usr/include/yaz
76 /usr/lib/*.so
77 /usr/lib/*.a
78 /usr/lib/*.la
79 /usr/share/aclocal/yaz.m4
80 /usr/share/man/man1/yaz-asncomp.*
81 /usr/share/man/man8/yaz-config.*
82 /usr/share/doc/yaz
83 /usr/share/yaz/z39.50
84 /usr/share/yaz/ill
85