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