|
|
7f59fd |
|
|
|
7f59fd |
%define git_long e8e3d20f20da5ee3e37d347207b01890829a5475
|
|
|
7f59fd |
%define git_short e8e3d20
|
|
|
7f59fd |
%define snap 20130812
|
|
|
7f59fd |
|
|
|
7f59fd |
Summary: A C++ port of Lucene
|
|
|
7f59fd |
Name: clucene
|
|
|
7f59fd |
Version: 2.3.3.4
|
|
|
7f59fd |
Release: 31.%{snap}.%{git_short}git%{?dist}
|
|
|
7f59fd |
License: LGPLv2+ or ASL 2.0
|
|
|
7f59fd |
Group: Development/System
|
|
|
7f59fd |
URL: http://www.sourceforge.net/projects/clucene
|
|
|
7f59fd |
%if 0%{?snap}
|
|
|
7f59fd |
# git archive e8e3d20f20da5ee3e37d347207b01890829a5475 --prefix=clucene-core-2.3.3.4/ | xz -9 > ../clucene-core-2.3.3.4-e8e3d20.tar.xz
|
|
|
7f59fd |
Source0: clucene-core-2.3.3.4-%{git_short}.tar.xz
|
|
|
7f59fd |
|
|
|
7f59fd |
%else
|
|
|
7f59fd |
Source0: http://downloads.sourceforge.net/clucene/clucene-core-%{version}.tar.gz
|
|
|
7f59fd |
%endif
|
|
|
7f59fd |
|
|
|
7f59fd |
BuildRequires: boost-devel
|
|
|
7f59fd |
BuildRequires: cmake
|
|
|
7f59fd |
BuildRequires: gawk
|
|
|
7f59fd |
BuildRequires: zlib-devel
|
|
|
7f59fd |
|
|
|
7f59fd |
## upstreamable patches
|
|
|
7f59fd |
# include LUCENE_SYS_INCLUDES in pkgconfig --cflags output
|
|
|
7f59fd |
# https://bugzilla.redhat.com/748196
|
|
|
7f59fd |
# and
|
|
|
7f59fd |
# https://sourceforge.net/tracker/?func=detail&aid=3461512&group_id=80013&atid=558446
|
|
|
7f59fd |
# pkgconfig file is missing clucene-shared
|
|
|
7f59fd |
Patch50: clucene-core-2.3.3.4-pkgconfig.patch
|
|
|
7f59fd |
# https://bugzilla.redhat.com/794795
|
|
|
7f59fd |
# https://sourceforge.net/tracker/index.php?func=detail&aid=3392466&group_id=80013&atid=558446
|
|
|
7f59fd |
# contribs-lib is not built and installed even with config
|
|
|
7f59fd |
Patch51: clucene-core-2.3.3.4-install_contribs_lib.patch
|
|
|
7f59fd |
# Don't install CLuceneConfig.cmake twice
|
|
|
7f59fd |
Patch52: clucene-core-2.3.3.4-CLuceneConfig.patch
|
|
|
7f59fd |
# Fix tests for undefined usleep
|
|
|
7f59fd |
Patch53: clucene-core-2.3.3.4-usleep.patch
|
|
|
7f59fd |
|
|
|
7f59fd |
%description
|
|
|
7f59fd |
CLucene is a C++ port of the popular Apache Lucene search engine
|
|
|
7f59fd |
(http://lucene.apache.org/java).
|
|
|
7f59fd |
CLucene aims to be a high-speed alternative to Java Lucene, its API is very
|
|
|
7f59fd |
similar to that of the Java version. CLucene has recently been brought up to
|
|
|
7f59fd |
date with Lucene 2.3.2. It contains most of the same functionality as the Java version.
|
|
|
7f59fd |
|
|
|
7f59fd |
%package core
|
|
|
7f59fd |
Summary: Core clucene module
|
|
|
7f59fd |
Group: Development/System
|
|
|
7f59fd |
Provides: clucene = %{version}-%{release}
|
|
|
7f59fd |
#Requires: %{name} = %{version}-%{release}
|
|
|
7f59fd |
%description core
|
|
|
7f59fd |
CLucene is a C++ port of the popular Apache Lucene search engine
|
|
|
7f59fd |
(http://lucene.apache.org/java).
|
|
|
7f59fd |
CLucene aims to be a high-speed alternative to Java Lucene, its API is very
|
|
|
7f59fd |
similar to that of the Java version. CLucene has recently been brought up to
|
|
|
7f59fd |
date with Lucene 2.3.2. It contains most of the same functionality as the Java version.
|
|
|
7f59fd |
|
|
|
7f59fd |
%package core-devel
|
|
|
7f59fd |
Summary: Headers for developing programs that will use %{name}
|
|
|
7f59fd |
Group: Development/Libraries
|
|
|
7f59fd |
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
|
|
7f59fd |
Requires: %{name}-contribs-lib%{?_isa} = %{version}-%{release}
|
|
|
7f59fd |
%description core-devel
|
|
|
7f59fd |
This package contains the libraries and header files needed for
|
|
|
7f59fd |
developing with clucene
|
|
|
7f59fd |
|
|
|
7f59fd |
%package contribs-lib
|
|
|
7f59fd |
Summary: Language specific text analyzers for %{name}
|
|
|
7f59fd |
Group: Development/System
|
|
|
7f59fd |
Requires: %{name}-core%{?_isa} = %{version}-%{release}
|
|
|
7f59fd |
%description contribs-lib
|
|
|
7f59fd |
%{summary}.
|
|
|
7f59fd |
|
|
|
7f59fd |
|
|
|
7f59fd |
%prep
|
|
|
7f59fd |
%setup -n %{name}-core-%{version}
|
|
|
7f59fd |
|
|
|
7f59fd |
%patch50 -p1 -b .pkgconfig
|
|
|
7f59fd |
%patch51 -p1 -b .install_contribs_lib
|
|
|
7f59fd |
%patch52 -p1 -b .CLuceneConfig
|
|
|
7f59fd |
%patch53 -p1 -b .usleep
|
|
|
7f59fd |
|
|
|
7f59fd |
# nuke bundled code
|
|
|
7f59fd |
rm -rfv src/ext/{boost/,zlib/}
|
|
|
7f59fd |
|
|
|
7f59fd |
|
|
|
7f59fd |
%build
|
|
|
7f59fd |
mkdir -p %{_target_platform}
|
|
|
7f59fd |
pushd %{_target_platform}
|
|
|
7f59fd |
%{cmake} \
|
|
|
7f59fd |
-DBUILD_CONTRIBS_LIB:BOOL=ON \
|
|
|
7f59fd |
-DLIB_DESTINATION:PATH=%{_libdir} \
|
|
|
7f59fd |
-DLUCENE_SYS_INCLUDES:PATH=%{_libdir} \
|
|
|
7f59fd |
..
|
|
|
7f59fd |
popd
|
|
|
7f59fd |
|
|
|
7f59fd |
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
7f59fd |
|
|
|
7f59fd |
|
|
|
7f59fd |
%install
|
|
|
7f59fd |
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
7f59fd |
|
|
|
7f59fd |
|
|
|
7f59fd |
%check
|
|
|
7f59fd |
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
|
|
|
7f59fd |
test "$(pkg-config --modversion libclucene-core)" = "%{version}"
|
|
|
7f59fd |
# FIXME: make tests non-fatal for ppc and s390 (big endian 32 bit archs) until we have a proper fix
|
|
|
7f59fd |
#ifnarch ppc s390
|
|
|
7f59fd |
export CTEST_OUTPUT_ON_FAILURE=1
|
|
|
7f59fd |
# needing the 'touch' here seems an odd workaroudn for missing dependency, race condition or cache requirement
|
|
|
7f59fd |
touch src/test/CMakeLists.txt && \
|
|
|
7f59fd |
make -C %{_target_platform} cl_test && \
|
|
|
7f59fd |
time make -C %{_target_platform} test ARGS="--timeout 300 --output-on-failure" ||:
|
|
|
7f59fd |
#endif
|
|
|
7f59fd |
|
|
|
7f59fd |
%ldconfig_scriptlets core
|
|
|
7f59fd |
|
|
|
7f59fd |
%files core
|
|
|
7f59fd |
%defattr(-, root, root, -)
|
|
|
7f59fd |
%doc APACHE.license AUTHORS ChangeLog COPYING LGPL.license README
|
|
|
7f59fd |
%{_libdir}/libclucene-core.so.1*
|
|
|
7f59fd |
%{_libdir}/libclucene-core.so.%{version}
|
|
|
7f59fd |
%{_libdir}/libclucene-shared.so.1*
|
|
|
7f59fd |
%{_libdir}/libclucene-shared.so.%{version}
|
|
|
7f59fd |
|
|
|
7f59fd |
%ldconfig_scriptlets contribs-lib
|
|
|
7f59fd |
|
|
|
7f59fd |
%files contribs-lib
|
|
|
7f59fd |
%defattr(-, root, root, -)
|
|
|
7f59fd |
%{_libdir}/libclucene-contribs-lib.so.1*
|
|
|
7f59fd |
%{_libdir}/libclucene-contribs-lib.so.%{version}
|
|
|
7f59fd |
|
|
|
7f59fd |
%files core-devel
|
|
|
7f59fd |
%defattr(-, root, root, -)
|
|
|
7f59fd |
%dir %{_libdir}/CLucene
|
|
|
7f59fd |
%{_includedir}/CLucene/
|
|
|
7f59fd |
%{_includedir}/CLucene.h
|
|
|
7f59fd |
%{_libdir}/libclucene*.so
|
|
|
7f59fd |
%{_libdir}/CLucene/clucene-config.h
|
|
|
7f59fd |
%{_libdir}/CLucene/CLuceneConfig.cmake
|
|
|
7f59fd |
%{_libdir}/pkgconfig/libclucene-core.pc
|
|
|
7f59fd |
|
|
|
7f59fd |
|
|
|
7f59fd |
%changelog
|
|
|
7f59fd |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3.4-31.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sun Feb 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.3.3.4-30.20130812.e8e3d20git
|
|
|
7f59fd |
- Switch to %%ldconfig_scriptlets
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3.4-29.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3.4-28.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Mon Jul 03 2017 Jonathan Wakely <jwakely@redhat.com> - 2.3.3.4-27.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for Boost 1.64
|
|
|
7f59fd |
|
|
|
7f59fd |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3.4-26.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Fri Jan 27 2017 Jonathan Wakely <jwakely@redhat.com> - 2.3.3.4-25.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for Boost 1.63
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3.4-24.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Fri Jan 15 2016 Jonathan Wakely <jwakely@redhat.com> - 2.3.3.4-23.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for Boost 1.60
|
|
|
7f59fd |
|
|
|
7f59fd |
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 2.3.3.4-22.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for Boost 1.59
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-21.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Jul 22 2015 David Tardon <dtardon@redhat.com> - 2.3.3.4-20.20130812.e8e3d20git
|
|
|
7f59fd |
- rebuild for Boost 1.58
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-19.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.3.3.4-18.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
7f59fd |
|
|
|
7f59fd |
* Mon Jan 26 2015 Petr Machata <pmachata@redhat.com> - 2.3.3.4-17.20130812.e8e3d20git
|
|
|
7f59fd |
- Rebuild for boost 1.57.0
|
|
|
7f59fd |
|
|
|
7f59fd |
* Thu Oct 09 2014 Rex Dieter <rdieter@fedoraproject.org> 2.3.3.4-16.20130812.e8e3d20git
|
|
|
7f59fd |
- %%check: more love
|
|
|
7f59fd |
|
|
|
7f59fd |
* Thu Oct 09 2014 Rex Dieter <rdieter@fedoraproject.org> 2.3.3.4-15.20130812.e8e3d20git
|
|
|
7f59fd |
- fix minor cmake macro syntax error
|
|
|
7f59fd |
|
|
|
7f59fd |
* Tue Oct 07 2014 Rex Dieter <rdieter@fedoraproject.org> - 2.3.3.4-14.20130812.e8e3d20git
|
|
|
7f59fd |
- 20130812 git snapshot
|
|
|
7f59fd |
- fix tests
|
|
|
7f59fd |
- %%prep: explicitly delete bundled boost,zlib
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-13
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-12
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Thu May 22 2014 Petr Machata <pmachata@redhat.com> - 2.3.3.4-11
|
|
|
7f59fd |
- Rebuild for boost 1.55.0
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-10
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 2.3.3.4-9
|
|
|
7f59fd |
- Rebuild for boost 1.54.0
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-8
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-7
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Mon Mar 19 2012 Rex Dieter <rdieter@fedoraproject.org> 2.3.3.4-6
|
|
|
7f59fd |
- contribs-lib is not built and installed even with config (#794795, upstream ID: 3392466)
|
|
|
7f59fd |
- pkgconfig file is missing clucene-shared (upstream ID: 3461512)
|
|
|
7f59fd |
- non-descriptive descripton (#757319)
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sat Feb 25 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 2.3.3.4-5
|
|
|
7f59fd |
- Temporarily disable make check as it fails on all arches
|
|
|
7f59fd |
|
|
|
7f59fd |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.3.4-4
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sun Oct 23 2011 Rex Dieter <rdieter@fedoraproject.org> 2.3.3.4-3
|
|
|
7f59fd |
- include LUCENE_SYS_INCLUDES in pkgconfig --cflags output (#748196)
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Jun 08 2011 Rex Dieter <rdieter@fedoraproject.org> 2.3.3.4-2
|
|
|
7f59fd |
- cleanup cmake usage
|
|
|
7f59fd |
- fix scriptlets
|
|
|
7f59fd |
- track sonames
|
|
|
7f59fd |
|
|
|
7f59fd |
* Thu Jun 02 2011 Deji Akingunola <dakingun@gmail.com> - 2.3.3.4-1
|
|
|
7f59fd |
- Update to version 2.3.3.4
|
|
|
7f59fd |
|
|
|
7f59fd |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21b-3
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Thu Jul 08 2010 Deji Akingunola <dakingun@gmail.com> 0.9.21b-2
|
|
|
7f59fd |
- Include the license text in the -core subpackage.
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sun Jun 06 2010 Robert Scheck <robert@fedoraproject.org> 0.9.21b-1
|
|
|
7f59fd |
- Update to 0.9.21b
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Nov 04 2009 Dennis Gilmore <dennis@ausil.us> - 0.9.21-5
|
|
|
7f59fd |
- disable 'make check on sparc64 along with ppc64 and s390x
|
|
|
7f59fd |
|
|
|
7f59fd |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-4
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Tue Apr 14 2009 Karsten Hopp <karsten@redhat.com> 0.9.21-3
|
|
|
7f59fd |
- bypass 'make check' on s390x, similar to ppc64
|
|
|
7f59fd |
|
|
|
7f59fd |
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.21-2
|
|
|
7f59fd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Aug 27 2008 Deji Akingunola <dakingun@gmail.com> - 0.9.21-1
|
|
|
7f59fd |
- Update to version 0.9.21
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sun Feb 10 2008 Deji Akingunola <dakingun@gmail.com> - 0.9.20-4
|
|
|
7f59fd |
- Rebuild for gcc43
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Oct 25 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.20-3
|
|
|
7f59fd |
- Fix a typo in the License field
|
|
|
7f59fd |
|
|
|
7f59fd |
* Wed Oct 25 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.20-2
|
|
|
7f59fd |
- Fix multiarch conflicts (BZ #340891)
|
|
|
7f59fd |
- Bypass 'make check' for ppc64, its failing two tests there
|
|
|
7f59fd |
|
|
|
7f59fd |
* Tue Aug 21 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.20-1
|
|
|
7f59fd |
- Update to version 0.9.20
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sat Aug 11 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.19-1
|
|
|
7f59fd |
- Latest release update
|
|
|
7f59fd |
|
|
|
7f59fd |
* Fri Aug 03 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.16a-2
|
|
|
7f59fd |
- License tag update
|
|
|
7f59fd |
|
|
|
7f59fd |
* Thu Feb 22 2007 Deji Akingunola <dakingun@gmail.com> - 0.9.16a-2
|
|
|
7f59fd |
- Add -contrib subpackage
|
|
|
7f59fd |
|
|
|
7f59fd |
* Thu Dec 07 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.16a-1
|
|
|
7f59fd |
- Update to latest stable release
|
|
|
7f59fd |
- Run make check during build
|
|
|
7f59fd |
|
|
|
7f59fd |
* Mon Nov 20 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.15-3
|
|
|
7f59fd |
- Don't package APACHE.license since we've LGPL instead
|
|
|
7f59fd |
- Package documentation in devel subpackage
|
|
|
7f59fd |
|
|
|
7f59fd |
* Mon Nov 13 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.15-2
|
|
|
7f59fd |
- Fix a bunch of issues with the spec (#215258)
|
|
|
7f59fd |
- Moved the header file away from lib dir
|
|
|
7f59fd |
|
|
|
7f59fd |
* Sat Nov 04 2006 Deji Akingunola <dakingun@gmail.com> - 0.9.15-1
|
|
|
7f59fd |
- Initial packaging for Fedora Extras
|