1 |
# $Id: xapian-core.spec,v 1.1 2008/10/20 02:00:49 slords Exp $ |
# $Id: xapian-core.spec,v 1.3 2008/11/25 16:20:36 slords Exp $ |
2 |
# Authority: slords |
# Authority: slords |
3 |
# Name: Shad L. Lords |
# Name: Shad L. Lords |
4 |
|
|
5 |
Summary: The Xapian Probabilistic Information Retrieval Library |
Name: xapian-core |
6 |
Name: xapian-core |
Version: 1.0.17 |
7 |
Version: 1.0.6 |
Release: 1%{?dist} |
8 |
Release: 1%{?dist} |
Summary: The Xapian Probabilistic Information Retrieval Library |
9 |
License: GPLv2+ |
|
10 |
Group: Applications/Databases |
Group: Applications/Databases |
11 |
URL: http://www.xapian.org/ |
License: GPLv2+ |
12 |
Requires: %{name}-libs = %{version} |
URL: http://www.xapian.org/ |
13 |
Source0: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz |
Source0: http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.gz |
14 |
Patch0: multilib-devel-conflict-fix.patch |
Patch0: multilib-devel-conflict-fix.patch |
15 |
BuildRequires: autoconf automake libtool |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
16 |
|
|
17 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
Requires: %{name}-libs = %{version} |
19 |
|
|
20 |
%description |
%description |
21 |
Xapian is an Open Source Probabilistic Information Retrieval Library. It |
Xapian is an Open Source Probabilistic Information Retrieval Library. It |
23 |
indexing and search facilities to applications |
indexing and search facilities to applications |
24 |
|
|
25 |
%package libs |
%package libs |
26 |
Summary: Xapian search engine libraries |
Summary: Xapian search engine libraries |
27 |
Group: System Environment/Libraries |
Group: System Environment/Libraries |
28 |
|
|
29 |
%description libs |
%description libs |
30 |
Xapian is an Open Source Probabilistic Information Retrieval framework. It |
Xapian is an Open Source Probabilistic Information Retrieval framework. It |
33 |
libraries for applications using Xapian functionality |
libraries for applications using Xapian functionality |
34 |
|
|
35 |
%package devel |
%package devel |
36 |
Group: Development/Libraries |
Group: Development/Libraries |
37 |
Summary: Files needed for building packages which use Xapian |
Summary: Files needed for building packages which use Xapian |
38 |
Requires: %{name} = %{version} |
Requires: %{name} = %{version} |
39 |
Requires: %{name}-libs = %{version} |
Requires: %{name}-libs = %{version} |
40 |
|
|
41 |
%description devel |
%description devel |
42 |
Xapian is an Open Source Probabilistic Information Retrieval framework. It |
Xapian is an Open Source Probabilistic Information Retrieval framework. It |
45 |
files needed for building packages which use Xapian |
files needed for building packages which use Xapian |
46 |
|
|
47 |
%prep |
%prep |
48 |
%setup -q -n %{name}-%{version} |
%setup -q |
49 |
%patch0 -p1 -b .multilibfix |
%patch0 -p1 -b .multilibfix |
50 |
|
|
51 |
%build |
%build |
|
# FC6 (at least) has a patched libtool which knows not to set rpath for |
|
|
# /usr/lib64, which upstream libtool fails to do currently. We can drop |
|
|
# this "autoreconf --force" and the "BuildRequires:" for the autotools |
|
|
# once upstream libtool is fixed. Note: this overwrites INSTALL, but |
|
|
# that doesn't matter here as we don't package it. |
|
|
autoreconf --force |
|
52 |
%configure --disable-static |
%configure --disable-static |
53 |
make %{?_smp_mflags} |
|
54 |
|
# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath |
55 |
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
56 |
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
57 |
|
|
58 |
|
make %{?_smp_mflags} V=1 |
59 |
|
|
60 |
%install |
%install |
61 |
rm -rf %{buildroot} |
rm -rf %{buildroot} |
62 |
mkdir -p %{buildroot} |
make install DESTDIR=%{buildroot} INSTALL='install -p' |
63 |
# makeinstall doesn't work properly with libtool built libraries |
|
64 |
make DESTDIR=%{buildroot} install |
# Remove libtool archives |
65 |
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
66 |
# Move the docs to the right place |
|
67 |
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_datadir}/doc/%{name}-devel-%{version} |
# Remove the dev docs, we pick them up below |
68 |
# Copy HACKING now, as "%doc HACKING" would overwrite everything |
rm -rf %{buildroot}%{_datadir}/doc/%{name} |
|
cp HACKING %{buildroot}%{_datadir}/doc/%{name}-devel-%{version} |
|
|
# Copy the rest while we are in this directory |
|
|
mkdir -p %{buildroot}%{_datadir}/doc/%{name}-%{version} |
|
|
cp AUTHORS ChangeLog COPYING NEWS PLATFORMS README %{buildroot}%{_datadir}/doc/%{name}-%{version} |
|
69 |
|
|
70 |
%post libs -p /sbin/ldconfig |
%post libs -p /sbin/ldconfig |
71 |
|
|
76 |
|
|
77 |
%files |
%files |
78 |
%defattr(-, root, root) |
%defattr(-, root, root) |
79 |
|
%doc AUTHORS ChangeLog COPYING NEWS README |
80 |
%{_bindir}/xapian-check |
%{_bindir}/xapian-check |
81 |
%{_bindir}/xapian-inspect |
%{_bindir}/xapian-inspect |
82 |
%{_bindir}/xapian-tcpsrv |
%{_bindir}/xapian-tcpsrv |
91 |
%{_bindir}/simplesearch |
%{_bindir}/simplesearch |
92 |
%{_bindir}/simpleexpand |
%{_bindir}/simpleexpand |
93 |
%{_bindir}/xapian-compact |
%{_bindir}/xapian-compact |
|
%doc %{_datadir}/doc/%{name}-%{version} |
|
94 |
# man pages may be gzipped, hence the trailing wildcard. |
# man pages may be gzipped, hence the trailing wildcard. |
95 |
%{_mandir}/man1/xapian-check.1* |
%{_mandir}/man1/xapian-check.1* |
96 |
%{_mandir}/man1/xapian-inspect.1* |
%{_mandir}/man1/xapian-inspect.1* |
110 |
|
|
111 |
%files devel |
%files devel |
112 |
%defattr(-, root, root) |
%defattr(-, root, root) |
113 |
|
%doc HACKING PLATFORMS docs/*html docs/apidoc docs/*pdf |
114 |
%{_bindir}/xapian-config |
%{_bindir}/xapian-config |
115 |
%{_includedir}/xapian |
%{_includedir}/xapian |
116 |
%{_includedir}/xapian.h |
%{_includedir}/xapian.h |
117 |
%{_libdir}/libxapian.so |
%{_libdir}/libxapian.so |
118 |
%{_datadir}/aclocal/xapian.m4 |
%{_datadir}/aclocal/xapian.m4 |
|
%doc %{_datadir}/doc/%{name}-devel-%{version} |
|
119 |
# man pages may be gzipped, hence the trailing wildcard. |
# man pages may be gzipped, hence the trailing wildcard. |
120 |
%{_mandir}/man1/xapian-config.1* |
%{_mandir}/man1/xapian-config.1* |
121 |
|
|
122 |
%changelog |
%changelog |
123 |
|
* Wed Dec 2 2009 Peter Robinson <pbrobinson@gmail.com> - 1.0.17-1 |
124 |
|
- Update to 1.0.17 |
125 |
|
|
126 |
|
* Sun Sep 19 2009 Peter Robinson <pbrobinson@gmail.com> - 1.0.16-1 |
127 |
|
- Update to 1.0.16, some spec file cleanups |
128 |
|
|
129 |
|
* Thu Aug 27 2009 Peter Robinson <pbrobinson@gmail.com> - 1.0.15-1 |
130 |
|
- Update to 1.0.15 |
131 |
|
|
132 |
|
* Wed Jul 29 2009 Peter Robinson <pbrobinson@gmail.com> - 1.0.14-1 |
133 |
|
- Update to 1.0.14 |
134 |
|
|
135 |
|
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-2 |
136 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
137 |
|
|
138 |
|
* Fri Jun 5 2009 Peter Robinson <pbrobinson@gmail.com> - 1.0.13-1 |
139 |
|
- Update to 1.0.13 |
140 |
|
|
141 |
|
* Sun Apr 12 2009 Peter Robinson <pbrobinson@gmail.com> - 1.0.12-1 |
142 |
|
- Update to 1.0.12 |
143 |
|
|
144 |
|
* Mon Apr 06 2009 Peter Robinson <pbrobinson@gmail.com> - 1.0.11-1 |
145 |
|
- Update to 1.0.11 |
146 |
|
|
147 |
|
* Wed Mar 04 2009 Caolán McNamara <caolanm@redhat.com> - 1.0.9-4 |
148 |
|
- include stdio.h for rename, fix bare #elif, EOF -> -1 for getopt |
149 |
|
|
150 |
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-3 |
151 |
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
152 |
|
|
153 |
|
* Fri Dec 05 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.9-2 |
154 |
|
- Fix build |
155 |
|
|
156 |
|
* Sat Nov 29 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.9-1 |
157 |
|
- Update to 1.0.9 |
158 |
|
|
159 |
|
* Sat Oct 11 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.8-1 |
160 |
|
- Update to 1.0.8 |
161 |
|
|
162 |
|
* Sun Jul 20 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.7-1 |
163 |
|
- Update to 1.0.7 |
164 |
|
|
165 |
* Sun Mar 30 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.6-1 |
* Sun Mar 30 2008 Adel Gadllah <adel.gadllah@gmail.com> 1.0.6-1 |
166 |
- Update to 1.0.6 |
- Update to 1.0.6 |
167 |
|
|