yaz-icu man page/program in yaz-icu package only.
[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 libicu-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=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
63         --enable-shared --enable-tcpd --with-xslt --with-openssl --with-pcap
64 make CFLAGS="$RPM_OPT_FLAGS"
65
66 %install
67 rm -fr ${RPM_BUILD_ROOT}
68 make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \
69         libdir=${RPM_BUILD_ROOT}/%{_libdir} install
70
71 %clean
72 rm -fr ${RPM_BUILD_ROOT}
73
74 %files
75 %defattr(-,root,root)
76 %doc README LICENSE NEWS TODO
77 %{_bindir}/yaz-client
78 %{_bindir}/yaz-ztest
79 %{_bindir}/zoomsh
80 %{_bindir}/yaz-marcdump
81 %{_bindir}/yaz-iconv
82 %{_bindir}/yaz-icu
83 %{_mandir}/man1/yaz-client.*
84 %{_mandir}/man8/yaz-ztest.*
85 %{_mandir}/man1/zoomsh.*
86 %{_mandir}/man1/yaz-marcdump.*
87 %{_mandir}/man1/yaz-iconv.*
88 %{_mandir}/man1/yaz-icu.*
89 %{_mandir}/man7/yaz-log.*
90
91 %files -n libyaz3
92 %defattr(-,root,root)
93 %{_libdir}/*.so.*
94
95 %files -n libyaz3-devel
96 %defattr(-,root,root)
97 %{_bindir}/yaz-config
98 %{_bindir}/yaz-asncomp
99 %{_includedir}/yaz
100 %{_libdir}/pkgconfig/yaz.pc
101 %{_libdir}/*.so
102 %{_libdir}/*.a
103 %{_libdir}/*.la
104 %{_datadir}/aclocal/yaz.m4
105 %{_mandir}/man1/yaz-asncomp.*
106 %{_mandir}/man7/yaz.*
107 %{_mandir}/man8/yaz-config.*
108 %{_datadir}/doc/yaz
109 %{_datadir}/yaz
110
111 %files -n yaz-ziffy
112 %defattr(-,root,root)
113 %{_bindir}/ziffy
114 %{_mandir}/man1/ziffy.*
115
116 %files -n yaz-illclient
117 %defattr(-,root,root)
118 %{_bindir}/yaz-illclient
119 %{_mandir}/man1/yaz-illclient.*