No longer depend/use libpcap.
[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 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-illclient
38 Summary:  ILL client
39 Group: Applications/Communication
40 Requires: readline libyaz3 = %{version}
41
42 %description -n yaz-illclient
43 yaz-illclient: an ISO ILL client.
44
45 %prep
46 %setup
47
48 %build
49
50 CFLAGS="$RPM_OPT_FLAGS" \
51  ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
52         --enable-shared --enable-tcpd --with-xslt --with-openssl --with-icu
53 make CFLAGS="$RPM_OPT_FLAGS"
54
55 %install
56 rm -fr ${RPM_BUILD_ROOT}
57 make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \
58         libdir=${RPM_BUILD_ROOT}/%{_libdir} install
59
60 %clean
61 rm -fr ${RPM_BUILD_ROOT}
62
63 %files
64 %defattr(-,root,root)
65 %doc README LICENSE NEWS TODO
66 %{_bindir}/yaz-client
67 %{_bindir}/yaz-ztest
68 %{_bindir}/zoomsh
69 %{_bindir}/yaz-marcdump
70 %{_bindir}/yaz-iconv
71 %{_bindir}/yaz-icu
72 %{_mandir}/man1/yaz-client.*
73 %{_mandir}/man8/yaz-ztest.*
74 %{_mandir}/man1/zoomsh.*
75 %{_mandir}/man1/yaz-marcdump.*
76 %{_mandir}/man1/yaz-iconv.*
77 %{_mandir}/man1/yaz-icu.*
78 %{_mandir}/man7/yaz-log.*
79
80 %files -n libyaz3
81 %defattr(-,root,root)
82 %{_libdir}/*.so.*
83
84 %files -n libyaz3-devel
85 %defattr(-,root,root)
86 %{_bindir}/yaz-config
87 %{_bindir}/yaz-asncomp
88 %{_includedir}/yaz
89 %{_libdir}/pkgconfig/yaz.pc
90 %{_libdir}/*.so
91 %{_libdir}/*.a
92 %{_libdir}/*.la
93 %{_datadir}/aclocal/yaz.m4
94 %{_mandir}/man1/yaz-asncomp.*
95 %{_mandir}/man7/yaz.*
96 %{_mandir}/man8/yaz-config.*
97 %{_datadir}/doc/yaz
98 %{_datadir}/yaz
99
100 %files -n yaz-illclient
101 %defattr(-,root,root)
102 %{_bindir}/yaz-illclient
103 %{_mandir}/man1/yaz-illclient.*