File soprano-backend-sesame.spec of Package soprano
#
# spec file for package soprano-backend-sesame (Version 2.3.0)
#
# 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/
#
Name: soprano-backend-sesame
Url: http://soprano.sourceforge.net/
BuildRequires: fdupes java-devel libsoprano-devel
License: GPL v2 or later ; LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: C++/Qt based interface library for RDF - Sesame backend
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: java-devel
# COMMON1-BEGIN
# COMMON1-BEGIN
BuildRequires: cmake kde4-filesystem libqt4-devel libraptor-devel libredland-devel
BuildRequires: clucene-core-devel doxygen raptor
Version: 2.3.0
Release: 4
Source: soprano-%{version}.tar.bz2
Patch0: datadir.diff
# COMMON1-END
# COMMON1-END
Provides: soprano_backend = %version
Provides: backend-sesame2 = %version
Requires: libsoprano4 = %version
%description
This package provides a Sesame based backend for Soprano.
%prep
# COMMON2-BEGIN
# COMMON2-BEGIN
%setup -q -n soprano-%version
%patch0
# COMMON2-END
# COMMON2-END
%build
export JAVA_HOME=%{_jvmdir}/java
%cmake_kde4 -d build -- -DCMAKE_SKIP_RPATH=OFF
%make_jobs
%install
cd build
# this uses the cmake (mis)feature of 'make' building also the dependencies outside
# the directory and its subdirectories, 'make install' not installing them
cd backends/sesame2
%makeinstall
%if %suse_version > 1020
%fdupes -s $RPM_BUILD_ROOT/usr/include
%endif
cd ..
%files
%defattr(-,root,root)
/usr/share/soprano/sesame2
%_libdir/soprano/libsoprano_sesame2backend.so
/usr/share/soprano/plugins/sesame2backend.desktop
%changelog