Add dependency
[yaz-moved-to-github.git] / yaz.spec.in
1 Summary: Z39.50 Programs
2 Name: yaz
3 Version: @VERSION@
4 Release: 2
5 Requires: libxml2 openssl 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 readline
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}
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/share/man/man1/yaz-client-ssl.*
59 /usr/share/man/man1/yaz-client.*
60 /usr/share/man/man1/zoomsh.*
61 /usr/share/man/man8/yaz-ztest-ssl.*
62 /usr/share/man/man8/yaz-ztest.*
63
64 %files -n lib%{name}
65 /usr/lib/*.so.*
66 /usr/share/doc/yaz
67 /usr/share/yaz/z39.50
68 /usr/share/yaz/ill
69 /usr/share/man/man7/yaz.*
70
71 %files -n lib%{name}-devel
72 /usr/bin/yaz-config
73 /usr/bin/yaz-comp
74 /usr/include/yaz
75 /usr/lib/*.so
76 /usr/lib/*.a
77 /usr/share/aclocal/yaz.m4
78 /usr/share/man/man1/yaz-config.*