]>
Commit | Line | Data |
---|---|---|
0f0df26a ER |
1 | # Conditional build: |
2 | %bcond_without apidocs # do not build and package API docs | |
12799b30 | 3 | %bcond_without static_libs # don't build static library |
0f0df26a ER |
4 | # |
5 | Summary: The Xapian Probabilistic Information Retrieval Library | |
6 | Name: xapian-core | |
3ac04947 PZ |
7 | Version: 1.0.10 |
8 | Release: 1 | |
0f0df26a ER |
9 | License: GPL |
10 | Group: Applications/Databases | |
11 | URL: http://www.xapian.org/ | |
12 | Source0: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz | |
3ac04947 | 13 | # Source0-md5: 4024c3709517db1d8f8383a1d432854a |
0f0df26a | 14 | Patch0: %{name}-gcc43.patch |
0f0df26a ER |
15 | BuildRequires: libstdc++-devel |
16 | BuildRequires: zlib-devel | |
17 | Requires: %{name}-libs = %{version}-%{release} | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Xapian is an Open Source Probabilistic Information Retrieval Library. | |
22 | It offers a highly adaptable toolkit that allows developers to easily | |
23 | add advanced indexing and search facilities to applications. | |
24 | ||
25 | %package apidocs | |
26 | Summary: Xapian API documentation | |
27 | Group: Documentation | |
28 | ||
29 | %description apidocs | |
30 | API and internal documentation for Xapian library. | |
31 | ||
32 | %package libs | |
33 | Summary: Xapian search engine libraries | |
34 | Group: Development/Libraries | |
35 | ||
36 | %description libs | |
37 | Xapian is an Open Source Probabilistic Information Retrieval | |
38 | framework. It offers a highly adaptable toolkit that allows developers | |
39 | to easily add advanced indexing and search facilities to applications. | |
40 | This package provides the libraries for applications using Xapian | |
41 | functionality. | |
42 | ||
43 | %package devel | |
44 | Summary: Files needed for building packages which use Xapian | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-libs = %{version}-%{release} | |
47 | Requires: libstdc++-devel | |
48 | Requires: zlib-devel | |
49 | ||
50 | %description devel | |
51 | Xapian is an Open Source Probabilistic Information Retrieval | |
52 | framework. It offers a highly adaptable toolkit that allows developers | |
53 | to easily add advanced indexing and search facilities to applications. | |
54 | This package provides the files needed for building packages which use | |
55 | Xapian. | |
56 | ||
12799b30 ER |
57 | %package static |
58 | Summary: Static Xapian library | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static Xapian library. | |
64 | ||
0f0df26a ER |
65 | %prep |
66 | %setup -q | |
67 | %patch0 -p0 | |
68 | ||
69 | cp -a examples _examples | |
70 | rm -f _examples/Makefile* | |
71 | ||
72 | %build | |
12799b30 ER |
73 | %configure \ |
74 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static | |
0f0df26a ER |
75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | %{__make} install \ | |
80 | docdir=%{_docdir}/%{name}-apidocs-%{version} \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | %{__make} -C docs install \ | |
84 | docdir=%{_docdir}/%{name}-apidocs-%{version} \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
88 | cp -a ChangeLog.examples _examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
89 | ||
90 | %post libs -p /sbin/ldconfig | |
91 | %postun libs -p /sbin/ldconfig | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %files | |
97 | %defattr(644,root,root,755) | |
98 | %doc AUTHORS COPYING ChangeLog HACKING INSTALL NEWS PLATFORMS README | |
99 | %attr(755,root,root) %{_bindir}/xapian-tcpsrv | |
100 | %attr(755,root,root) %{_bindir}/xapian-progsrv | |
101 | %attr(755,root,root) %{_bindir}/quartzcheck | |
102 | %attr(755,root,root) %{_bindir}/quartzcompact | |
103 | %attr(755,root,root) %{_bindir}/quartzdump | |
104 | %attr(755,root,root) %{_bindir}/quest | |
105 | %attr(755,root,root) %{_bindir}/delve | |
106 | %attr(755,root,root) %{_bindir}/copydatabase | |
107 | %attr(755,root,root) %{_bindir}/simpleindex | |
108 | %attr(755,root,root) %{_bindir}/simplesearch | |
109 | %attr(755,root,root) %{_bindir}/simpleexpand | |
110 | %attr(755,root,root) %{_bindir}/xapian-compact | |
111 | %attr(755,root,root) %{_bindir}/xapian-check | |
112 | %attr(755,root,root) %{_bindir}/xapian-inspect | |
113 | %{_mandir}/man1/xapian-check.1* | |
114 | %{_mandir}/man1/xapian-inspect.1* | |
115 | %{_mandir}/man1/copydatabase.1* | |
116 | %{_mandir}/man1/delve.1* | |
117 | %{_mandir}/man1/quartzcheck.1* | |
118 | %{_mandir}/man1/quartzcompact.1* | |
119 | %{_mandir}/man1/quartzdump.1* | |
120 | %{_mandir}/man1/quest.1* | |
121 | %{_mandir}/man1/xapian-compact.1* | |
122 | %{_mandir}/man1/xapian-config.1* | |
123 | %{_mandir}/man1/xapian-progsrv.1* | |
124 | %{_mandir}/man1/xapian-tcpsrv.1* | |
125 | ||
126 | %files libs | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_libdir}/libxapian.so.*.*.* | |
129 | %attr(755,root,root) %ghost %{_libdir}/libxapian.so.15 | |
130 | ||
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_bindir}/xapian-config | |
134 | %{_includedir}/xapian | |
135 | %{_includedir}/xapian.h | |
136 | %{_libdir}/libxapian.so | |
0f0df26a ER |
137 | %{_libdir}/libxapian.la |
138 | %{_aclocaldir}/xapian.m4 | |
139 | ||
140 | %{_examplesdir}/%{name}-%{version} | |
141 | ||
12799b30 ER |
142 | %if %{with static_libs} |
143 | %files static | |
144 | %defattr(644,root,root,755) | |
145 | %{_libdir}/libxapian.a | |
146 | %endif | |
147 | ||
0f0df26a ER |
148 | %if %{with apidocs} |
149 | %files apidocs | |
150 | %defattr(644,root,root,755) | |
151 | %doc %{_docdir}/%{name}-apidocs-%{version}/apidoc.pdf | |
152 | %doc %{_docdir}/%{name}-apidocs-%{version}/*.html | |
153 | %doc %{_docdir}/%{name}-apidocs-%{version}/apidoc | |
154 | %endif |