Fix bug #2770 - avoid length limit for auth parameters.
[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 gnutls 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 %define TCPWRAPPER tcpd-devel
12 %if "%{_vendor}" == "redhat"
13 %define TCPWRAPPER tcp_wrappers-devel
14 %endif
15 BuildRequires: pkgconfig libxml2-devel libxslt-devel gnutls-devel readline-devel libicu-devel %{TCPWRAPPER}
16 Packager: Adam Dickmeiss <adam@indexdata.dk>
17 URL: http://www.indexdata.dk/yaz/
18
19 %description
20 This package contains both a test-server and clients (normal & ssl)
21 for the ANSI/NISO Z39.50 protocol for Information Retrieval.
22
23 %package -n libyaz3
24 Summary: Z39.50 Library
25 Group: Libraries
26 Requires: libxslt gnutls libicu
27
28 %description -n libyaz3
29 YAZ is a library for the ANSI/NISO Z39.50 protocol for Information
30 Retrieval.
31
32 %package -n libyaz3-devel
33 Summary: Z39.50 Library - development package
34 Group: Development/Libraries
35 Requires: libyaz3 = %{version} libxml2-devel libxslt-devel libicu-devel gnutls-devel %{TCPWRAPPER}
36 Conflicts: libyaz-devel
37
38 %description -n libyaz3-devel
39 Development libraries and includes for the libyaz package.
40
41 %package -n yaz-illclient
42 Summary: ILL client
43 Group: Applications/Communication
44 Requires: readline libyaz3 = %{version}
45
46 %description -n yaz-illclient
47 yaz-illclient: an ISO ILL client.
48
49 %package -n yaz-icu
50 Summary: Command line utility for ICU utilities of YAZ
51 Group: Applications/Communication
52 Requires: libyaz3 = %{version}
53
54 %description -n yaz-icu
55 The yaz-icu program is a command-line based client which exposes the ICU
56 chain facility of YAZ.
57
58 %prep
59 %setup
60
61 %build
62
63 CFLAGS="$RPM_OPT_FLAGS" \
64  ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} \
65         --enable-shared --enable-tcpd --with-xslt --with-gnutls --with-icu
66 make CFLAGS="$RPM_OPT_FLAGS"
67
68 %install
69 rm -fr ${RPM_BUILD_ROOT}
70 make prefix=${RPM_BUILD_ROOT}/%{_prefix} mandir=${RPM_BUILD_ROOT}/%{_mandir} \
71         libdir=${RPM_BUILD_ROOT}/%{_libdir} install
72
73 %clean
74 rm -fr ${RPM_BUILD_ROOT}
75
76 %files
77 %defattr(-,root,root)
78 %doc README LICENSE NEWS
79 %{_bindir}/yaz-client
80 %{_bindir}/yaz-ztest
81 %{_bindir}/zoomsh
82 %{_bindir}/yaz-marcdump
83 %{_bindir}/yaz-iconv
84 %{_mandir}/man1/yaz-client.*
85 %{_mandir}/man8/yaz-ztest.*
86 %{_mandir}/man1/zoomsh.*
87 %{_mandir}/man1/yaz-marcdump.*
88 %{_mandir}/man1/yaz-iconv.*
89 %{_mandir}/man7/yaz-log.*
90 %{_mandir}/man7/bib1-attr.*
91
92 %files -n libyaz3
93 %defattr(-,root,root)
94 %{_libdir}/*.so.*
95
96 %files -n libyaz3-devel
97 %defattr(-,root,root)
98 %{_bindir}/yaz-config
99 %{_bindir}/yaz-asncomp
100 %{_includedir}/yaz
101 %{_libdir}/pkgconfig/yaz.pc
102 %{_libdir}/*.so
103 %{_libdir}/*.a
104 %{_libdir}/*.la
105 %{_datadir}/aclocal/yaz.m4
106 %{_mandir}/man1/yaz-asncomp.*
107 %{_mandir}/man7/yaz.*
108 %{_mandir}/man8/yaz-config.*
109 %{_datadir}/doc/yaz
110 %{_datadir}/yaz
111
112 %files -n yaz-illclient
113 %defattr(-,root,root)
114 %{_bindir}/yaz-illclient
115 %{_mandir}/man1/yaz-illclient.*
116
117 %files -n yaz-icu
118 %defattr(-,root,root)
119 %{_bindir}/yaz-icu
120 %{_mandir}/man1/yaz-icu.*