-Summary: Zebra - An Open Indexing Search Engine
-Name: zebra
-Version: 1.0pl1
+Name: idzebra
+Version: 1.3.3
Release: 1
-Copyright: distributable
-Group: Applications/Internet
+Requires: yaz expat bzip2-libs tcl
+Copyright: GPL
+Group: Applications/Databases
Vendor: Index Data ApS <info@indexdata.dk>
-Url: http://www.indexdata.dk/zebra/
-Source: zebra-1.0pl1.tar.gz
+Source: idzebra-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
Packager: Adam Dickmeiss <adam@indexdata.dk>
+URL: http://www.indexdata.dk/zebra/
+BuildRequires: yaz expat-devel bzip2-devel tcl
+Summary: High-performance, structured text indexing and retrival engine.
%description
-The Zebra indexing tool is a generic search engine suitable for dealing
-with Metadata and other document types. Zebra consists of an indexing
-tool - for building an index for fast retrieval - and a search engine
-server that offers a Z39.50 interface.
+Zebra is a high-performance, general-purpose structured text indexing
+and retrieval engine. It reads structured records in a variety of input
+formats (eg. email, XML, MARC) and allows access to them through exact
+boolean search expressions and relevance-ranked free-text queries.
%prep
%setup
%build
CFLAGS="$RPM_OPT_FLAGS" \
- ./configure --with-build-root=$RPM_BUILD_ROOT --prefix=/usr
+ ./configure --prefix=/usr --with-yazconfig=/usr/bin
make CFLAGS="$RPM_OPT_FLAGS"
%install
-rm -fr $RPM_BUILD_ROOT
-make install
+rm -fr ${RPM_BUILD_ROOT}
+make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/usr/share/man install
+
+%clean
+rm -fr ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
-%doc README LICENSE.zebra CHANGELOG
-%config /usr/lib/zebra/tab
-/usr/bin/zebraidx
-/usr/bin/zebrasrv
-%dir /usr/lib/zebra
+%doc README LICENSE.zebra CHANGELOG
+%config /usr/share/idzebra/tab
+/usr/bin/*
+/usr/share/doc/idzebra
+/usr/share/man/*/*