File soprano-backend-virtuoso.spec.in of Package soprano

#
# spec file for package soprano-backend-virtuoso (Version 2.4.2)
#
# Copyright (c) 2008 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
Url:            http://soprano.sourceforge.net/
BuildRequires:  fdupes libsoprano-devel
License:        GPLv2+ ; LGPLv2.1+
Group:          Development/Libraries/C and C++
Summary:        C++/Qt based interface library for RDF
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libiodbc-devel
# COMMON1-BEGIN
# COMMON1-END
Provides:       soprano_backend = %{version}
Provides:       backend-virtuso = %{version}
Requires:       libsoprano4 = %{version}
Requires:       virtuoso-server

%description
Soprano Backend for the RDF QT/C++ interface library using Virtuoso for storage.

%prep
# COMMON2-BEGIN
# 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
  %makeinstall
%if %suse_version > 1020
  %fdupes -s %{buildroot}%{_includedir}
%endif
  cd ..


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

%changelog