Towards 1.3.1
[idzebra-moved-to-github.git] / zebra.spec
index 494cd8f..e083e3f 100644 (file)
@@ -1,22 +1,22 @@
-Summary: Zebra - An Open Indexing Search Engine
 Name: zebra
-Version: 1.0
+Version: 1.3.0
 Release: 1
-Copyright: commercial
-Group: Development/Libraries
+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.0.tar.gz
-Requires: yaz
-BuildRequires: yaz
+Source: zebra-%{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
@@ -24,17 +24,18 @@ server that offers a Z39.50 interface.
 %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
+make prefix=$RPM_BUILD_ROOT/usr install
+cd doc; make prefix=$RPM_BUILD_ROOT/usr install
 
 %files
 %defattr(-,root,root)
-%doc README LICENSE.2 CHANGELOG
-%config /usr/lib/zebra/tab
-/usr/bin/zebraidx
+%doc README LICENSE.zebra CHANGELOG 
+%config /usr/share/zebra/tab
 /usr/bin/zebrasrv
-%dir /usr/lib/zebra
+/usr/bin/zebraidx
+/usr/share/doc/zebra