Make configure produce error if --with-pcap=yes or --with-pcap is given
[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-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 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 %package -n yaz-illclient
49 Summary:  ILL client
50 Group: Applications/Communication
51 Requires: readline libyaz3 = %{version}
52
53 %description -n yaz-illclient
54 yaz-illclient: an ISO ILL client.
55
56 %prep
57 %setup
58
59 %build
60
61 CFLAGS="$RPM_OPT_FLAGS" \
62  ./configure --prefix=/usr --enable-shared --enable-tcpd --with-xslt --with-openssl --with-pcap
63 make CFLAGS="$RPM_OPT_FLAGS"
64
65 %install
66 rm -fr ${RPM_BUILD_ROOT}
67 make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/usr/share/man install
68
69 %clean
70 rm -fr ${RPM_BUILD_ROOT}
71
72 %files
73 %defattr(-,root,root)
74 %doc README LICENSE NEWS TODO
75 /usr/bin/yaz-client
76 /usr/bin/yaz-ztest
77 /usr/bin/zoomsh*
78 /usr/bin/yaz-marcdump
79 /usr/bin/yaz-iconv
80 /usr/share/man/man1/yaz-client.*
81 /usr/share/man/man8/yaz-ztest.*
82 /usr/share/man/man1/zoomsh.*
83 /usr/share/man/man1/yaz-marcdump.*
84 /usr/share/man/man1/yaz-iconv.*
85 /usr/share/man/man7/yaz-log.*
86
87 %files -n libyaz3
88 /usr/lib/*.so.*
89
90 %files -n libyaz3-devel
91 /usr/bin/yaz-config
92 /usr/bin/yaz-asncomp
93 /usr/include/yaz
94 /usr/lib/pkgconfig/yaz.pc
95 /usr/lib/*.so
96 /usr/lib/*.a
97 /usr/lib/*.la
98 /usr/share/aclocal/yaz.m4
99 /usr/share/man/man1/yaz-asncomp.*
100 /usr/share/man/man7/yaz.*
101 /usr/share/man/man8/yaz-config.*
102 /usr/share/doc/yaz
103 /usr/share/yaz
104
105 %files -n yaz-ziffy
106 /usr/bin/ziffy
107 /usr/share/man/man1/ziffy.*
108
109 %files -n yaz-illclient
110 /usr/bin/yaz-illclient
111 /usr/share/man/man1/yaz-illclient.*