4ef32c
Summary:	A C++ port of Lucene
4ef32c
Name:		clucene
4ef32c
Version:	2.3.3.4
b2a3d4
Release:	11%{?dist}
4ef32c
License:	LGPLv2+ or ASL 2.0
4ef32c
Group:		Development/System
4ef32c
URL:		http://www.sourceforge.net/projects/clucene
4ef32c
Source0:	http://downloads.sourceforge.net/clucene/clucene-core-%{version}.tar.gz
4ef32c
BuildRequires:	gawk cmake zlib-devel boost-devel
4ef32c
4ef32c
## upstreamable patches
4ef32c
# include LUCENE_SYS_INCLUDES in pkgconfig --cflags output
4ef32c
# https://bugzilla.redhat.com/748196
4ef32c
# and
4ef32c
# https://sourceforge.net/tracker/?func=detail&aid=3461512&group_id=80013&atid=558446
4ef32c
# pkgconfig file is missing clucene-shared
4ef32c
Patch50: clucene-core-2.3.3.4-pkgconfig.patch
4ef32c
# https://bugzilla.redhat.com/794795
4ef32c
# https://sourceforge.net/tracker/index.php?func=detail&aid=3392466&group_id=80013&atid=558446
4ef32c
# contribs-lib is not built and installed even with config
4ef32c
Patch51: clucene-core-2.3.3.4-install_contribs_lib.patch
4ef32c
# Bug 1027836 - clucene breaks rebuild of libreoffice
4ef32c
Patch52: clucene-core-2.3.3.4-lo.patch
4ef32c
4ef32c
%description
4ef32c
CLucene is a C++ port of the popular Apache Lucene search engine
4ef32c
(http://lucene.apache.org/java). 
4ef32c
CLucene aims to be a high-speed alternative to Java Lucene, its API is very
4ef32c
similar to that of the Java version. CLucene has recently been brought up to
4ef32c
date with Lucene 2.3.2. It contains most of the same functionality as the Java version.
4ef32c
4ef32c
%package core
4ef32c
Summary:	Core clucene module
4ef32c
Group:		Development/System
4ef32c
Provides:	clucene = %{version}-%{release}
4ef32c
#Requires: %{name} = %{version}-%{release}
4ef32c
%description core
4ef32c
CLucene is a C++ port of the popular Apache Lucene search engine
4ef32c
(http://lucene.apache.org/java).
4ef32c
CLucene aims to be a high-speed alternative to Java Lucene, its API is very
4ef32c
similar to that of the Java version. CLucene has recently been brought up to
4ef32c
date with Lucene 2.3.2. It contains most of the same functionality as the Java version.
4ef32c
4ef32c
%package core-devel
4ef32c
Summary:	Headers for developing programs that will use %{name}
4ef32c
Group:		Development/Libraries
4ef32c
Requires:	%{name}-core%{?_isa} = %{version}-%{release}
4ef32c
Requires:	%{name}-contribs-lib%{?_isa} = %{version}-%{release}
4ef32c
%description core-devel
4ef32c
This package contains the libraries and header files needed for
4ef32c
developing with clucene
4ef32c
4ef32c
%package contribs-lib
4ef32c
Summary:	Language specific text analyzers for %{name}
4ef32c
Group:  	Development/System
4ef32c
Requires:	%{name}-core%{?_isa} = %{version}-%{release}
4ef32c
%description contribs-lib
4ef32c
%{summary}.
4ef32c
4ef32c
4ef32c
%prep
4ef32c
%setup -n %{name}-core-%{version}
4ef32c
4ef32c
%patch50 -p1 -b .pkgconfig
4ef32c
%patch51 -p1 -b .install_contribs_lib
4ef32c
%patch52 -p0 -b .libreoffice
4ef32c
4ef32c
%build
4ef32c
mkdir -p %{_target_platform}
4ef32c
pushd %{_target_platform}
4ef32c
%{cmake} \
4ef32c
  -DBUILD_CONTRIBS_LIB=BOOL:ON \
4ef32c
  -DLIB_DESTINATION:PATH=%{_libdir} \
4ef32c
  -DLUCENE_SYS_INCLUDES:PATH=%{_libdir} \
4ef32c
  ..
4ef32c
popd
4ef32c
4ef32c
make %{?_smp_mflags} -C %{_target_platform}
4ef32c
4ef32c
4ef32c
%install
4ef32c
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
4ef32c
4ef32c
rm -rf %{buildroot}%{_libdir}/CLuceneConfig.cmake
4ef32c
4ef32c
4ef32c
%check
4ef32c
# FIXME: do not run tests for ppc and s390 (big endian 32 bit archs) until
4ef32c
# we have a proper fix
4ef32c
%ifnarch ppc s390
4ef32c
# Fails on all arches at the moment so temporaily disable
4ef32c
#make cl_test -C %{_target_platform}
4ef32c
#make test -C %{_target_platform}
4ef32c
%endif
4ef32c
4ef32c
4ef32c
%post core -p /sbin/ldconfig
4ef32c
%postun core -p /sbin/ldconfig
4ef32c
4ef32c
%files core
4ef32c
%defattr(-, root, root, -)
4ef32c
%doc APACHE.license AUTHORS ChangeLog COPYING LGPL.license README
4ef32c
%{_libdir}/libclucene-core.so.1*
4ef32c
%{_libdir}/libclucene-core.so.%{version}
4ef32c
%{_libdir}/libclucene-shared.so.1*
4ef32c
%{_libdir}/libclucene-shared.so.%{version}
4ef32c
4ef32c
%post contribs-lib -p /sbin/ldconfig
4ef32c
%postun contribs-lib -p /sbin/ldconfig
4ef32c
4ef32c
%files contribs-lib
4ef32c
%defattr(-, root, root, -)
4ef32c
%{_libdir}/libclucene-contribs-lib.so.1*
4ef32c
%{_libdir}/libclucene-contribs-lib.so.%{version}
4ef32c
4ef32c
%files core-devel
4ef32c
%defattr(-, root, root, -)
4ef32c
%dir %{_libdir}/CLucene
4ef32c
%{_includedir}/CLucene/
4ef32c
%{_includedir}/CLucene.h
4ef32c
%{_libdir}/libclucene*.so
4ef32c
%{_libdir}/CLucene/clucene-config.h
4ef32c
%{_libdir}/CLucene/CLuceneConfig.cmake
4ef32c
%{_libdir}/pkgconfig/libclucene-core.pc
4ef32c
4ef32c
4ef32c
%changelog
b2a3d4
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.3.3.4-11
b2a3d4
- Mass rebuild 2014-01-24
b2a3d4
b2a3d4
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.3.3.4-10
b2a3d4
- Mass rebuild 2013-12-27
b2a3d4
4ef32c
* Thu Nov 7 2013 Lukáš Tinkl <ltinkl@redhat.com> - 2.3.3.4-9
4ef32c
- Resolves: rhbz#1027836 - clucene breaks rebuild of libreoffice
4ef32c
4ef32c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-8
4ef32c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4ef32c
4ef32c
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-7
4ef32c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4ef32c
4ef32c
* Mon Mar 19 2012 Rex Dieter <rdieter@fedoraproject.org> 2.3.3.4-6
4ef32c
- contribs-lib is not built and installed even with config (#794795, upstream ID: 3392466)
4ef32c
- pkgconfig file is missing clucene-shared (upstream ID: 3461512)
4ef32c
- non-descriptive descripton (#757319)
4ef32c
4ef32c
* Sat Feb 25 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.3.4-5
4ef32c
- Temporarily disable make check as it fails on all arches
4ef32c
4ef32c
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-4
4ef32c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4ef32c
4ef32c
* Sun Oct 23 2011 Rex Dieter <rdieter@fedoraproject.org> 2.3.3.4-3
4ef32c
- include LUCENE_SYS_INCLUDES in pkgconfig --cflags output (#748196)
4ef32c
4ef32c
* Wed Jun 08 2011 Rex Dieter <rdieter@fedoraproject.org> 2.3.3.4-2
4ef32c
- cleanup cmake usage
4ef32c
- fix scriptlets
4ef32c
- track sonames
4ef32c
4ef32c
* Thu Jun 02 2011 Deji Akingunola <dakingun@gmail.com> - 2.3.3.4-1
4ef32c
- Update to version 2.3.3.4
4ef32c
4ef32c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21b-3
4ef32c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4ef32c
4ef32c
* Thu Jul 08 2010 Deji Akingunola <dakingun@gmail.com> 0.9.21b-2
4ef32c
- Include the license text in the -core subpackage.
4ef32c
4ef32c
* Sun Jun 06 2010 Robert Scheck <robert@fedoraproject.org> 0.9.21b-1
4ef32c
- Update to 0.9.21b
4ef32c
4ef32c
* Wed Nov 04 2009 Dennis Gilmore <dennis@ausil.us> - 0.9.21-5
4ef32c
- disable 'make check on sparc64 along with ppc64 and s390x
4ef32c
4ef32c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-4
4ef32c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4ef32c
4ef32c
* Tue Apr 14 2009 Karsten Hopp <karsten@redhat.com> 0.9.21-3
4ef32c
- bypass 'make check' on s390x, similar to ppc64
4ef32c
4ef32c
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-2
4ef32c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4ef32c
4ef32c
* Wed Aug 27 2008 Deji Akingunola <dakingun@gmail.com> - 0.9.21-1
4ef32c
- Update to version 0.9.21
4ef32c
4ef32c
* Sun Feb 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.9.20-4
4ef32c
- Rebuild for gcc43
4ef32c
4ef32c
* Wed Oct 25 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.20-3
4ef32c
- Fix a typo in the License field
4ef32c
4ef32c
* Wed Oct 25 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.20-2
4ef32c
- Fix multiarch conflicts (BZ #340891)
4ef32c
- Bypass 'make check' for ppc64, its failing two tests there
4ef32c
4ef32c
* Tue Aug 21 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.20-1
4ef32c
- Update to version 0.9.20
4ef32c
4ef32c
* Sat Aug 11 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.19-1
4ef32c
- Latest release update
4ef32c
4ef32c
* Fri Aug 03 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.16a-2
4ef32c
- License tag update
4ef32c
4ef32c
* Thu Feb 22 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.16a-2
4ef32c
- Add -contrib subpackage 
4ef32c
4ef32c
* Thu Dec 07 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.16a-1
4ef32c
- Update to latest stable release 
4ef32c
- Run make check during build
4ef32c
4ef32c
* Mon Nov 20 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.15-3
4ef32c
- Don't package APACHE.license since we've LGPL instead 
4ef32c
- Package documentation in devel subpackage
4ef32c
4ef32c
* Mon Nov 13 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.15-2
4ef32c
- Fix a bunch of issues with the spec (#215258)
4ef32c
- Moved the header file away from lib dir
4ef32c
4ef32c
* Sat Nov 04 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.15-1
4ef32c
- Initial packaging for Fedora Extras