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