4 Requires: lib%{name}-modules = %{version}
6 Group: Applications/Databases
7 Vendor: Index Data ApS <info@indexdata.dk>
8 Source: idzebra-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/idzebra-%{version}-root
10 Packager: Adam Dickmeiss <adam@indexdata.dk>
11 URL: http://www.indexdata.dk/zebra/
12 BuildRequires: libyaz3-devel expat-devel bzip2-devel tcl
13 Summary: High-performance, structured text indexing and retrival engine.
16 Zebra is a high-performance, general-purpose structured text indexing
17 and retrieval engine. It reads structured records in a variety of input
18 formats (eg. email, XML, MARC) and allows access to them through exact
19 boolean search expressions and relevance-ranked free-text queries.
21 %package -n lib%{name}
22 Summary: Zebra libraries
24 Requires: libyaz3 bzip2-libs
25 %description -n lib%{name}
26 Libraries for the Zebra search engine.
28 %package -n lib%{name}-modules
29 Summary: Zebra modules
31 Requires: lib%{name} = %{version} expat tcl
32 %description -n lib%{name}-modules
33 Modules for the Zebra search engine.
35 %package -n lib%{name}-devel
36 Summary: Zebra development libraries
37 Group: Development/Libraries
38 Requires: lib%{name} = %{version} libyaz3-devel bzip2-devel
39 %description -n lib%{name}-devel
40 Development libraries for the Zebra search engine.
43 %setup -n idzebra-%{version}
47 CFLAGS="$RPM_OPT_FLAGS" \
48 ./configure --prefix=/usr --enable-shared --with-yaz=/usr/bin
49 make CFLAGS="$RPM_OPT_FLAGS"
52 rm -fr ${RPM_BUILD_ROOT}
53 make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/usr/share/man install
54 rm ${RPM_BUILD_ROOT}/usr/bin/zebraidx
55 rm ${RPM_BUILD_ROOT}/usr/share/man/man1/zebraidx.*
56 rm ${RPM_BUILD_ROOT}/usr/bin/zebrasrv
57 rm ${RPM_BUILD_ROOT}/usr/share/man/man8/zebrasrv.*
58 rm ${RPM_BUILD_ROOT}/usr/share/man/man1/idzebra-config.*
61 rm -fr ${RPM_BUILD_ROOT}
65 %doc README LICENSE.zebra NEWS
66 %config /usr/share/idzebra-2.0/tab
69 /usr/share/doc/idzebra-2.0
70 /usr/share/man/*/zebraidx-*
71 /usr/share/man/*/zebrasrv-*
76 %files -n lib%{name}-modules
77 /usr/lib/idzebra-2.0/modules/*
79 %files -n lib%{name}-devel
80 /usr/bin/idzebra-config-*
81 /usr/include/idzebra-2.0/*
85 /usr/share/man/*/idzebra-config-*
86 /usr/share/aclocal/*.m4