Accepting request 1083946 from multimedia:libs

- Update to 0.30.16
  * Switch to meson
  * Add html documentation do devel
  0.30.16 changes:
  * Add SERD_STATIC to pkg-config Cflags for static-only builds
  * Adopt REUSE machine-readable licensing standard
  * Allow programs to be used from subproject
  * Fix spelling mistake in serdi man page
  0.30.14 changes:
  * Fix memory consumption when reading documents
  * Switch to Meson build system
  * Update README and project metadata
- Installation path fix for documents:
  001-serd-docdir.patch

OBS-URL: https://build.opensuse.org/request/show/1083946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/serd?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2023-05-02 14:18:22 +00:00 committed by Git OBS Bridge
commit 115a6aaabb
5 changed files with 46 additions and 26 deletions

11
001-serd-docdir.patch Normal file
View File

@ -0,0 +1,11 @@
--- ./doc/meson.build.orig 2022-12-26 22:48:38.800134462 +1000
+++ doc/meson.build 2022-12-26 22:49:09.232891680 +1000
@@ -1,7 +1,7 @@
# Copyright 2020-2022 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
-docdir = get_option('datadir') / 'doc'
+docdir = get_option('datadir') / 'doc' / 'packages'
doxygen = find_program('doxygen', required: get_option('docs'))
dox_to_sphinx = files('../scripts/dox_to_sphinx.py')

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9f9dab4125d88256c1f694b6638cbdbf84c15ce31003cd83cb32fb2192d3e866
size 594475

BIN
serd-0.30.16.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Mon Dec 26 12:54:01 UTC 2022 - Konstantin Voinov <kv@kott.no-ip.biz>
- Update to 0.30.16
* Switch to meson
* Add html documentation do devel
0.30.16 changes:
* Add SERD_STATIC to pkg-config Cflags for static-only builds
* Adopt REUSE machine-readable licensing standard
* Allow programs to be used from subproject
* Fix spelling mistake in serdi man page
0.30.14 changes:
* Fix memory consumption when reading documents
* Switch to Meson build system
* Update README and project metadata
- Installation path fix for documents:
001-serd-docdir.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 18 14:27:33 UTC 2022 - Dirk Müller <dmueller@suse.com> Sat Jun 18 14:27:33 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package serd # spec file for package serd
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,16 +18,19 @@
%define sover 0 %define sover 0
Name: serd Name: serd
Version: 0.30.12 Version: 0.30.16
Release: 0 Release: 0
Summary: A lightweight C library for RDF syntax Summary: A lightweight C library for RDF syntax
License: ISC License: ISC
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
URL: https://drobilla.net/software/serd.html URL: https://drobilla.net/software/serd.html
Source0: https://download.drobilla.net/serd-%{version}.tar.bz2 Source0: https://download.drobilla.net/serd-%{version}.tar.xz
Source1: baselibs.conf Source1: baselibs.conf
Patch0: 001-serd-docdir.patch
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: graphviz BuildRequires: graphviz
BuildRequires: meson
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python3-Sphinx BuildRequires: python3-Sphinx
@ -60,31 +63,18 @@ Development files for libserd.
%prep %prep
%setup -q %setup -q
%autopatch -p0
#Convert all file headers to python3 #Convert all file headers to python3
for i in `grep -rl "%{_bindir}/env python"`;do sed -i '1s/^#!.*/#!\/usr\/bin\/python3/' ${i} ;done for i in `grep -rl "%{_bindir}/env python"`;do sed -i '1s/^#!.*/#!\/usr\/bin\/python3/' ${i} ;done
%build %build
export CFLAGS='%{optflags} -std=gnu99' %meson
export CXXFLAGS='%{optflags}' %meson_build
./waf configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
%if 0%{?suse_version} > 1501
--test \
--docs \
%endif
--docdir=%{_defaultdocdir} \
./waf build -v %{?_smp_mflags}
%install %install
./waf install --destdir=%{?buildroot} %meson_install
rm -rf %{buildroot}%{_docdir}/serd-0/html
%if 0%{?suse_version} > 1501 %fdupes -s %{buildroot}%{_docdir}
%check
./waf test
%endif
%post -n libserd-0-%{sover} -p /sbin/ldconfig %post -n libserd-0-%{sover} -p /sbin/ldconfig
%postun -n libserd-0-%{sover} -p /sbin/ldconfig %postun -n libserd-0-%{sover} -p /sbin/ldconfig
@ -99,9 +89,7 @@ rm -rf %{buildroot}%{_docdir}/serd-0/html
%{_libdir}/libserd-0.so.%{sover}* %{_libdir}/libserd-0.so.%{sover}*
%files devel %files devel
%if 0%{?suse_version} > 1501
%doc %{_docdir}/serd-0 %doc %{_docdir}/serd-0
%endif
%{_libdir}/libserd-0.so %{_libdir}/libserd-0.so
%{_includedir}/serd-0/ %{_includedir}/serd-0/
%{_libdir}/pkgconfig/serd-0.pc %{_libdir}/pkgconfig/serd-0.pc