From e5d3c50a26e40259c98f907840790af7b43a32f0 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:34:09 +0100 Subject: [PATCH] added patch to fix permssions of style.css breaking make install of packages [release 1.30-2mamba;Sun Jun 02 2019] --- gtk-doc-1.30-fix-perms-style-css.patch | 12 ++++++++++++ gtk-doc.spec | 7 ++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 gtk-doc-1.30-fix-perms-style-css.patch diff --git a/gtk-doc-1.30-fix-perms-style-css.patch b/gtk-doc-1.30-fix-perms-style-css.patch new file mode 100644 index 0000000..09783ab --- /dev/null +++ b/gtk-doc-1.30-fix-perms-style-css.patch @@ -0,0 +1,12 @@ +diff --git i/gtkdoc/highlight.py w/gtkdoc/highlight.py +index 8f6e470..82e11e8 100644 +--- i/gtkdoc/highlight.py ++++ w/gtkdoc/highlight.py +@@ -47,6 +47,6 @@ def highlight_code(code, lang='c'): + + + def append_style_defs(css_file_name): +- os.chmod(css_file_name, stat.S_IWRITE) ++ os.chmod(css_file_name, 0o644) + with open(css_file_name, 'at', newline='\n', encoding='utf-8') as css: + css.write(HTML_FORMATTER.get_style_defs()) diff --git a/gtk-doc.spec b/gtk-doc.spec index df120d5..9b3fc54 100644 --- a/gtk-doc.spec +++ b/gtk-doc.spec @@ -1,6 +1,6 @@ Name: gtk-doc Version: 1.30 -Release: 1mamba +Release: 2mamba Summary: API documentation generation tool for GTK+ and GNOME Group: Graphical Desktop/Applications/Development Vendor: openmamba @@ -9,6 +9,7 @@ Packager: Silvan Calarco URL: http://www.gtk.org Source: ftp://ftp.gnome.org/pub/gnome/sources/gtk-doc/%{version}/gtk-doc-%{version}.tar.xz Patch0: gtk-doc-1.15-fixxref-vim-7.3.patch +Patch1: gtk-doc-1.30-fix-perms-style-css.patch License: GPL BuildRequires: perl BuildRequires: openjade @@ -38,6 +39,7 @@ It is used for generating the documentation for GTK+, GLib and GNOME. %prep %setup -q -n gtk-doc-%{version} #%patch0 -p1 +%patch1 -p1 %build %configure \ @@ -74,6 +76,9 @@ It is used for generating the documentation for GTK+, GLib and GNOME. #ChangeLog NEWS README TODO %changelog +* Sun Jun 02 2019 Silvan Calarco 1.30-2mamba +- added patch to fix permssions of style.css breaking make install of packages + * Sat May 11 2019 Automatic Build System 1.30-1mamba - automatic version update by autodist