All changes to the CQL section:
[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-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 CHANGELOG 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-ssl.*
61 /usr/share/man/man1/yaz-client.*
62 /usr/share/man/man1/zoomsh.*
63 /usr/share/man/man1/yaz-marcdump.*
64 /usr/share/man/man1/yaz-iconv.*
65 /usr/share/man/man8/yaz-ztest-ssl.*
66 /usr/share/man/man8/yaz-ztest.*
67
68 %files -n lib%{name}
69 /usr/lib/*.so.*
70 /usr/share/man/man7/yaz.*
71 /usr/share/yaz/etc
72
73 %files -n lib%{name}-devel
74 /usr/bin/yaz-config
75 /usr/bin/yaz-asncomp
76 /usr/include/yaz
77 /usr/lib/*.so
78 /usr/lib/*.a
79 /usr/lib/*.la
80 /usr/share/aclocal/yaz.m4
81 /usr/share/man/man1/yaz-asncomp.*
82 /usr/share/man/man8/yaz-config.*
83 /usr/share/doc/yaz
84 /usr/share/yaz/z39.50
85 /usr/share/yaz/ill
86