2012-08-22 12:17:34 +02:00
|
|
|
#
|
|
|
|
# spec file for package sord
|
|
|
|
#
|
2022-06-28 08:03:23 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2012-08-22 12:17:34 +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-04-20 12:44:01 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-08-22 12:17:34 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-01-31 06:20:28 +01:00
|
|
|
%define sover 0
|
2012-08-22 12:17:34 +02:00
|
|
|
Name: sord
|
2022-06-28 08:03:23 +02:00
|
|
|
Version: 0.16.10
|
2012-08-22 12:17:34 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Utilities to work with RDF data
|
|
|
|
License: ISC
|
|
|
|
Group: Productivity/File utilities
|
2022-08-10 07:55:06 +02:00
|
|
|
URL: https://drobilla.net/software/sord.html
|
2022-06-28 08:03:23 +02:00
|
|
|
Source0: https://download.drobilla.net/sord-%{version}.tar.bz2
|
2022-08-10 07:55:06 +02:00
|
|
|
Source1: https://download.drobilla.net/sord-%{version}.tar.bz2.sig
|
|
|
|
Source2: sord.keyring
|
|
|
|
Source3: baselibs.conf
|
2012-08-22 12:17:34 +02:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: graphviz
|
2015-12-24 12:16:31 +01:00
|
|
|
BuildRequires: pcre-devel
|
2017-11-02 13:03:09 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: pkgconfig(serd-0) >= 0.22.4
|
2012-08-22 12:17:34 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Utilities to work with RDF data.
|
2015-12-24 12:16:31 +01:00
|
|
|
Sord is a lightweight C library for storing RDF data in memory.
|
2012-08-22 12:17:34 +02:00
|
|
|
|
2017-01-31 06:20:28 +01:00
|
|
|
%package -n libsord-0-%{sover}
|
2012-08-22 12:17:34 +02:00
|
|
|
Summary: A lightweight C library for storing RDF data in memory
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-01-31 06:20:28 +01:00
|
|
|
%description -n libsord-0-%{sover}
|
2012-08-22 12:17:34 +02:00
|
|
|
A lightweight C library for storing RDF data in memory.
|
2015-12-24 12:16:31 +01:00
|
|
|
http://drobilla.net/software/sord/
|
2012-08-22 12:17:34 +02:00
|
|
|
|
2017-11-02 13:03:09 +01:00
|
|
|
%package devel
|
2012-08-22 12:17:34 +02:00
|
|
|
Summary: Development files for libsord
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-08-24 15:57:04 +02:00
|
|
|
Requires: libsord-0-%{sover} = %{version}
|
2017-11-02 13:03:09 +01:00
|
|
|
Provides: libsord-0-devel = %{version}
|
|
|
|
Obsoletes: libsord-0-devel < %{version}
|
2012-08-22 12:17:34 +02:00
|
|
|
|
2017-11-02 13:03:09 +01:00
|
|
|
%description devel
|
2012-08-22 12:17:34 +02:00
|
|
|
Development files for libsord.
|
2015-12-24 12:16:31 +01:00
|
|
|
Sord is a lightweight C library for storing RDF data in memory.
|
2012-08-22 12:17:34 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS='%{optflags}'
|
|
|
|
export CXXFLAGS='%{optflags}'
|
2017-11-02 13:03:09 +01:00
|
|
|
python3 ./waf configure \
|
2012-08-22 12:17:34 +02:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--docdir=%{_defaultdocdir} \
|
2017-11-02 13:03:09 +01:00
|
|
|
--test \
|
2012-08-22 12:17:34 +02:00
|
|
|
--docs
|
|
|
|
# waf only understands -j, so do not use smp_mflags
|
2017-11-02 13:03:09 +01:00
|
|
|
python3 ./waf build -v %{?_smp_mflags}
|
2012-08-22 12:17:34 +02:00
|
|
|
|
|
|
|
%install
|
2017-11-02 13:03:09 +01:00
|
|
|
python3 ./waf install --destdir=%{?buildroot}
|
|
|
|
rm -rf %{buildroot}%{_docdir}/sord-0/html
|
2012-08-22 12:17:34 +02:00
|
|
|
|
2017-11-02 13:03:09 +01:00
|
|
|
%check
|
|
|
|
python3 ./waf test
|
2012-08-22 12:17:34 +02:00
|
|
|
|
2017-01-31 06:20:28 +01:00
|
|
|
%post -n libsord-0-%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libsord-0-%{sover} -p /sbin/ldconfig
|
2012-08-22 12:17:34 +02:00
|
|
|
|
|
|
|
%files
|
2015-12-24 12:16:31 +01:00
|
|
|
%attr(0755,root,root) %{_bindir}/sordi
|
|
|
|
%attr(0755,root,root) %{_bindir}/sord_validate
|
2018-08-24 15:57:04 +02:00
|
|
|
%{_mandir}/man1/sordi.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/sord_validate.1%{?ext_man}
|
2012-08-22 12:17:34 +02:00
|
|
|
|
2017-01-31 06:20:28 +01:00
|
|
|
%files -n libsord-0-%{sover}
|
2018-08-24 15:57:04 +02:00
|
|
|
%license COPYING
|
2020-04-20 12:44:01 +02:00
|
|
|
%doc AUTHORS NEWS README.md
|
2017-01-31 06:20:28 +01:00
|
|
|
%{_libdir}/libsord-0.so.%{sover}*
|
2012-08-22 12:17:34 +02:00
|
|
|
|
2017-11-02 13:03:09 +01:00
|
|
|
%files devel
|
2018-08-24 15:57:04 +02:00
|
|
|
%{_mandir}/man3/sord.3%{?ext_man}
|
2012-08-22 12:17:34 +02:00
|
|
|
%{_libdir}/libsord-0.so
|
|
|
|
%{_includedir}/sord-0/
|
|
|
|
%{_libdir}/pkgconfig/sord-0.pc
|
|
|
|
|
|
|
|
%changelog
|