File soprano.spec of Package soprano

#
# spec file for package soprano (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
Url:            http://soprano.sourceforge.net/
%if %suse_version > 1020
BuildRequires:  fdupes
%endif
License:        GPL v2 or later ; LGPL v2.1 or later
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:  clucene-core-devel doxygen raptor
Version:        2.3.0
Release:        4
Source:         soprano-%{version}.tar.bz2
Patch0:         datadir.diff
# COMMON1-END
Requires:       libsoprano4 = %{version}
Recommends:     soprano_backend = %version
Suggests:       soprano-backend-redland
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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>

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

%package -n libsoprano-devel
License:        LGPL v2.1 or later
Group:          Development/Libraries/C and C++
Summary:        C++/Qt based interface library for RDF
Requires:       libsoprano4 = %version
Requires:       %name = %version
%if %suse_version > 1020
Requires:       libqt4-devel >= %( echo `rpm -q --queryformat '%{VERSION}' libqt4-devel`)
%else
Requires:       qt-devel >= %( echo `rpm -q --queryformat '%{VERSION}' qt-devel`)
%endif
Requires:       clucene-core-devel >= %( echo `rpm -q --queryformat '%{VERSION}' clucene-core-devel`)
Requires:       libraptor-devel libredland-devel

%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:        LGPL v2.1 or later
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:        LGPL v2.1 or later
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
%if %suse_version > 1020
  %fdupes -s $RPM_BUILD_ROOT/usr/include
%endif

%post -n libsoprano4 -p /sbin/ldconfig

%postun -n libsoprano4 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS TODO
/usr/bin/onto2vocabularyclass
/usr/bin/sopranocmd
/usr/bin/sopranod
/usr/share/dbus-1/interfaces/org.soprano.Model.xml
/usr/share/dbus-1/interfaces/org.soprano.NodeIterator.xml
/usr/share/dbus-1/interfaces/org.soprano.QueryResultIterator.xml
/usr/share/dbus-1/interfaces/org.soprano.Server.xml
/usr/share/dbus-1/interfaces/org.soprano.StatementIterator.xml
%dir /usr/share/soprano
%dir /usr/share/soprano/rules
%dir /usr/share/soprano/plugins
/usr/share/soprano/rules/*
/usr/share/soprano/plugins/nquadparser.desktop
/usr/share/soprano/plugins/nquadserializer.desktop
/usr/share/soprano/plugins/raptorparser.desktop
/usr/share/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.1.0
%_libdir/libsopranoserver.so.1
%_libdir/libsopranoserver.so.1.0.0
%_libdir/libsoprano.so.4
%_libdir/libsoprano.so.4.2.0
%_libdir/libsopranoindex.so.1
%_libdir/libsopranoindex.so.1.1.0

%files -n libsoprano-devel
%defattr(-,root,root)
/usr/include/soprano
/usr/include/Soprano
%_libdir/libsoprano.so
%_libdir/libsopranoindex.so
%_libdir/libsopranoclient.so
%_libdir/libsopranoserver.so
%_libdir/pkgconfig/soprano.pc
/usr/share/cmake/Modules/SopranoAddOntology.cmake

%files backend-redland
%defattr(-,root,root)
%_libdir/soprano/libsoprano_redlandbackend.so
/usr/share/soprano/plugins/redlandbackend.desktop

%changelog
openSUSE Build Service is sponsored by