File soprano.spec of Package soprano
#
# spec file for package soprano
#
# 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
Summary: C++/Qt based interface library for RDF
License: LGPL-2.1+ and GPL-2.0+
Group: System/Libraries
# 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
BuildRequires: fdupes
Requires: libsoprano4 = %{version}
Recommends: soprano-backend-virtuoso
Recommends: soprano_backend = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Soprano is an open and pluggable RDF resource framework which is build
on top of Qt. It provides RDF storage, RDF parsing, serialization,
inference, and full text indexing in a nice C++ API. The main target of
Soprano are desktop applications as it is being developed as a
subproject of Nepomuk, the semantic desktop initiative.
%prep
# COMMON2-BEGIN
%setup -q -n soprano-%{version}
# COMMON2-END
%package backend-redland
Summary: Redland backend for Soprano
License: LGPL-2.1+
Group: System/Libraries
Requires: libsoprano4 = %{version}
Provides: soprano_backend = %{version}
%description backend-redland
This package provides a Redland based backend for Soprano.
%package -n libsoprano4
Summary: C++/Qt based interface library for RDF
License: LGPL-2.1+
Group: System/Libraries
%requires_ge libqt4
%description -n libsoprano4
Soprano is an open and pluggable RDF resource framework which is build
on top of QT4. It provides RDF storage, RDF parsing, serialization,
inference, and full text indexing in a nice C++ API. The main target of
Soprano are desktop applications as it is being developed as a
subroject of Nepomuk, the semantic desktop initiative.
%package -n libsoprano-devel
Summary: Developer files for Soprano
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libraptor-devel
Requires: librasqal-devel
Requires: libredland-devel
Requires: libsoprano4 = %{version}
Requires: soprano-backend-redland
Requires: pkgconfig(libclucene-core)
%requires_ge libqt4-devel
%description -n libsoprano-devel
This package contains developer files for Soprano.
%build
%cmake_kde4 -d build -- -DCMAKE_SKIP_RPATH=OFF
%make_jobs
%install
cd build
make DESTDIR=%{buildroot} install
cd ..
%if 0%{?suse_version}
%suse_update_desktop_file %{buildroot}%{_datadir}/soprano/plugins/nquadparser.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/soprano/plugins/nquadserializer.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/soprano/plugins/raptorparser.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/soprano/plugins/raptorserializer.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/soprano/plugins/redlandbackend.desktop
%endif
%fdupes -s %{buildroot}%{_includedir}
%post -n libsoprano4 -p /sbin/ldconfig
%postun -n libsoprano4 -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING COPYING.LIB ChangeLog README TODO
%{_bindir}/onto2vocabularyclass
%{_bindir}/sopranocmd
%{_bindir}/sopranod
%{_datadir}/dbus-1/interfaces/org.soprano.*.xml
%dir %{_datadir}/soprano
%dir %{_datadir}/soprano/rules
%dir %{_datadir}/soprano/plugins
%{_datadir}/soprano/rules/*
%{_datadir}/soprano/plugins/nquadparser.desktop
%{_datadir}/soprano/plugins/nquadserializer.desktop
%{_datadir}/soprano/plugins/raptorparser.desktop
%{_datadir}/soprano/plugins/raptorserializer.desktop
%dir %{_libdir}/soprano
%{_libdir}/soprano/libsoprano_nquadparser.so
%{_libdir}/soprano/libsoprano_nquadserializer.so
%{_libdir}/soprano/libsoprano_raptorparser.so
%{_libdir}/soprano/libsoprano_raptorserializer.so
%files backend-redland
%defattr(-,root,root,-)
%{_libdir}/soprano/libsoprano_redlandbackend.so
%{_datadir}/soprano/plugins/redlandbackend.desktop
%files -n libsoprano4
%defattr(-,root,root,-)
%{_libdir}/libsopranoclient.so.1*
%{_libdir}/libsopranoserver.so.1*
%{_libdir}/libsopranoindex.so.*
%{_libdir}/libsoprano.so.4*
%files -n libsoprano-devel
%defattr(-,root,root,-)
%{_includedir}/soprano/
%{_includedir}/Soprano/
%{_libdir}/libsoprano.so
%{_libdir}/libsopranoclient.so
%{_libdir}/libsopranoserver.so
%{_libdir}/libsopranoindex.so
%{_libdir}/pkgconfig/soprano.pc
%{_libdir}/pkgconfig/sopranoclient.pc
%{_libdir}/pkgconfig/sopranoindex.pc
%{_libdir}/pkgconfig/sopranoserver.pc
%{_datadir}/soprano/cmake/
%changelog