File clucene-core.spec of Package clucene-core
#
# spec file for package clucene-core (Version 0.9.21)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: clucene-core
%define pkg_name clucene-core
Version: 0.9.21
Release: 4
License: ASLv..
Group: Development/Libraries/C and C++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen gcc-c++
Url: http://clucene.sourceforge.net/
Source: http://prdownloads.sourceforge.net/clucene/%{pkg_name}-%{version}-stripped.tar.bz2
Source2: baselibs.conf
Patch0: gcc-4.4.diff
Summary: CLucene is a C++ port of Lucene
%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++.
Authors:
--------
Doug Cutting
John Wheeler
Robert G. Ristroph
David Rushby
Jimmy Pritts
Peter Edwards
Jorge Sabater Redondo
Daniel Glassey
Peter Gladkikh
Pedja
Peter Hodges
Ben van Klinken
%package devel
License: ASLv..
Group: Development/Libraries/C and C++
Requires: %{name} = %{version} libstdc++-devel
Summary: CLucene is a C++ port of Lucene
%description devel
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++.
Authors:
--------
Doug Cutting
John Wheeler
Robert G. Ristroph
David Rushby
Jimmy Pritts
Peter Edwards
Jorge Sabater Redondo
Daniel Glassey
Peter Gladkikh
Pedja
Peter Hodges
%prep
%setup -q -n %{pkg_name}-%{version}
%patch0
if [ -e test/data ]; then
echo "test/data is not allowed to be distributed."
echo "see #253602"
exit -1
fi
%build
./autogen.sh
%configure --with-pic --disable-static
%{__make} %{?jobs:-j %jobs}
%check
%{__make} check || true
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
%{__rm} -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libclucene.so.*
%doc doc/*htm doc/*.jpg
%doc README* APACHE.license AUTHORS COPYING HACKING README REQUESTS
%files devel
%defattr(-,root,root,-)
%{_includedir}/CLucene.h
%{_includedir}/CLucene/
%dir %{_libdir}/CLucene/
%{_libdir}/CLucene/clucene-config.h
%{_libdir}/libclucene.so
%changelog