Zebra 2 RPM with the following packages: idzebra-2.0, libidzebra-2.0,
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 27 Nov 2006 21:50:15 +0000 (21:50 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 27 Nov 2006 21:50:15 +0000 (21:50 +0000)
libidzebra-2.0-modules, libidzebra-2.0-devel.

idzebra.spec.in

index 131f6d2..c4813d0 100644 (file)
@@ -1,12 +1,12 @@
-Name: idzebra
+Name: idzebra-2.0
 Version: @VERSION@
 Release: 1
-Requires: libyaz expat bzip2-libs tcl
+Requires: lib%{name}-modules = %{version}
 License: GPL
 Group: Applications/Databases
 Vendor: Index Data ApS <info@indexdata.dk>
 Source: idzebra-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRoot: %{_tmppath}/idzebra-%{version}-root
 Packager: Adam Dickmeiss <adam@indexdata.dk>
 URL: http://www.indexdata.dk/zebra/
 BuildRequires: libyaz-devel expat-devel bzip2-devel tcl
@@ -18,18 +18,44 @@ 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. 
 
+%package -n lib%{name}
+Summary: Zebra libraries
+Group: Libraries
+Requires: libyaz bzip2-libs
+%description -n lib%{name}
+Libraries for the Zebra search engine.
+
+%package -n lib%{name}-modules
+Summary: Zebra modules
+Group: Libraries
+Requires: lib%{name} = %{version} expat tcl
+%description -n lib%{name}-modules
+Modules for the Zebra search engine.
+
+%package -n lib%{name}-devel
+Summary: Zebra development libraries
+Group: Development/Libraries
+Requires: lib%{name} = %{version} libyaz-devel bzip2-devel 
+%description -n lib%{name}-devel
+Development libraries for the Zebra search engine.
+
 %prep
-%setup
+%setup -n idzebra-%{version}
 
 %build
 
 CFLAGS="$RPM_OPT_FLAGS" \
- ./configure --prefix=/usr --with-yaz=/usr/bin
+ ./configure --prefix=/usr --enable-shared --with-yaz=/usr/bin
 make CFLAGS="$RPM_OPT_FLAGS"
 
 %install
 rm -fr ${RPM_BUILD_ROOT}
 make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/usr/share/man install
+rm ${RPM_BUILD_ROOT}/usr/bin/zebraidx
+rm ${RPM_BUILD_ROOT}/usr/share/man/man1/zebraidx.*
+rm ${RPM_BUILD_ROOT}/usr/bin/zebrasrv
+rm ${RPM_BUILD_ROOT}/usr/share/man/man8/zebrasrv.*
+rm ${RPM_BUILD_ROOT}/usr/share/man/man1/idzebra-config.*
 
 %clean
 rm -fr ${RPM_BUILD_ROOT}
@@ -37,8 +63,25 @@ rm -fr ${RPM_BUILD_ROOT}
 %files
 %defattr(-,root,root)
 %doc README LICENSE.zebra NEWS
-%config /usr/share/idzebra/tab
-/usr/bin/*
-/usr/include/*
-/usr/share/doc/idzebra
-/usr/share/man/*/*
+%config /usr/share/idzebra-2.0/tab
+/usr/bin/zebrasrv-*
+/usr/bin/zebraidx-*
+/usr/share/doc/idzebra-2.0
+/usr/share/man/*/zebraidx-*
+/usr/share/man/*/zebrasrv-*
+
+%files -n lib%{name}
+/usr/lib/*.so.*
+
+%files -n lib%{name}-modules
+/usr/lib/idzebra-2.0/modules/*
+
+%files -n lib%{name}-devel
+/usr/bin/idzebra-config-*
+/usr/include/idzebra-2.0/*
+/usr/lib/*.so
+/usr/lib/*.a
+/usr/lib/*.la
+/usr/share/man/*/idzebra-config-*
+/usr/share/aclocal/*.m4
+