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