File redland.spec of Package redland
#
# spec file for package redland
#
# 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/
#
# norootforbuild
%bcond_with perl
Name: redland
Version: 1.0.14
Release: 6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
License: LGPLv2.1+ ; ASLv..
Group: System/Libraries
Url: http://www.librdf.org
Source0: http://download.librdf.org/source/%{name}-%{version}.tar.gz
Summary: Libraries that provide support for the Resource Description Framework (RDF)
BuildRequires: librasqal-devel
BuildRequires: db-devel pkg-config sqlite-devel
%description
Redland is a library that provides a high-level interface for RDF
(Resource Description Framework) implemented in an object-based API. It
is modular and supports different RDF parsers, serializers, storage and
query languages. Redland is designed for developers to provide RDF
support in their applications as well as a core library for RDF
developers to start with.
Authors:
--------
Dave Beckett <dave@dajobe.org>
%package -n libredland-devel
License: LGPLv2.1+ ; ASLv..
Summary: Development package for programs that use Redland
Group: Development/Libraries/C and C++
Requires: libredland0 = %{version}
%description -n libredland-devel
Files needed to develop with the Redland RDF library.
Authors:
--------
Dave Beckett <dave@dajobe.org>
%package -n libredland0
License: LGPLv2.1+ ; ASLv..
Summary: Libraries that provide support for the Resource Description Framework (RDF)
Group: System/Libraries
%requires_ge librasqal1
%description -n libredland0
Redland is a library that provides a high-level interface for RDF
(Resource Description Framework) implemented in an object-based API. It
is modular and supports different RDF parsers, serializers, storage and
query languages. Redland is designed for developers to provide RDF
support in their applications as well as a core library for RDF
developers to start with.
Authors:
--------
Dave Beckett <dave@dajobe.org>
%prep
%setup -q
%build
# only compile bdb backend as it seems to be the recommended one?
%configure --enable-release --with-raptor=system --with-rasqal=system \
--with-threestore=no --with-sqlite=3 \
--without-postgresql --with-virtuoso=no \
--without-mysql \
--with-pic \
--disable-static \
--with-html-dir=%{_docdir}/%{name}-devel/ \
--includedir=%{_includedir}/%{name}
%{__make} %{?jobs:-j %jobs}
%install
%makeinstall docdir=%{_docdir}/%{name}-devel/
rm -f %{buildroot}%{_libdir}/librdf*.la
%check
%if %suse_version > 1030
export MALLOC_CHECK_=2
make check
unset MALLOC_CHECK_
%endif
%clean
%{__rm} -rf %{buildroot}
%post -n libredland0 -p /sbin/ldconfig
%postun -n libredland0 -p /sbin/ldconfig
%files -n libredland0
%defattr(-, root, root)
%{_libdir}/librdf*.so.*
%files -n libredland-devel
%defattr(-, root, root)
%{_bindir}/redland-config
%{_libdir}/librdf*.so
%{_libdir}/pkgconfig/redland.pc
%dir %{_libdir}/redland
%{_libdir}/redland/librdf_storage_sqlite.la
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/Redland.i
%{_includedir}/%{name}/
%{_mandir}/man1/redland-config.1*
%{_mandir}/man3/redland.3*
%doc %{_docdir}/%{name}-devel/
%files
%defattr(-, root, root)
%{_bindir}/rdfproc
%{_bindir}/redland-db-upgrade
%{_libdir}/redland/librdf_storage_sqlite.so
%{_mandir}/man1/redland-db-upgrade.1*
%{_mandir}/man1/rdfproc.1*
%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
%doc LICENSE-2.0.txt NOTICE
%changelog