2007-01-16 00:34:57 +01:00
|
|
|
#
|
2011-04-20 13:42:36 +02:00
|
|
|
# spec file for package raptor
|
2007-01-16 00:34:57 +01:00
|
|
|
#
|
2023-03-07 13:24:43 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-16 00:34:57 +01:00
|
|
|
#
|
2008-09-15 17:57:19 +02:00
|
|
|
# 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.
|
|
|
|
|
2020-11-10 12:26:27 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:34:57 +01:00
|
|
|
#
|
|
|
|
|
2011-12-21 14:02:15 +01:00
|
|
|
|
2007-01-16 00:34:57 +01:00
|
|
|
Name: raptor
|
2023-03-07 13:24:43 +01:00
|
|
|
Version: 2.0.16
|
2011-12-21 13:46:06 +01:00
|
|
|
Release: 0
|
2011-10-01 08:38:00 +02:00
|
|
|
Summary: RDF Parser Toolkit
|
2023-03-07 13:24:43 +01:00
|
|
|
License: Apache-2.0 OR GPL-2.0-or-later OR LGPL-2.1-or-later
|
2007-01-16 00:34:57 +01:00
|
|
|
Group: System/Libraries
|
2023-03-07 13:24:43 +01:00
|
|
|
URL: https://librdf.org/raptor/
|
|
|
|
Source0: https://download.librdf.org/source/%{name}2-%{version}.tar.gz
|
|
|
|
Source1: https://download.librdf.org/source/raptor2-%{version}.tar.gz.asc
|
2015-04-27 10:20:29 +02:00
|
|
|
Source2: %{name}.keyring
|
|
|
|
Source3: baselibs.conf
|
2023-03-07 13:24:43 +01:00
|
|
|
Patch2: ubsan.patch
|
2023-05-04 13:33:38 +02:00
|
|
|
# Patch sent upstream: https://github.com/dajobe/raptor/pull/58
|
|
|
|
Patch3: raptor-libxml2-2.11-support.patch
|
2015-04-27 10:20:29 +02:00
|
|
|
BuildRequires: bison
|
2011-10-01 08:38:00 +02:00
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: libxslt-devel
|
2020-11-10 12:26:27 +01:00
|
|
|
BuildRequires: pkgconfig
|
2023-12-05 10:44:16 +01:00
|
|
|
BuildRequires: pkgconfig(icu-uc)
|
2012-11-20 19:15:58 +01:00
|
|
|
%if !0%{?sles_version}
|
2011-10-01 08:38:00 +02:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2012-11-20 19:15:58 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:34:57 +01:00
|
|
|
%description
|
|
|
|
Raptor is the RDF Parser Toolkit for Redland that provides a set of
|
|
|
|
standalone RDF parsers, generating triples from RDF/XML or N-Triples.
|
|
|
|
|
2011-09-19 14:06:38 +02:00
|
|
|
%package -n libraptor2-0
|
2011-04-20 13:42:25 +02:00
|
|
|
Summary: RDF Parser Toolkit
|
2007-05-02 20:15:05 +02:00
|
|
|
Group: System/Libraries
|
2007-01-16 00:34:57 +01:00
|
|
|
|
2011-09-19 14:06:38 +02:00
|
|
|
%description -n libraptor2-0
|
2007-05-02 20:15:05 +02:00
|
|
|
Raptor is the RDF Parser Toolkit for Redland that provides a set of
|
|
|
|
standalone RDF parsers, generating triples from RDF/XML or N-Triples.
|
|
|
|
|
2007-05-04 00:23:15 +02:00
|
|
|
%package -n libraptor-devel
|
2007-05-02 20:15:05 +02:00
|
|
|
Summary: Development package for the raptor library
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-10-01 08:38:00 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libraptor2-0 = %{version}
|
2008-09-15 17:57:19 +02:00
|
|
|
Requires: raptor = %{version}
|
2007-08-09 21:14:21 +02:00
|
|
|
Provides: raptor-devel = %{version}
|
|
|
|
Obsoletes: raptor-devel < %{version}
|
2007-05-02 20:15:05 +02:00
|
|
|
|
2007-05-04 00:23:15 +02:00
|
|
|
%description -n libraptor-devel
|
2007-05-02 20:15:05 +02:00
|
|
|
This package contains the files needed to compile programs that use the
|
|
|
|
raptor library.
|
|
|
|
|
2007-05-04 17:09:39 +02:00
|
|
|
%prep
|
2011-09-19 13:57:53 +02:00
|
|
|
%setup -q -n %{name}2-%{version}
|
2020-11-10 12:26:27 +01:00
|
|
|
%patch2
|
2023-05-04 13:33:38 +02:00
|
|
|
%patch3 -p1
|
2007-05-04 17:09:39 +02:00
|
|
|
|
|
|
|
%build
|
2015-04-27 10:20:29 +02:00
|
|
|
%configure \
|
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--with-icu-config=%{_bindir}/icu-config \
|
|
|
|
--with-html-dir=%{_docdir}
|
2020-11-10 12:26:27 +01:00
|
|
|
%make_build
|
2007-05-04 17:09:39 +02:00
|
|
|
|
|
|
|
%install
|
2020-11-10 12:26:27 +01:00
|
|
|
%make_install
|
2011-12-21 14:02:15 +01:00
|
|
|
mv %{buildroot}%{_docdir}/raptor2 %{buildroot}%{_docdir}/raptor-devel
|
2007-08-09 21:14:21 +02:00
|
|
|
#causes some ugly dependency bloat..
|
2011-10-01 08:38:00 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/libraptor2.la
|
2007-05-04 17:09:39 +02:00
|
|
|
|
2007-08-09 21:14:21 +02:00
|
|
|
%check
|
2008-04-06 08:06:25 +02:00
|
|
|
export MALLOC_CHECK_=2
|
2011-10-01 08:38:00 +02:00
|
|
|
make check
|
2008-04-06 08:06:25 +02:00
|
|
|
unset MALLOC_CHECK_
|
2007-05-04 17:09:39 +02:00
|
|
|
|
2011-09-19 14:06:38 +02:00
|
|
|
%post -n libraptor2-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libraptor2-0 -p /sbin/ldconfig
|
2007-05-04 17:09:39 +02:00
|
|
|
|
|
|
|
%files
|
2020-11-10 12:26:27 +01:00
|
|
|
%license COPYING COPYING.LIB LICENSE.txt
|
|
|
|
%doc AUTHORS ChangeLog NEWS README
|
2007-05-04 17:09:39 +02:00
|
|
|
%{_bindir}/rapper
|
2008-04-06 08:06:25 +02:00
|
|
|
%{_mandir}/man?/*
|
2007-05-02 20:15:05 +02:00
|
|
|
|
2007-05-04 00:23:15 +02:00
|
|
|
%files -n libraptor-devel
|
2007-01-16 00:34:57 +01:00
|
|
|
%doc %{_docdir}/raptor-devel
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
2011-09-19 14:06:38 +02:00
|
|
|
%files -n libraptor2-0
|
2011-09-19 14:14:08 +02:00
|
|
|
%{_libdir}/libraptor2.so.0*
|
2007-12-19 22:14:54 +01:00
|
|
|
|
2007-05-02 20:15:05 +02:00
|
|
|
%changelog
|