[packages/libskk] - added valadoc patch (adjust for valadoc 0.52+, producing svg files instead of png)

qboosh qboosh at pld-linux.org
Tue Jan 31 06:11:51 CET 2023


commit d920d27b89db76eb618dcddda20b88072e46698a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jan 31 06:12:59 2023 +0100

    - added valadoc patch (adjust for valadoc 0.52+, producing svg files instead of png)

 libskk-valadoc.patch | 11 +++++++++++
 libskk.spec          | 13 ++++++++++++-
 2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/libskk.spec b/libskk.spec
index 17ca692..23efdc9 100644
--- a/libskk.spec
+++ b/libskk.spec
@@ -14,16 +14,21 @@ Group:		Libraries
 #Source0Download: https://github.com/ueno/libskk/releases
 Source0:	https://github.com/ueno/libskk/releases/download/%{version}/%{name}-%{version}.tar.xz
 # Source0-md5:	683c5a2dd23171297132453afd62e3c4
+Patch0:		%{name}-valadoc.patch
 URL:		https://github.com/ueno/libskk/
+BuildRequires:	autoconf >= 2.63
+BuildRequires:	automake >= 1:1.11.1
 BuildRequires:	gettext-tools >= 0.19.8
 BuildRequires:	glib2-devel >= 1:2.36
 BuildRequires:	gobject-introspection-devel >= 0.9.0
 BuildRequires:	json-glib-devel
 BuildRequires:	libgee-devel >= 0.8
+BuildRequires:	libtool >= 2:2
 BuildRequires:	pkgconfig
+BuildRequires:	rpm-build >= 4.6
 # not needed for releases
 #BuildRequires:	vala >= 2:0.14.0
-%{?with_apidocs:BuildRequires:	valadoc >= 0.40}
+%{?with_apidocs:BuildRequires:	valadoc >= 2:0.52}
 BuildRequires:	tar >= 1:1.22
 BuildRequires:	xorg-lib-libxkbcommon-devel
 BuildRequires:	xz
@@ -116,10 +121,16 @@ Dokumentacja API biblioteki libskk.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 # pass fake VALADOC_* args to avoid requiring valadoc-devel
 # (only utility is needed here, but configure checks for development package)
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
 	VALADOC_CFLAGS=fake \
 	VALADOC_LIBS=fake \
diff --git a/libskk-valadoc.patch b/libskk-valadoc.patch
new file mode 100644
index 0000000..1d2863c
--- /dev/null
+++ b/libskk-valadoc.patch
@@ -0,0 +1,11 @@
+--- libskk-1.0.5/docs/Makefile.am.orig	2018-09-15 09:12:57.000000000 +0200
++++ libskk-1.0.5/docs/Makefile.am	2023-01-30 21:26:02.655018069 +0100
+@@ -15,7 +15,7 @@ libskkgtkdocdir=$(datadir)/gtk-doc/html/
+ 
+ common_doc_files = \
+ 	*.css \
+-	*.png \
++	*.svg \
+ 	*.js \
+ 	index.htm \
+ 	*.html \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libskk.git/commitdiff/d920d27b89db76eb618dcddda20b88072e46698a



More information about the pld-cvs-commit mailing list