Group :: Sistema/Bibliotecas
RPM: libclucene-core
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define rname clucene-core
Name: libclucene-core
Version: 2.3.3.4
Release: alt7
Summary: CLucene is a C++ port of Lucene.
License: LGPL-2.1-only or Apache-2.0
Group: System/Libraries
Url: http://clucene.sf.net
Source: %rname-%version.tar.gz
# FC
Patch1: clucene-core-2.3.3.4-install_contribs_lib.patch
Patch2: clucene-core-2.3.3.4-pkgconfig.patch
# SuSE
Patch11: clucene-kill-ext-includes.diff
Patch12: clucene-core-2.3.3.4-opensuse-gcc12-header-files.patch
# ALT
Patch21: %rname-%version-alt-build.patch
BuildRequires: boost-devel-headers cmake gcc-c++ zlib-devel kde-common-devel
%description
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 -n libclucene-shared
Group: System/Libraries
Summary: CLucene shared library
%description -n libclucene-shared
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 -n libclucene-contribs-lib
Group: System/Libraries
Summary: CLucene contribs library
%description -n libclucene-contribs-lib
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 -n %name-devel
Summary: Development library and headers files fo CLucene
Group: Development/C++
#Requires: libclucene-core libclucene-shared
Conflicts: libclucene-devel
%description -n %name-devel
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 -n %name-devel-static
Summary: Static library for CLucene
Group: Development/C++
Requires: %name-devel
%description -n %name-devel-static
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 -qn %rname-%version
%patch1 -p1
%patch2 -p1
%patch11 -p1
%patch12 -p1
%patch21 -p2
%build
%ifarch %e2k
# lcc 1.25.15 barfs on googletest's testing::<unnamed>::TestNameIs::operator()
%add_optflags -Wno-error=unused-function
%endif
%Kcmake \
-DBUILD_CONTRIBS_LIB:BOOL=ON \
-DLUCENE_SYS_INCLUDES:PATH=%_libdir
make -C BUILD*
%install
%Kinstall
%files
%_libdir/libclucene-core.so.*
%files -n libclucene-shared
%_libdir/libclucene-shared.so.*
%files -n libclucene-contribs-lib
%_libdir/libclucene-contribs-lib.so.*
%files -n %name-devel
%_pkgconfigdir/libclucene-core.pc
%_libdir/CLucene/
%_libdir/CLuceneConfig.cmake
%_includedir/CLucene
%_includedir/CLucene.h
%_libdir/lib*.so
#%files -n %name-devel-static
#%_libdir/lib*.a
%changelog
…
Todas as alterações você pod ver aqui
Name: libclucene-core
Version: 2.3.3.4
Release: alt7
Summary: CLucene is a C++ port of Lucene.
License: LGPL-2.1-only or Apache-2.0
Group: System/Libraries
Url: http://clucene.sf.net
Source: %rname-%version.tar.gz
# FC
Patch1: clucene-core-2.3.3.4-install_contribs_lib.patch
Patch2: clucene-core-2.3.3.4-pkgconfig.patch
# SuSE
Patch11: clucene-kill-ext-includes.diff
Patch12: clucene-core-2.3.3.4-opensuse-gcc12-header-files.patch
# ALT
Patch21: %rname-%version-alt-build.patch
BuildRequires: boost-devel-headers cmake gcc-c++ zlib-devel kde-common-devel
%description
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 -n libclucene-shared
Group: System/Libraries
Summary: CLucene shared library
%description -n libclucene-shared
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 -n libclucene-contribs-lib
Group: System/Libraries
Summary: CLucene contribs library
%description -n libclucene-contribs-lib
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 -n %name-devel
Summary: Development library and headers files fo CLucene
Group: Development/C++
#Requires: libclucene-core libclucene-shared
Conflicts: libclucene-devel
%description -n %name-devel
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 -n %name-devel-static
Summary: Static library for CLucene
Group: Development/C++
Requires: %name-devel
%description -n %name-devel-static
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 -qn %rname-%version
%patch1 -p1
%patch2 -p1
%patch11 -p1
%patch12 -p1
%patch21 -p2
%build
%ifarch %e2k
# lcc 1.25.15 barfs on googletest's testing::<unnamed>::TestNameIs::operator()
%add_optflags -Wno-error=unused-function
%endif
%Kcmake \
-DBUILD_CONTRIBS_LIB:BOOL=ON \
-DLUCENE_SYS_INCLUDES:PATH=%_libdir
make -C BUILD*
%install
%Kinstall
%files
%_libdir/libclucene-core.so.*
%files -n libclucene-shared
%_libdir/libclucene-shared.so.*
%files -n libclucene-contribs-lib
%_libdir/libclucene-contribs-lib.so.*
%files -n %name-devel
%_pkgconfigdir/libclucene-core.pc
%_libdir/CLucene/
%_libdir/CLuceneConfig.cmake
%_includedir/CLucene
%_includedir/CLucene.h
%_libdir/lib*.so
#%files -n %name-devel-static
#%_libdir/lib*.a
%changelog
…
Todas as alterações você pod ver aqui