File clucene-core.spec of Package clucene-core

#
# spec file for package clucene-core
#
# Copyright (c) 2011 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/
#



Name:           clucene-core
Version:        0.9.21
Release:        77
License:        LGPL-2.1 or Apache-2.0
Summary:        CLucene is a C++ port of Lucene
Url:            http://clucene.sourceforge.net/
Group:          Development/Libraries/C and C++
Source:         http://prdownloads.sourceforge.net/clucene/%{name}-%{version}.tar.bz2
Source2:        baselibs.conf
Patch0:         gcc-4.4.diff
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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++.

%package devel

Summary:        Development files for clucene library
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       libstdc++-devel

%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++.

%prep
%setup -q
%patch0

# test/data is not allowed to be distributed bnc#253602
rm -rf test/data/reuters* tests/data/utf*

%build
./autogen.sh
%configure --with-pic --disable-static
make %{?_smp_mflags}

%check
make check || true

%install
%make_install
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
openSUSE Build Service is sponsored by