Added function yaz_oid_add which adds custom OID entry to database.
[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 openssl readline libyaz = %{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 openssl-devel readline-devel libpcap
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: libxslt 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 libxslt-devel
32
33 %description -n lib%{name}-devel
34 Development libraries and includes for the libyaz package.
35
36 %package -n yaz-ziffy
37 Summary:  ziffy: the promiscuous Z39.50 APDU sniffer
38 Group: Applications/Communication
39 Requires: libxslt openssl libpcap libyaz = %{version}
40
41 %description -n yaz-ziffy
42 ziffy is a promiscuous Z39.50 APDU sniffer, like the popular tcpdump.
43 ziffy can capture and show all Z39.50 traffic on your LAN segment.
44 This packages is a special port of ziffy ported to YAZ. Note that ziffy
45 is licensed under the GPL and was is by Rocco Carbone <rocco@ntop.org>.
46
47 %prep
48 %setup
49
50 %build
51
52 CFLAGS="$RPM_OPT_FLAGS" \
53  ./configure --prefix=/usr --enable-shared --enable-tcpd --with-xslt --with-openssl
54 make CFLAGS="$RPM_OPT_FLAGS"
55
56 %install
57 rm -fr ${RPM_BUILD_ROOT}
58 make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/usr/share/man install
59
60 %clean
61 rm -fr ${RPM_BUILD_ROOT}
62
63 %files
64 %defattr(-,root,root)
65 %doc README LICENSE NEWS TODO
66 /usr/bin/yaz-client
67 /usr/bin/yaz-ztest
68 /usr/bin/zoomsh*
69 /usr/bin/yaz-marcdump
70 /usr/bin/yaz-iconv
71 /usr/share/man/man1/yaz-client.*
72 /usr/share/man/man8/yaz-ztest.*
73 /usr/share/man/man1/zoomsh.*
74 /usr/share/man/man1/yaz-marcdump.*
75 /usr/share/man/man1/yaz-iconv.*
76 /usr/share/man/man7/yaz-log.*
77
78 %files -n lib%{name}
79 /usr/lib/*.so.*
80
81 %files -n lib%{name}-devel
82 /usr/bin/yaz-config
83 /usr/bin/yaz-asncomp
84 /usr/include/yaz
85 /usr/lib/pkgconfig/yaz.pc
86 /usr/lib/*.so
87 /usr/lib/*.a
88 /usr/lib/*.la
89 /usr/share/aclocal/yaz.m4
90 /usr/share/man/man1/yaz-asncomp.*
91 /usr/share/man/man7/yaz.*
92 /usr/share/man/man8/yaz-config.*
93 /usr/share/doc/yaz
94 /usr/share/yaz
95
96 %files -n yaz-ziffy
97 /usr/bin/ziffy
98 /usr/share/man/man1/ziffy.*