Add test case for bad UTF-8 ISO2709 record
[idzebra-moved-to-github.git] / idzebra.spec
1 %define idmetaversion %(. ./IDMETA; echo $VERSION|tr -d '\n')
2 Name: idzebra
3 %define namev idzebra-2.0
4 Version: %{idmetaversion}
5 Release: 1indexdata
6 License: GPL
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
16 %description
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. 
21
22 %package -n %{namev}
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. 
31
32
33 %package -n lib%{namev}
34 Summary: Zebra libraries
35 Group: 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 
41
42 %package -n lib%{namev}-modules
43 Summary: Zebra modules
44 Group: Libraries
45 Requires: lib%{namev} = %{version} expat tcl
46 %description -n lib%{namev}-modules
47 Modules for the Zebra search engine.
48
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.
55
56 %prep
57 %setup
58
59 %build
60
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"
65
66 %install
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.*
76
77 %clean
78 rm -fr ${RPM_BUILD_ROOT}
79
80 %files -n %{namev}
81 %defattr(-,root,root)
82 %doc README LICENSE.zebra NEWS
83 %config /usr/share/idzebra-2.0/tab
84 %{_bindir}/zebrasrv-*
85 %{_bindir}/zebraidx-*
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
92
93 %files -n lib%{namev}
94 %{_libdir}/*.so.*
95
96 %files -n lib%{namev}-modules
97 %{_libdir}/idzebra-2.0/modules/*
98
99 %files -n lib%{namev}-devel
100 %{_bindir}/idzebra-config-*
101 %{_includedir}/idzebra-2.0
102 %{_libdir}/*.so
103 %{_libdir}/*.a
104 %{_mandir}/*/idzebra-config-*
105 /usr/share/aclocal/*.m4
106