that librasqal1 changed to librasqal2. Due to requires_ge simply ignoring the dep if the package cannot be found, this was effectively a NOP for the last 15 years - and as nobody seemed to miss it, the autodep of RPM seems good enough. For reference: librasqal changed from .so.1 to .so.2 with https://build.opensuse.org/package/rdiff/openSUSE:Factory/rasqal?linkrev=base&rev=8 OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/redland?expand=0&rev=48
165 lines
5.1 KiB
RPMSpec
165 lines
5.1 KiB
RPMSpec
#
|
|
# spec file for package redland
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%bcond_with perl
|
|
|
|
Name: redland
|
|
%define lname librdf0
|
|
Version: 1.0.17
|
|
Release: 0
|
|
Summary: Libraries that provide support for the Resource Description Framework (RDF)
|
|
License: Apache-2.0 AND LGPL-2.1-or-later
|
|
Group: System/Libraries
|
|
URL: http://www.librdf.org
|
|
|
|
Source0: http://download.librdf.org/source/%{name}-%{version}.tar.gz
|
|
Source1: baselibs.conf
|
|
%if 0%{?suse_version} >= 1210
|
|
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
|
|
Patch1: redland-ocloexec.patch
|
|
%endif
|
|
Patch2: redland-db6.diff
|
|
Patch3: redland-postgresql.patch
|
|
Patch4: redland-fix-tests.patch
|
|
BuildRequires: autoconf
|
|
BuildRequires: db-devel
|
|
BuildRequires: librasqal-devel
|
|
BuildRequires: pkg-config
|
|
BuildRequires: postgresql-devel
|
|
BuildRequires: 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.
|
|
|
|
%package -n libredland-devel
|
|
Summary: Development package for programs that use Redland
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %lname = %version
|
|
|
|
%description -n libredland-devel
|
|
Files needed to develop with the Redland RDF library.
|
|
|
|
%package -n %lname
|
|
Summary: Libraries that provide support for the Resource Description Framework (RDF)
|
|
Group: System/Libraries
|
|
# Added for 13.1 time
|
|
Obsoletes: libredland0 < %version-%release
|
|
Provides: libredland0 = %version-%release
|
|
|
|
%description -n %lname
|
|
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.
|
|
|
|
%package -n redland-storage-postgresql
|
|
Summary: Redland storage module for PostgresSQL
|
|
Group: System/Libraries
|
|
Requires: redland
|
|
|
|
%description -n redland-storage-postgresql
|
|
This store provides storage using the PostgreSQL open source database
|
|
including contexts.
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
%if 0%{?suse_version} >= 1210
|
|
%patch -P 1 -p1
|
|
%endif
|
|
%patch -P 3
|
|
#
|
|
# If multiple libdb-X.Y.so are installed, redland's logic in configure.ac picks
|
|
# the library by the numbers it knows (and it may not know future versions!),
|
|
# but will use any available headers. This can lead to it choosing some random
|
|
# libdb-X.Y.so that does not match up with the headers, for linking.
|
|
#
|
|
%patch -P 2 -p1
|
|
%patch -P 4 -p1
|
|
|
|
%build
|
|
autoconf
|
|
%global optflags %{optflags} -D_GNU_SOURCE
|
|
# 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 \
|
|
--with-postgresql --with-virtuoso=no \
|
|
--without-mysql \
|
|
--with-pic \
|
|
--disable-static \
|
|
--with-html-dir=%{_docdir}/%{name}-devel/ \
|
|
--includedir=%{_includedir}/%{name}
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR="%buildroot" docdir=%{_docdir}/%{name}-devel/
|
|
rm -f %{buildroot}%{_libdir}/librdf*.la
|
|
rm -f %{buildroot}%{_libdir}/redland/librdf_storage_postgresql.la
|
|
|
|
%check
|
|
%if 0%{?suse_version} > 1030
|
|
export MALLOC_CHECK_=2
|
|
make check
|
|
unset MALLOC_CHECK_
|
|
%endif
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%files -n %lname
|
|
%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 -n redland-storage-postgresql
|
|
%defattr(-, root, root)
|
|
%{_libdir}/redland/librdf_storage_postgresql.so
|
|
|
|
%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*
|
|
%license COPYING COPYING.LIB LICENSE.txt LICENSE-2.0.txt
|
|
%doc AUTHORS ChangeLog NEWS README NOTICE
|
|
|
|
%changelog
|