File soprano.spec of Package soprano
#
# spec file for package soprano (Version 2.5.63)
#
# Copyright (c) 2010 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
Url: http://soprano.sourceforge.net/
BuildRequires: fdupes
License: LGPLv2.1+
Group: Development/Libraries/C and C++
Summary: C++/Qt based interface library for RDF
# COMMON1-BEGIN
BuildRequires: cmake kde4-filesystem libqt4-devel libraptor-devel libredland-devel
BuildRequires: boost-devel clucene-core-devel doxygen raptor
Version: 2.5.63
Release: 2
Source: soprano-%{version}.tar.bz2
Source2: baselibs.conf
# COMMON1-END
Requires: libsoprano4 = %{version}
Recommends: soprano_backend = %{version}
Recommends: soprano-backend-virtuoso
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.
Authors:
--------
Daniele Galdi <daniele.galdi@gmail.com>
Sebastian Trueg <trueg@kde.org>
%prep
# COMMON2-BEGIN
%setup -q -n soprano-%{version}
# COMMON2-END
%package -n libsoprano-devel
License: LGPLv2.1+
Group: Development/Libraries/C and C++
Summary: C++/Qt based interface library for RDF
Requires: libsoprano4 = %version
Requires: %name = %version
Requires: libqt4-devel >= %( echo `rpm -q --queryformat '%{VERSION}' libqt4-devel`)
Requires: clucene-core-devel >= %( echo `rpm -q --queryformat '%{VERSION}' clucene-core-devel`)
Requires: libraptor-devel libredland-devel
Requires: soprano-backend-redland
%description -n libsoprano-devel
Soprano is a RDF QT/C++ interface library using redland as a backend
Authors:
--------
Daniele Galdi <daniele.galdi@gmail.com>
Sebastian Trueg <trueg@kde.org>
%package -n libsoprano4
License: LGPLv2.1+
Group: Development/Libraries/C and C++
Summary: C++/Qt based interface library for RDF
%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.
Authors:
--------
Daniele Galdi <daniele.galdi@gmail.com>
Sebastian Trueg <trueg@kde.org>
%package backend-redland
License: LGPLv2.1+
Group: Development/Libraries/C and C++
Summary: C++/Qt based interface library for RDF
Provides: soprano_backend = %version
Requires: libsoprano4 = %version
%description backend-redland
Soprano is a RDF QT/C++ interface library using redland as a backend
Authors:
--------
Daniele Galdi <daniele.galdi@gmail.com>
Sebastian Trueg <trueg@kde.org>
%build
%cmake_kde4 -d build -- -DCMAKE_SKIP_RPATH=OFF
%make_jobs
%install
cd build
%makeinstall
%fdupes -s %{buildroot}%{_includedir}
%post -n libsoprano4 -p /sbin/ldconfig
%postun -n libsoprano4 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc AUTHORS TODO
%{_bindir}/onto2vocabularyclass
%{_bindir}/sopranocmd
%{_bindir}/sopranod
%{_datadir}/dbus-1/interfaces/org.soprano.Model.xml
%{_datadir}/dbus-1/interfaces/org.soprano.NodeIterator.xml
%{_datadir}/dbus-1/interfaces/org.soprano.QueryResultIterator.xml
%{_datadir}/dbus-1/interfaces/org.soprano.Server.xml
%{_datadir}/dbus-1/interfaces/org.soprano.StatementIterator.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 -n libsoprano4
%defattr(-,root,root)
%{_libdir}/libsopranoclient.so.1
%{_libdir}/libsopranoclient.so.1.2.0
%{_libdir}/libsopranoserver.so.1
%{_libdir}/libsopranoserver.so.1.2.0
%{_libdir}/libsoprano.so.4
%{_libdir}/libsoprano.so.4.3.0
%{_libdir}/libsopranoindex.so.1
%{_libdir}/libsopranoindex.so.1.1.0
%files -n libsoprano-devel
%defattr(-,root,root)
%{_includedir}/soprano
%{_includedir}/Soprano
%{_libdir}/libsoprano.so
%{_libdir}/libsopranoindex.so
%{_libdir}/libsopranoclient.so
%{_libdir}/libsopranoserver.so
%{_libdir}/pkgconfig/soprano.pc
%{_libdir}/pkgconfig/sopranoclient.pc
%{_libdir}/pkgconfig/sopranoindex.pc
%{_libdir}/pkgconfig/sopranoserver.pc
%dir %{_datadir}/soprano/cmake
%{_datadir}/soprano/cmake/SopranoAddOntology.cmake
%files backend-redland
%defattr(-,root,root)
%{_libdir}/soprano/libsoprano_redlandbackend.so
%{_datadir}/soprano/plugins/redlandbackend.desktop
%changelog