[4825] | 1 | Name: clucene-core |
---|
[521] | 2 | Summary: A C++ port of Lucene |
---|
[4825] | 3 | Version: 2.3.3.4 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | |
---|
| 6 | License: LGPLv2+ or ASL 2.0 |
---|
[521] | 7 | Group: System Environment/Libraries |
---|
| 8 | URL: http://sourceforge.net/projects/clucene |
---|
| 9 | |
---|
[4825] | 10 | Source: %{name}-%{version}.tar.gz |
---|
| 11 | |
---|
[521] | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[4825] | 13 | BuildRequires: cmake |
---|
| 14 | BuildRequires: gawk |
---|
| 15 | BuildRequires: libboost-devel |
---|
| 16 | BuildRequires: zlib-devel |
---|
[521] | 17 | |
---|
| 18 | %description |
---|
[4825] | 19 | CLucene is a C++ port of the popular Apache Lucene search engine |
---|
| 20 | (http://lucene.apache.org/java). |
---|
| 21 | CLucene aims to be a high-speed alternative to Java Lucene, its API is very |
---|
| 22 | similar to that of the Java version. CLucene has recently been brought up to |
---|
| 23 | date with Lucene 2.3.2. It contains most of the same functionality as the Java version. |
---|
[521] | 24 | |
---|
| 25 | %package devel |
---|
| 26 | Summary: Headers for developing programs that will use %{name} |
---|
| 27 | Group: Development/Libraries |
---|
| 28 | Requires: %{name} = %{version}-%{release} |
---|
| 29 | |
---|
| 30 | %description devel |
---|
[4825] | 31 | This package contains the static libraries and header files needed for |
---|
| 32 | developing with clucene |
---|
[521] | 33 | |
---|
| 34 | %prep |
---|
| 35 | %setup -q |
---|
| 36 | |
---|
| 37 | %build |
---|
[4825] | 38 | mkdir -p %{_target_platform} |
---|
| 39 | pushd %{_target_platform} |
---|
| 40 | export CFLAGS="%{optflags}" |
---|
| 41 | export CXXFLAGS="%{optflags}" |
---|
| 42 | export FFLAGS="%{optflags}" |
---|
| 43 | %ifarch x86_64 ppc64 |
---|
| 44 | %define lib_suffix 64 |
---|
| 45 | %else |
---|
| 46 | %define lib_suffix %{nil} |
---|
| 47 | %endif |
---|
| 48 | %cmake \ |
---|
| 49 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
---|
| 50 | -DLIB_DESTINATION=%{_libdir} -DLIB_SUFFIX=%{lib_suffix} \ |
---|
| 51 | -DLUCENE_SYS_INCLUDES=%{_libdir} \ |
---|
| 52 | .. |
---|
| 53 | popd |
---|
[521] | 54 | |
---|
[4825] | 55 | make VERBOSE=1 %{?_smp_mflags} -C %{_target_platform} |
---|
| 56 | |
---|
[521] | 57 | %install |
---|
| 58 | rm -rf $RPM_BUILD_ROOT |
---|
[4825] | 59 | make DESTDIR=$RPM_BUILD_ROOT install -C %{_target_platform} |
---|
[521] | 60 | |
---|
[4825] | 61 | rm -rf $RPM_BUILD_ROOT%{_libdir}/CLuceneConfig.cmake |
---|
| 62 | #rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
[521] | 63 | |
---|
[4825] | 64 | #check |
---|
| 65 | #cd %{_target_platform} |
---|
| 66 | #make cl_test |
---|
| 67 | #make test |
---|
| 68 | |
---|
[521] | 69 | %clean |
---|
| 70 | rm -rf $RPM_BUILD_ROOT |
---|
| 71 | |
---|
| 72 | %post -p /sbin/ldconfig |
---|
| 73 | |
---|
| 74 | %postun -p /sbin/ldconfig |
---|
| 75 | |
---|
| 76 | %files |
---|
| 77 | %defattr(-,root,root) |
---|
[4825] | 78 | %doc APACHE.license AUTHORS ChangeLog COPYING LGPL.license README |
---|
| 79 | %{_libdir}/libclucene*.so.* |
---|
[521] | 80 | |
---|
| 81 | %files devel |
---|
| 82 | %defattr(-,root,root) |
---|
[4825] | 83 | %dir %{_includedir}/CLucene |
---|
| 84 | %dir %{_libdir}/CLucene |
---|
| 85 | %{_includedir}/CLucene/* |
---|
[521] | 86 | %{_includedir}/CLucene.h |
---|
[4825] | 87 | %{_libdir}/libclucene*.so |
---|
[521] | 88 | %{_libdir}/CLucene/clucene-config.h |
---|
[4825] | 89 | %{_libdir}/CLucene/CLuceneConfig.cmake |
---|
| 90 | %{_libdir}/pkgconfig/libclucene-core.pc |
---|
[521] | 91 | |
---|
| 92 | %changelog |
---|
[4825] | 93 | * Sat Sep 24 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.3.4-1 |
---|
| 94 | - new upstream release |
---|
| 95 | |
---|
[521] | 96 | * Mon Oct 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.21b-2 |
---|
| 97 | - run make check at %%check |
---|
| 98 | |
---|
| 99 | * Tue Dec 9 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9.21b-1 |
---|
| 100 | - new upstream release |
---|
| 101 | |
---|
| 102 | * Sat Mar 29 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9.20-1 |
---|
| 103 | - fix release |
---|
| 104 | |
---|
| 105 | * Mon Nov 19 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9.20-0vl2 |
---|
| 106 | - stop moving clucene-config.h from %%{_libdir}/CLucene |
---|
| 107 | |
---|
| 108 | * Thu Oct 11 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9.20-0vl1 |
---|
| 109 | - new upstream release |
---|
| 110 | |
---|
| 111 | * Sat Jul 28 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9.19-0vl1 |
---|
| 112 | - new upstream release |
---|
| 113 | |
---|
| 114 | * Mon May 14 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9.16a-0vl1 |
---|
| 115 | - initial release |
---|