Modular RPM Package
[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
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
32 %description -n lib%{name}-devel
33 Development libraries and includes for the libyaz package.
34
35 %prep
36 %setup
37
38 %build
39
40 CFLAGS="$RPM_OPT_FLAGS" \
41  ./configure --prefix=/usr --enable-shared --enable-tcpd --with-openssl
42 make CFLAGS="$RPM_OPT_FLAGS"
43
44 %install
45 rm -fr ${RPM_BUILD_ROOT}
46 make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/usr/share/man install
47
48 %clean
49 rm -fr ${RPM_BUILD_ROOT}
50
51 %files
52 %defattr(-,root,root)
53 %doc README LICENSE CHANGELOG TODO
54 /usr/bin/yaz-client*
55 /usr/bin/yaz-ztest*
56 /usr/bin/zoomsh*
57 /usr/share/man/man1/yaz-client-ssl.*
58 /usr/share/man/man1/yaz-client.*
59 /usr/share/man/man1/zoomsh.*
60 /usr/share/man/man8/yaz-ztest-ssl.*
61 /usr/share/man/man8/yaz-ztest.*
62
63 %files -n lib%{name}
64 /usr/lib/*.so.*
65 /usr/share/doc/yaz
66 /usr/share/yaz/z39.50
67 /usr/share/yaz/ill
68 /usr/share/man/man7/yaz.*
69
70 %files -n lib%{name}-devel
71 /usr/bin/yaz-config
72 /usr/bin/yaz-comp
73 /usr/include/yaz
74 /usr/lib/*.so
75 /usr/lib/*.a
76 /usr/share/aclocal/yaz.m4
77 /usr/share/man/man1/yaz-config.*