File virtuoso.spec of Package virtuoso

#
# spec file for package virtuoso (Version 6.1.2)
#
# Copyright (c) 2011 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:           virtuoso
# This .spec builds only a limited subset of Virtuoso that is needed for Soprano.
#define sversion 20091009

BuildRequires:  bison flex gperf openssl
BuildRequires:  fastjar libopenssl-devel libwbxml2-devel libxml2-devel
BuildRequires:  ImageMagick-devel
%if !%sles_version
BuildRequires:  htmldoc
%endif
Url:            http://virtuoso.openlinksw.com/
License:        GPLv2
Group:          Productivity/Databases/Servers
Summary:        Relational database server with RDF
Version:        6.1.2
Release:        2
Source:         virtuoso-opensource-%{version}.tar.gz
Patch1:         build-sanely.diff
Patch2:         rpmlint-fixes.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       virtuoso-server virtuoso-drivers

%description
Virtuoso is an innovative Universal Server platform that delivers
an enterprise level Data Integration and Management solution for SQL,
RDF, XML, Web Services, and Business Processes.  It includes an RDF
layer for semantic applications.

It is used by the Virtuoso backend for Soprano in KDE.

%package -n virtuoso-server
License:        GPLv2
Group:          Productivity/Databases/Servers
Summary:        Virtuoso server
Requires:       virtuoso-drivers = %version

%description -n virtuoso-server
Virtuoso is an innovative Universal Server platform that delivers
an enterprise level Data Integration and Management solution for SQL,
RDF, XML, Web Services, and Business Processes.

It is used by the Virtuoso backend for Soprano in KDE.

%package -n virtuoso-drivers
License:        GPLv2
Group:          Productivity/Databases/Servers
Summary:        Virtuoso ODBC Driver

%description -n virtuoso-drivers
Virtuoso is an innovative Universal Server platform that delivers
an enterprise level Data Integration and Management solution for SQL,
RDF, XML, Web Services, and Business Processes.

It is used by the Virtuoso backend for Soprano in KDE.

%prep
%setup -q -n virtuoso-opensource-%{version}
%patch1
%patch2

%build
  # autogen.sh because of patching Makefile.am
  libtoolize -f
  ./autogen.sh
  %configure --disable-static --with-layout=openSUSE --disable-all-vads
  make %{?jobs:-j%jobs}

%install
  %makeinstall

%files -n virtuoso-server
%defattr(-,root,root)
%{_bindir}/virtuoso-t

%files -n virtuoso-drivers
%defattr(-,root,root)
%{_libdir}/virtodbc.la
%{_libdir}/virtodbc.so
%{_libdir}/virtodbc_r.la
%{_libdir}/virtodbc_r.so
%{_libdir}/virtodbcu.la
%{_libdir}/virtodbcu.so
%{_libdir}/virtodbcu_r.la
%{_libdir}/virtodbcu_r.so

%files
%defattr(-,root,root)
%dir /usr/share/doc/packages/virtuoso
%doc /usr/share/doc/packages/virtuoso/*

%changelog
openSUSE Build Service is sponsored by