[packages/libgnomeprint] Disable papi (obsolete for many years); disable rebuilding docs
arekm
arekm at pld-linux.org
Sat Jul 19 17:40:01 CEST 2025
commit 468adb283d768e27e63da21f76a3d7e44b3aeab9
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Jul 19 17:39:57 2025 +0200
Disable papi (obsolete for many years); disable rebuilding docs
build.patch | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
libgnomeprint.spec | 11 +++++++----
2 files changed, 56 insertions(+), 4 deletions(-)
---
diff --git a/libgnomeprint.spec b/libgnomeprint.spec
index f10f2e4..7075dc7 100644
--- a/libgnomeprint.spec
+++ b/libgnomeprint.spec
@@ -1,13 +1,13 @@
#
# Conditional build:
%bcond_without apidocs # gtk-doc based API documentation
-%bcond_without papi # PAPI printing support
+%bcond_with papi # PAPI printing support
Summary: Printing library for GNOME
Summary(pl.UTF-8): Biblioteka drukowania dla GNOME
Name: libgnomeprint
Version: 2.18.8
-Release: 11
+Release: 12
License: LGPL v2+
Group: Libraries
Source0: https://download.gnome.org/sources/libgnomeprint/2.18/%{name}-%{version}.tar.bz2
@@ -16,6 +16,7 @@ Patch0: %{name}-includes.patch
Patch1: %{name}-papi.patch
Patch2: bison3.patch
Patch3: %{name}-gtkdoc.patch
+Patch4: build.patch
URL: https://www.gnome.org/
BuildRequires: autoconf >= 2.52
BuildRequires: automake >= 1:1.7.2
@@ -148,7 +149,7 @@ Dokumentacja API libgnomeprint.
%patch -P0 -p1
%patch -P1 -p1
%patch -P2 -p1
-%patch -P3 -p1
+%patch -P4 -p1
for f in libgnomeprint/transports/gp-transport-custom.h \
libgnomeprint/ttsubset/{crc32.c,crc32.h,sft.c,list.c,list.h,sft.c,sft.h,ttcr.c,ttcr.h} ; do
@@ -165,7 +166,7 @@ CPPFLAGS="%{rpmcppflags}%{?with_papi: -I/usr/include/papi}"
%{__autoheader}
%{__automake}
%configure \
- --enable-gtk-doc%{!?with_apidocs:=no} \
+ --disable-gtk-doc \
--with-cups \
--with-html-dir=%{_gtkdocdir} \
%{!?with_papi:--without-papi}
@@ -228,9 +229,11 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/%{version}/modules/libgnomeprintcups.so
+%if %{with papi}
%files papi
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/%{name}/%{version}/modules/libgnomeprintpapi.so
+%endif
%files devel
%defattr(644,root,root,755)
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..05488e4
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,49 @@
+--- libgnomeprint-2.18.8.org/libgnomeprint/gnome-font-face.c 2010-02-09 13:32:51.000000000 +0100
++++ libgnomeprint-2.18.8/libgnomeprint/gnome-font-face.c 2025-07-19 17:22:11.765065918 +0200
+@@ -1003,7 +1003,7 @@ typedef struct {
+ gdouble * t;
+ } GFFT2OutlineData;
+
+-static int gfft2_move_to (FT_Vector * to, void * user)
++static int gfft2_move_to (const FT_Vector * to, void * user)
+ {
+ GFFT2OutlineData * od;
+ ArtPoint p;
+@@ -1025,7 +1025,7 @@ static int gfft2_move_to (FT_Vector * to
+ return 0;
+ }
+
+-static int gfft2_line_to (FT_Vector * to, void * user)
++static int gfft2_line_to (const FT_Vector * to, void * user)
+ {
+ GFFT2OutlineData * od;
+ ArtBpath * s;
+@@ -1048,7 +1048,7 @@ static int gfft2_line_to (FT_Vector * to
+ return 0;
+ }
+
+-static int gfft2_conic_to (FT_Vector * control, FT_Vector * to, void * user)
++static int gfft2_conic_to (const FT_Vector * control, const FT_Vector * to, void * user)
+ {
+ GFFT2OutlineData * od;
+ ArtBpath * s, * e;
+@@ -1076,7 +1076,7 @@ static int gfft2_conic_to (FT_Vector * c
+ return 0;
+ }
+
+-static int gfft2_cubic_to (FT_Vector * control1, FT_Vector * control2, FT_Vector * to, void * user)
++static int gfft2_cubic_to (const FT_Vector * control1, const FT_Vector * control2, const FT_Vector * to, void * user)
+ {
+ GFFT2OutlineData * od;
+
+--- libgnomeprint-2.18.8/tests/pango.c~ 2025-07-19 17:30:32.000000000 +0200
++++ libgnomeprint-2.18.8/tests/pango.c 2025-07-19 17:31:10.875121316 +0200
+@@ -158,7 +158,7 @@ main (int argc, char * argv[])
+ usage ("Input file not specified");
+ input_file = args[0];
+
+- if (!g_file_get_contents (input_file, &text, &len, &error))
++ if (!g_file_get_contents (input_file, &text, (gsize *)&len, &error))
+ fail ("%s\n", error->message);
+ if (!g_utf8_validate (text, len, NULL))
+ fail ("Text is not valid UTF-8");
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libgnomeprint.git/commitdiff/468adb283d768e27e63da21f76a3d7e44b3aeab9
More information about the pld-cvs-commit
mailing list