Beginnings of facets
[idzebra-moved-to-github.git] / idzebra.spec.in
1 Name: idzebra-2.0
2 Version: @VERSION@
3 Release: 1
4 Requires: lib%{name}-modules = %{version}
5 License: GPL
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.
14
15 %description
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. 
20
21 %package -n lib%{name}
22 Summary: Zebra libraries
23 Group: Libraries
24 Requires: libyaz3 bzip2-libs
25 %description -n lib%{name}
26 Libraries for the Zebra search engine.
27
28 %package -n lib%{name}-modules
29 Summary: Zebra modules
30 Group: Libraries
31 Requires: lib%{name} = %{version} expat tcl
32 %description -n lib%{name}-modules
33 Modules for the Zebra search engine.
34
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.
41
42 %prep
43 %setup -n idzebra-%{version}
44
45 %build
46
47 CFLAGS="$RPM_OPT_FLAGS" \
48  ./configure --prefix=/usr --enable-shared --with-yaz=/usr/bin
49 make CFLAGS="$RPM_OPT_FLAGS"
50
51 %install
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.*
59
60 %clean
61 rm -fr ${RPM_BUILD_ROOT}
62
63 %files
64 %defattr(-,root,root)
65 %doc README LICENSE.zebra NEWS
66 %config /usr/share/idzebra-2.0/tab
67 /usr/bin/zebrasrv-*
68 /usr/bin/zebraidx-*
69 /usr/share/doc/idzebra-2.0
70 /usr/share/man/*/zebraidx-*
71 /usr/share/man/*/zebrasrv-*
72
73 %files -n lib%{name}
74 /usr/lib/*.so.*
75
76 %files -n lib%{name}-modules
77 /usr/lib/idzebra-2.0/modules/*
78
79 %files -n lib%{name}-devel
80 /usr/bin/idzebra-config-*
81 /usr/include/idzebra-2.0/*
82 /usr/lib/*.so
83 /usr/lib/*.a
84 /usr/lib/*.la
85 /usr/share/man/*/idzebra-config-*
86 /usr/share/aclocal/*.m4
87