2012-08-22 12:17:34 +02:00
|
|
|
#
|
|
|
|
# spec file for package sord
|
|
|
|
#
|
2017-01-31 06:20:28 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-01-31 06:20:28 +01:00
|
|
|
%define sover 0
|
2012-08-22 12:17:34 +02:00
|
|
|
Name: sord
|
2017-11-02 13:03:09 +01:00
|
|
|
Version: 0.16.0
|
2012-08-22 12:17:34 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Utilities to work with RDF data
|
|
|
|
License: ISC
|
|
|
|
Group: Productivity/File utilities
|
|
|
|
Url: http://drobilla.net/software/sord/
|
|
|
|
Source0: http://download.drobilla.net/sord-%{version}.tar.bz2
|
2017-01-30 21:27:12 +01:00
|
|
|
Source1: 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++
|
2017-11-02 13:03:09 +01:00
|
|
|
Provides: libsord-0-devel = %{version}
|
|
|
|
Obsoletes: libsord-0-devel < %{version}
|
2017-01-31 06:20:28 +01:00
|
|
|
Requires: libsord-0-%{sover} = %{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
|
2012-08-22 12:17:34 +02:00
|
|
|
%{_mandir}/man1/sordi.1*
|
|
|
|
%{_mandir}/man1/sord_validate.1*
|
|
|
|
|
2017-01-31 06:20:28 +01:00
|
|
|
%files -n libsord-0-%{sover}
|
2012-08-22 12:17:34 +02:00
|
|
|
%doc AUTHORS COPYING NEWS README
|
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
|
|
|
|
%{_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
|