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:
commit
115a6aaabb
11
001-serd-docdir.patch
Normal file
11
001-serd-docdir.patch
Normal 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')
|
@ -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
BIN
serd-0.30.16.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
21
serd.changes
21
serd.changes
@ -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>
|
||||
|
||||
|
34
serd.spec
34
serd.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -18,16 +18,19 @@
|
||||
|
||||
%define sover 0
|
||||
Name: serd
|
||||
Version: 0.30.12
|
||||
Version: 0.30.16
|
||||
Release: 0
|
||||
Summary: A lightweight C library for RDF syntax
|
||||
License: ISC
|
||||
Group: Development/Libraries/C and C++
|
||||
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
|
||||
Patch0: 001-serd-docdir.patch
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: meson
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3-Sphinx
|
||||
|
||||
@ -60,31 +63,18 @@ Development files for libserd.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%autopatch -p0
|
||||
#Convert all file headers to python3
|
||||
for i in `grep -rl "%{_bindir}/env python"`;do sed -i '1s/^#!.*/#!\/usr\/bin\/python3/' ${i} ;done
|
||||
|
||||
%build
|
||||
export CFLAGS='%{optflags} -std=gnu99'
|
||||
export CXXFLAGS='%{optflags}'
|
||||
./waf configure \
|
||||
--prefix=%{_prefix} \
|
||||
--libdir=%{_libdir} \
|
||||
%if 0%{?suse_version} > 1501
|
||||
--test \
|
||||
--docs \
|
||||
%endif
|
||||
--docdir=%{_defaultdocdir} \
|
||||
|
||||
./waf build -v %{?_smp_mflags}
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
./waf install --destdir=%{?buildroot}
|
||||
rm -rf %{buildroot}%{_docdir}/serd-0/html
|
||||
%meson_install
|
||||
|
||||
%if 0%{?suse_version} > 1501
|
||||
%check
|
||||
./waf test
|
||||
%endif
|
||||
%fdupes -s %{buildroot}%{_docdir}
|
||||
|
||||
%post -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}*
|
||||
|
||||
%files devel
|
||||
%if 0%{?suse_version} > 1501
|
||||
%doc %{_docdir}/serd-0
|
||||
%endif
|
||||
%{_libdir}/libserd-0.so
|
||||
%{_includedir}/serd-0/
|
||||
%{_libdir}/pkgconfig/serd-0.pc
|
||||
|
Loading…
x
Reference in New Issue
Block a user