1 %define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n')
3 %define namev idzebra-2.0
4 Version: %{idmetaversion}
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: libyaz4-devel >= 4.2.0
13 BuildRequires: expat-devel, bzip2-devel, tcl, zlib-devel
14 Summary: High-performance, structured text indexing and retrival engine.
15 Group: Applications/Databases
17 Zebra is a high-performance, general-purpose structured text indexing
18 and retrieval engine. It reads structured records in a variety of input
19 formats (eg. email, XML, MARC) and allows access to them through exact
20 boolean search expressions and relevance-ranked free-text queries.
23 Summary: High-performance, structured text indexing and retrival engine.
24 Group: Applications/Databases
25 Requires: lib%{namev}-modules = %{version}
26 %description -n %{namev}
27 Zebra is a high-performance, general-purpose structured text indexing
28 and retrieval engine. It reads structured records in a variety of input
29 formats (eg. email, XML, MARC) and allows access to them through exact
30 boolean search expressions and relevance-ranked free-text queries.
33 %package -n lib%{namev}
34 Summary: Zebra libraries
36 Requires: libyaz4 bzip2-libs
37 %description -n lib%{namev}
38 Libraries for the Zebra search engine.
39 %post -p /sbin/ldconfig
40 %postun -p /sbin/ldconfig
42 %package -n lib%{namev}-modules
43 Summary: Zebra modules
45 Requires: lib%{namev} = %{version} expat tcl
46 %description -n lib%{namev}-modules
47 Modules for the Zebra search engine.
49 %package -n lib%{namev}-devel
50 Summary: Zebra development libraries
51 Group: Development/Libraries
52 Requires: lib%{namev} = %{version} libyaz4-devel bzip2-devel
53 %description -n lib%{namev}-devel
54 Development libraries for the Zebra search engine.
61 CFLAGS="$RPM_OPT_FLAGS" \
62 ./configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir}\
63 --enable-shared --with-yaz=/usr/bin
64 make CFLAGS="$RPM_OPT_FLAGS"
67 rm -fr ${RPM_BUILD_ROOT}
68 make prefix=${RPM_BUILD_ROOT}/usr mandir=${RPM_BUILD_ROOT}/%{_mandir} \
69 libdir=${RPM_BUILD_ROOT}/%{_libdir} install
70 rm ${RPM_BUILD_ROOT}/%{_libdir}/*.la
71 rm ${RPM_BUILD_ROOT}/%{_bindir}/zebraidx
72 rm ${RPM_BUILD_ROOT}/%{_mandir}/man1/zebraidx.*
73 rm ${RPM_BUILD_ROOT}/%{_bindir}/zebrasrv
74 rm ${RPM_BUILD_ROOT}/%{_mandir}/man8/zebrasrv.*
75 rm ${RPM_BUILD_ROOT}/%{_mandir}/man1/idzebra-config.*
78 rm -fr ${RPM_BUILD_ROOT}
82 %doc README LICENSE.zebra NEWS
83 %config /usr/share/idzebra-2.0/tab
86 %{_bindir}/idzebra-abs2dom*
87 /usr/share/doc/idzebra-2.0
88 %{_mandir}/*/zebraidx-*
89 %{_mandir}/*/zebrasrv-*
90 %{_mandir}/*/idzebra-abs2dom*
91 /usr/share/idzebra-2.0-examples
96 %files -n lib%{namev}-modules
97 %{_libdir}/idzebra-2.0/modules/*
99 %files -n lib%{namev}-devel
100 %{_bindir}/idzebra-config-*
101 %{_includedir}/idzebra-2.0
104 %{_mandir}/*/idzebra-config-*
105 /usr/share/aclocal/*.m4