File soprano-backend-virtuoso.spec of Package soprano

#
# spec file for package soprano-backend-virtuoso
#
# Copyright (c) 2013 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-virtuoso
Summary:        Virtuoso backend for Soprano
License:        GPL-2.0+
Group:          System/Libraries
# COMMON1-BEGIN
# COMMON1-BEGIN
Version:        2.9.4
Release:        0
Url:            http://soprano.sourceforge.net/
Source0:        http://downloads.sourceforge.net/soprano/soprano-%{version}.tar.bz2
Source100:      baselibs.conf
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  kde4-filesystem
BuildRequires:  libqt4-devel
BuildRequires:  libraptor-devel
BuildRequires:  librasqal-devel
BuildRequires:  libredland-devel
BuildRequires:  pkgconfig(libclucene-core)
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
# COMMON1-END
# COMMON1-END
BuildRequires:  libiodbc-devel
BuildRequires:  libsoprano-devel = %{version}
Requires:       libsoprano4 = %{version}
Requires:       virtuoso-server
Provides:       backend-virtuso = %{version}
Provides:       soprano_backend = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides a Virtuoso based backend for Soprano.

%prep
# COMMON2-BEGIN
# COMMON2-BEGIN
%setup -q -n soprano-%{version}
# COMMON2-END
# COMMON2-END

%build
%cmake_kde4 -d build -- -DCMAKE_SKIP_RPATH=OFF -DBUILD_VIRTUOSO_BACKEND=ON
%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/virtuoso
make DESTDIR=%{buildroot} install
cd ..

%if 0%{?suse_version}
%suse_update_desktop_file %{buildroot}%{_datadir}/soprano/plugins/virtuosobackend.desktop
%endif

%files
%defattr(-,root,root,-)
%{_libdir}/soprano/libsoprano_virtuosobackend.so
%{_datadir}/soprano/plugins/virtuosobackend.desktop

%changelog
openSUSE Build Service is sponsored by