2007-08-11 21:38:48 +00:00
|
|
|
%define build_contrib 0
|
|
|
|
|
|
|
|
Summary: A C++ port of Lucene
|
|
|
|
Name: clucene
|
2007-10-25 11:53:28 +00:00
|
|
|
Version: 0.9.20
|
2008-02-11 03:54:34 +00:00
|
|
|
Release: 4%{?dist}
|
2007-10-25 12:11:42 +00:00
|
|
|
License: LGPLv2+ or ASL 2.0
|
2007-08-11 21:38:48 +00:00
|
|
|
Group: Development/System
|
|
|
|
URL: http://www.sourceforge.net/projects/clucene
|
2007-10-25 11:53:28 +00:00
|
|
|
Source0: http://downloads.sf.net/clucene/clucene-core-%{version}.tar.bz2
|
2007-08-11 21:38:48 +00:00
|
|
|
%if %{build_contrib}
|
2007-10-25 11:53:28 +00:00
|
|
|
Source1: http://downloads.dl.sf.net/clucene/clucene-contrib-0.9.16a.tar.bz2
|
2007-08-11 21:38:48 +00:00
|
|
|
Patch1: clucene-contrib-autoconf.patch
|
|
|
|
%endif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-10-25 11:53:28 +00:00
|
|
|
BuildRequires: automake gawk
|
2006-12-13 17:09:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
CLucene is a C++ port of Lucene.
|
|
|
|
It is a high-performance, full-featured text search
|
|
|
|
engine written in C++. CLucene is faster than lucene
|
|
|
|
as it is written in C++
|
|
|
|
|
2006-12-18 21:09:13 +00:00
|
|
|
%package core
|
2007-08-11 21:38:48 +00:00
|
|
|
Summary: Core clucene module
|
|
|
|
Group: Development/System
|
|
|
|
Provides: clucene
|
|
|
|
#Requires: %{name} = %{version}-%{release}
|
2006-12-18 21:09:13 +00:00
|
|
|
|
|
|
|
%description core
|
|
|
|
The core clucene module
|
|
|
|
|
|
|
|
%package core-devel
|
2007-08-11 21:38:48 +00:00
|
|
|
Summary: Headers for developing programs that will use %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-core = %{version}-%{release}
|
2006-12-13 17:09:38 +00:00
|
|
|
|
2006-12-18 21:09:13 +00:00
|
|
|
%description core-devel
|
2006-12-13 17:09:38 +00:00
|
|
|
This package contains the static libraries and header files needed for
|
|
|
|
developing with clucene
|
|
|
|
|
2007-08-11 21:38:48 +00:00
|
|
|
%if %{build_contrib}
|
|
|
|
%package contrib
|
|
|
|
Summary: Core clucene module
|
|
|
|
Group: Development/System
|
|
|
|
Requires: %{name}-core >= %{version}-%{release}
|
|
|
|
|
|
|
|
%description contrib
|
|
|
|
Collection of contributions for C++ port of Lucene
|
|
|
|
|
|
|
|
%package contrib-devel
|
|
|
|
Summary: Headers for developing programs that will use %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-contrib = %{version}-%{release}
|
|
|
|
Requires: %{name}-core-devel >= %{version}-%{release}
|
|
|
|
|
|
|
|
%description contrib-devel
|
|
|
|
This package contains the static libraries and header files needed for
|
|
|
|
developing with clucene-contrib
|
|
|
|
%endif
|
|
|
|
|
2006-12-13 17:09:38 +00:00
|
|
|
%prep
|
2007-08-11 21:38:48 +00:00
|
|
|
%if %{build_contrib}
|
|
|
|
%setup -q -c -a 1
|
|
|
|
cd %{name}-contrib-%{version}
|
|
|
|
%patch1 -p0 -b .autoconf
|
|
|
|
%else
|
|
|
|
%setup -q -c -a 0
|
|
|
|
%endif
|
2006-12-13 17:09:38 +00:00
|
|
|
|
|
|
|
%build
|
2007-08-11 21:38:48 +00:00
|
|
|
pushd %{name}-core-%{version}
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
|
|
|
|
%if %{build_contrib}
|
|
|
|
pushd %{name}-contrib-%{version}
|
|
|
|
aclocal -I m4
|
|
|
|
autoconf
|
|
|
|
automake --add-missing --copy
|
2006-12-13 17:09:38 +00:00
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
2007-08-11 21:38:48 +00:00
|
|
|
popd
|
|
|
|
%endif
|
2006-12-13 17:09:38 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
2007-08-11 21:38:48 +00:00
|
|
|
pushd %{name}-core-%{version}
|
2006-12-13 17:09:38 +00:00
|
|
|
make DESTDIR=%{buildroot} install
|
2007-08-11 21:38:48 +00:00
|
|
|
popd
|
|
|
|
|
|
|
|
%if %{build_contrib}
|
|
|
|
pushd %{name}-contrib-%{version}
|
|
|
|
make DESTDIR=%{buildroot} install
|
|
|
|
popd
|
|
|
|
%endif
|
2006-12-13 17:09:38 +00:00
|
|
|
|
|
|
|
#Package the docs
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/doc
|
2007-08-11 21:38:48 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/doc/%{name}-%{version}
|
|
|
|
pushd %{name}-core-%{version}
|
2006-12-13 17:09:38 +00:00
|
|
|
cp -pr doc/*.htm doc/*.jpg %{buildroot}%{_datadir}/%{name}/doc
|
2007-08-11 21:38:48 +00:00
|
|
|
cp -pr AUTHORS COPYING HACKING README REQUESTS \
|
|
|
|
%{buildroot}%{_datadir}/doc/%{name}-%{version}
|
|
|
|
popd
|
2006-12-13 17:09:38 +00:00
|
|
|
|
2007-10-25 11:53:28 +00:00
|
|
|
# Run the tests
|
|
|
|
## It currently fails 2 tests for ppc64 builds, upstream is looking into it.
|
|
|
|
%ifnarch ppc64
|
|
|
|
%check
|
|
|
|
pushd %{name}-core-%{version}
|
|
|
|
make check
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2006-12-13 17:09:38 +00:00
|
|
|
rm -rf %{buildroot}%{_libdir}/*.la
|
2007-08-11 21:38:48 +00:00
|
|
|
# These are from the contrib package
|
|
|
|
rm -rf %{buildroot}%{_includedir}/CuTest.h
|
|
|
|
rm -rf %{buildroot}%{_includedir}/test.h
|
2006-12-13 17:09:38 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2006-12-18 21:09:13 +00:00
|
|
|
%files core
|
2006-12-13 17:09:38 +00:00
|
|
|
%defattr(-, root, root, -)
|
2007-08-11 21:38:48 +00:00
|
|
|
#%doc AUTHORS COPYING HACKING README REQUESTS
|
|
|
|
%{_libdir}/libclucene.so.*
|
|
|
|
%{_datadir}/doc/%{name}-%{version}/
|
2006-12-13 17:09:38 +00:00
|
|
|
|
2006-12-18 21:09:13 +00:00
|
|
|
%files core-devel
|
2006-12-13 17:09:38 +00:00
|
|
|
%defattr(-, root, root, -)
|
2007-08-11 21:38:48 +00:00
|
|
|
%dir %{_includedir}/CLucene
|
2007-10-25 11:53:28 +00:00
|
|
|
%dir %{_libdir}/CLucene
|
2007-08-11 21:38:48 +00:00
|
|
|
%{_includedir}/CLucene/*
|
2006-12-13 17:09:38 +00:00
|
|
|
%{_includedir}/CLucene.h
|
2007-08-11 21:38:48 +00:00
|
|
|
%{_libdir}/libclucene.so
|
2007-10-25 11:53:28 +00:00
|
|
|
%{_libdir}/CLucene/clucene-config.h
|
2006-12-13 17:09:38 +00:00
|
|
|
%{_datadir}/%{name}/
|
2007-08-11 21:38:48 +00:00
|
|
|
%if %{build_contrib}
|
|
|
|
%exclude %{_includedir}/CLucene/clucene-config-contrib.h
|
|
|
|
%exclude %{_includedir}/CLucene/analysis/cjk/
|
|
|
|
%exclude %{_includedir}/CLucene/highlighter/
|
|
|
|
%exclude %{_includedir}/CLucene/jstreams/
|
|
|
|
%exclude %{_includedir}/CLucene/snowball/
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{build_contrib}
|
|
|
|
%files contrib
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%{_libdir}/libclucene-contrib.so.*
|
|
|
|
|
|
|
|
%files contrib-devel
|
|
|
|
%defattr(-, root, root, -)
|
2007-10-25 11:53:28 +00:00
|
|
|
%dir %{_libdir}/CLucene
|
2007-08-11 21:38:48 +00:00
|
|
|
%{_includedir}/CLucene/clucene-config-contrib.h
|
|
|
|
%{_includedir}/CLucene/analysis/cjk/
|
|
|
|
%{_includedir}/CLucene/highlighter/
|
|
|
|
%{_includedir}/CLucene/jstreams/
|
|
|
|
%{_includedir}/CLucene/snowball/
|
|
|
|
%{_libdir}/libclucene-contrib.so
|
2007-10-25 11:53:28 +00:00
|
|
|
%{_libdir}/CLucene/clucene-config-contrib.h
|
2007-08-11 21:38:48 +00:00
|
|
|
%endif
|
2006-12-13 17:09:38 +00:00
|
|
|
|
|
|
|
%changelog
|
2008-02-11 03:54:34 +00:00
|
|
|
* Sun Feb 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.9.20-4
|
|
|
|
- Rebuild for gcc43
|
|
|
|
|
2007-10-25 12:11:42 +00:00
|
|
|
* Wed Oct 25 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.20-3
|
|
|
|
- Fix a typo in the License field
|
|
|
|
|
|
|
|
* Wed Oct 25 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.20-2
|
2007-10-25 11:53:28 +00:00
|
|
|
- Fix multiarch conflicts (BZ #340891)
|
|
|
|
- Bypass 'make check' for ppc64, its failing two tests there
|
|
|
|
|
|
|
|
* Tue Aug 21 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.20-1
|
|
|
|
- Update to version 0.9.20
|
|
|
|
|
2007-08-11 21:38:48 +00:00
|
|
|
* Sat Aug 11 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.19-1
|
|
|
|
- Latest release update
|
|
|
|
|
2007-08-03 18:12:55 +00:00
|
|
|
* Fri Aug 03 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.16a-2
|
|
|
|
- License tag update
|
|
|
|
|
2007-08-11 21:38:48 +00:00
|
|
|
* Thu Feb 22 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.16a-2
|
|
|
|
- Add -contrib subpackage
|
|
|
|
|
2006-12-13 17:09:38 +00:00
|
|
|
* Thu Dec 07 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.16a-1
|
|
|
|
- Update to latest stable release
|
|
|
|
- Run make check during build
|
|
|
|
|
|
|
|
* Mon Nov 20 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.15-3
|
|
|
|
- Don't package APACHE.license since we've LGPL instead
|
|
|
|
- Package documentation in devel subpackage
|
|
|
|
|
|
|
|
* Mon Nov 13 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.15-2
|
|
|
|
- Fix a bunch of issues with the spec (#215258)
|
|
|
|
- Moved the header file away from lib dir
|
|
|
|
|
|
|
|
* Sat Nov 04 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.15-1
|
|
|
|
- Initial packaging for Fedora Extras
|