Skip to content

Commit

Permalink
update 2022-08-04 11:52
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwiedemann committed Aug 4, 2022
1 parent c8bdde1 commit 571b445
Show file tree
Hide file tree
Showing 423 changed files with 16,620 additions and 1,162 deletions.
12 changes: 6 additions & 6 deletions packages/_/_project/_attribute
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
boo#1200403: '20220802'
boo#1200595: '20220614'
boo#1200600: '20220614'
boo#1200615: '20220627'
boo#1200615: '20220802'
boo#1200616: '20220802'
boo#1200682: '20220628'
boo#1200753: '20220726'
Expand Down Expand Up @@ -140,7 +140,7 @@ rebuildpacs-leafs = branding-openSUSE PackageKit-branding-openSUSE xfce4-brandin
<value>s/openSUSE-/openSUSE-Staging:$LETTER-/</value>
</attribute>
<attribute namespace="OSRT" name="ProductVersion">
<value>20220803</value>
<value>20220804</value>
</attribute>
<attribute namespace="OSRT" name="ToTestManagerConfig">
<value>arch: x86_64
Expand Down Expand Up @@ -462,10 +462,10 @@ test_subproject: ToTest
set_snapshot_number: True</value>
</attribute>
<attribute namespace="OSRT" name="ToTestManagerStatus">
<value>failed: '20220802'
published: '20220801'
publishing: '20220801'
testing: '20220802'
<value>failed: ''
published: '20220802'
publishing: '20220802'
testing: '20220803'
</value>
</attribute>
<attribute namespace="OSRT" name="OriginConfig">
Expand Down
6 changes: 3 additions & 3 deletions packages/_/_project/_staging_workflow
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
<staging_project name="openSUSE:Factory:Staging:adi:25"/>
<staging_project name="openSUSE:Factory:Staging:adi:27"/>
<staging_project name="openSUSE:Factory:Staging:adi:32"/>
<staging_project name="openSUSE:Factory:Staging:adi:50"/>
<staging_project name="openSUSE:Factory:Staging:adi:51"/>
<staging_project name="openSUSE:Factory:Staging:adi:3"/>
<staging_project name="openSUSE:Factory:Staging:adi:4"/>
<staging_project name="openSUSE:Factory:Staging:adi:18"/>
<staging_project name="openSUSE:Factory:Staging:adi:23"/>
<staging_project name="openSUSE:Factory:Staging:adi:31"/>
</workflow>
Binary file modified packages/a/accerciser/.files
Binary file not shown.
8 changes: 8 additions & 0 deletions packages/a/accerciser/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -570,4 +570,12 @@ No LGPL-2.1+ licenses found in package (forwarded request 105656 from babelworx)
(jsc#SLE-21105). (forwarded request 920390 from sbrabec)</comment>
<requestid>920563</requestid>
</revision>
<revision rev="74" vrev="1">
<srcmd5>0d473c6f13a270db1ac670445c8a918f</srcmd5>
<version>3.40.0</version>
<time>1659612238</time>
<user>dimstar_suse</user>
<comment>New stable release (forwarded request 991749 from iznogood)</comment>
<requestid>992696</requestid>
</revision>
</revisionlist>
1 change: 0 additions & 1 deletion packages/a/accerciser/accerciser-3.38.0.tar.xz

This file was deleted.

1 change: 1 addition & 0 deletions packages/a/accerciser/accerciser-3.40.0.tar.xz
13 changes: 13 additions & 0 deletions packages/a/accerciser/accerciser.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Fri Jul 29 19:29:38 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>

- Update to version 3.40.0:
+ ipython_view: Clear output on Ctrl+L.
+ Fix navigating to a bookmark when "View" -> "Show applications
without children" is disabled (the default).
+ Make expanding and selecting the corresponding item in the
treeview work when clicking on a bookmark for the first time.
+ Fix support for IPython 8.
+ Updated translations.
- Update Supplements to current openSUSE standard.

-------------------------------------------------------------------
Mon Sep 20 17:30:46 UTC 2021 - Stanislav Brabec <sbrabec@suse.com>

Expand Down
12 changes: 6 additions & 6 deletions packages/a/accerciser/accerciser.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package accerciser
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
Expand All @@ -17,13 +17,13 @@


Name: accerciser
Version: 3.38.0
Version: 3.40.0
Release: 0
Summary: Accessibility debugging tool
License: BSD-3-Clause
Group: Development/Tools/Other
URL: https://wiki.gnome.org/Apps/Accerciser
Source0: https://download.gnome.org/sources/accerciser/3.38/%{name}-%{version}.tar.xz
Source0: https://download.gnome.org/sources/accerciser/3.40/%{name}-%{version}.tar.xz

BuildRequires: fdupes
BuildRequires: gobject-introspection
Expand Down Expand Up @@ -58,7 +58,7 @@ Requires: %{name} = %{version}
Requires: python3-ipython
# we need setuptools for pkg_resources
Requires: python3-setuptools
Supplements: packageand(%{name}:python3-ipython)
Supplements: %{name} and python3-ipython

%description plugin-IPython
Accerciser is an interactive Python accessibility explorer for the
Expand All @@ -80,11 +80,11 @@ This package provides the IPython console widget
%make_install
%suse_update_desktop_file -r -N "Accerciser" -G "Accesibility Debugger" accerciser Utility GNOME Accessibility
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}
%fdupes %{buildroot}%{_prefix}

%files
%license COPYING
%doc AUTHORS NEWS README
%doc AUTHORS NEWS README.md
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/%{name}
%{_datadir}/%{name}/
Expand Down
Binary file modified packages/e/epub2txt2/.files
Binary file not shown.
8 changes: 8 additions & 0 deletions packages/e/epub2txt2/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,12 @@
<comment>remove accidental paste from epub2txt2.changes file</comment>
<requestid>984722</requestid>
</revision>
<revision rev="5" vrev="1">
<srcmd5>d284af502b1872489519537461f5d5e7</srcmd5>
<version>2.06</version>
<time>1659612228</time>
<user>dimstar_suse</user>
<comment>Automatic submission by obs-autosubmit</comment>
<requestid>992660</requestid>
</revision>
</revisionlist>

This file was deleted.

156 changes: 156 additions & 0 deletions packages/e/epub2txt2/54b41e87156bc823d5938749d71c4c57adc75b1b.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
From 54b41e87156bc823d5938749d71c4c57adc75b1b Mon Sep 17 00:00:00 2001
From: Kevin Boone <kevin@railwayterrace.com>
Date: Thu, 30 Jun 2022 15:41:59 +0100
Subject: [PATCH] Fixed handling of URL-encoded spine hrefs

---
README.md | 1 +
src/epub2txt.c | 3 ++-
src/util.c | 44 +++++++++++++++++++++++++++++++++++++++++++-
src/util.h | 6 +++++-
src/xhtml.c | 5 +++++
5 files changed, 56 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 4fbcafc..546242f 100644
--- a/README.md
+++ b/README.md
@@ -244,6 +244,7 @@ covered.

Date | Change
-----|-------
+?,&nbsp;Jun&nbsp;2022 | Fixed handling of URL-encoded spine href's
2.06,&nbsp;Jun&nbsp;2022 | Fixed bug in invoking unzip
2.05,&nbsp;Apr&nbsp;2022 | Fixed bug with empty metadata tags
2.04,&nbsp;Apr&nbsp;2022 | Improved handling of UTF-8 BOMs
diff --git a/src/epub2txt.c b/src/epub2txt.c
index 7e9f4a1..72e0504 100644
--- a/src/epub2txt.c
+++ b/src/epub2txt.c
@@ -312,7 +312,8 @@ List *epub2txt_get_items (const char *opf, char **error)
char *val2 = r3->attributes[p].value;
if (strcmp (name2, "href") == 0)
{
- list_append (ret, strdup (val2));
+ char *decoded_val2 = decode_url (val2);
+ list_append (ret, decoded_val2);
}
}
}
diff --git a/src/util.c b/src/util.c
index 853343c..16e7431 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1,12 +1,14 @@
/*============================================================================
epub2txt v2
util.c
- Copyright (c)2022 Marco Bonelli, GPL v3.0
+ Copyright (c)2022 Marco Bonelli, Kevin Boone, GPL v3.0
============================================================================*/

#include <errno.h>
#include <string.h>
#include <unistd.h>
+#include <stdlib.h>
+#include <ctype.h>
#include <signal.h>
#include <sys/wait.h>
#include "util.h"
@@ -16,6 +18,7 @@
run_command
Run an helper command through fork + execvp, wait for it to finish and return
its status. Log execvp errors, and abort execution if abort_on_error is TRUE.
+(Marco Bonelli)
*==========================================================================*/
int run_command (const char *const argv[], BOOL abort_on_error)
{
@@ -39,3 +42,42 @@ int run_command (const char *const argv[], BOOL abort_on_error)
waitpid (pid, &status, 0);
return status;
}
+
+/*==========================================================================
+ Decode %xx in URL-type strings. The caller must free the resulting
+ string, which will be no longer than the input.
+ (Kevin Boone)
+*==========================================================================*/
+char *decode_url (const char *url)
+ {
+ char *ret = malloc (strlen (url) + 2);
+
+ int len = 0;
+ for (; *url; len++)
+ {
+ if (*url == '%' && url[1] && url[2] &&
+ isxdigit(url[1]) && isxdigit(url[2]))
+ {
+ char url1 = url[1];
+ char url2 = url[2];
+ url1 -= url1 <= '9' ? '0' : (url1 <= 'F' ? 'A' : 'a')-10;
+ url2 -= url2 <= '9' ? '0' : (url2 <= 'F' ? 'A' : 'a')-10;
+ ret[len] = 16 * url1 + url2;
+ url += 3;
+ continue;
+ }
+ else if (*url == '+')
+ {
+ /* I have not tested this piece of the function, because I have not
+ seen any instances of '+' (meaning space) in a spine href */
+ url += 1;
+ ret[len] = ' ';
+ }
+ ret[len] = *url++;
+ }
+ ret[len] = '\0';
+
+ return ret;
+ }
+
+
diff --git a/src/util.h b/src/util.h
index 2685a02..6b0c197 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,7 +1,7 @@
/*============================================================================
epub2txt v2
util.h
- Copyright (c)2022 Marco Bonelli, GPL v3.0
+ Copyright (c)2022 Marco Bonelli, Kevin Boone GPL v3.0
============================================================================*/

#pragma once
@@ -9,3 +9,7 @@
#include "defs.h"

int run_command (const char *const argv[], BOOL abort_on_error);
+
+/** Decode %xx in URL-type strings. The caller must free the resulting
+ string, which will be no longer than the input. */
+char *decode_url (const char *url);
diff --git a/src/xhtml.c b/src/xhtml.c
index 1338882..fbfceae 100644
--- a/src/xhtml.c
+++ b/src/xhtml.c
@@ -530,6 +530,8 @@ WString *xhtml_transform_char (uint32_t c, BOOL to_ascii)
============================================================================*/
WString *xhtml_translate_entity (const WString *entity)
{
+ /* Program flow in this function is very ugly, and prone to memory
+ leaks when modified. The whole thing needs to be rewritten */
char out[20];
IN
char *in = wstring_to_utf8 (entity);
@@ -569,8 +571,11 @@ WString *xhtml_translate_entity (const WString *entity)
WString *ret = wstring_create_empty();
wstring_append_c (ret, (uint32_t)v);
OUT
+ free (s);
+ free (in);
return ret;
}
+ free (s);
}
else
{
9 changes: 9 additions & 0 deletions packages/e/epub2txt2/epub2txt2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Jul 28 03:10:37 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

- Update to version 2.06:
* No changelog available

- Added 54b41e87156bc823d5938749d71c4c57adc75b1b.patch:
* Fixed handling of URL-encoded spine hrefs

-------------------------------------------------------------------
Sun May 1 08:20:56 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

Expand Down
9 changes: 5 additions & 4 deletions packages/e/epub2txt2/epub2txt2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@
#


%global _commit_hash "02f69e6243d6c96f78da45fb710a265e5aee2fb5"
%global _commit_hash ac4e73fa79202ccc106b36c06c20e36c37345a58

Name: epub2txt2
Version: 2.04
Version: 2.06
Release: 0
Summary: Simple command-line utility for extracting text from EPUB documents
License: GPL-3.0-only
Group: Productivity/Text/Utilities
URL: https://github.com/kevinboone/epub2txt2
Source0: https://github.com/kevinboone/epub2txt2/archive/02f69e6243d6c96f78da45fb710a265e5aee2fb5.tar.gz
Source0: https://github.com/kevinboone/epub2txt2/archive/%{_commit_hash}.tar.gz
Patch0: 54b41e87156bc823d5938749d71c4c57adc75b1b.patch
BuildRequires: gcc
BuildRequires: make
Requires: unzip
Expand All @@ -34,7 +35,7 @@ Requires: unzip
Simple command-line utility for extracting text from EPUB documents

%prep
%setup -n %{name}-%{_commit_hash}
%autosetup -n %{name}-%{_commit_hash} -p1

%build
%make_build
Expand Down
Binary file modified packages/g/gnome-settings-daemon/.files
Binary file not shown.
10 changes: 10 additions & 0 deletions packages/g/gnome-settings-daemon/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -1421,4 +1421,14 @@ work. (forwarded request 640069 from iznogood)</comment>
<comment>Scripted push from GNOME:Next (forwarded request 980347 from dimstar)</comment>
<requestid>981299</requestid>
</revision>
<revision rev="181" vrev="2">
<srcmd5>5060641af3ca64de7ce48851f9730125</srcmd5>
<version>42.2</version>
<time>1659612181</time>
<user>dimstar_suse</user>
<comment>- Change dependency from polkit to /usr/bin/pkexec: pkexec has been
split out of polkit. Requiring the explicit capability seems
better here than having to worry what package carries the binary.</comment>
<requestid>992578</requestid>
</revision>
</revisionlist>
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Aug 3 12:53:21 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>

- Change dependency from polkit to /usr/bin/pkexec: pkexec has been
split out of polkit. Requiring the explicit capability seems
better here than having to worry what package carries the binary.

-------------------------------------------------------------------
Wed Jun 1 09:02:14 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ BuildRequires: python3-python-dbusmock
#
Requires: gsettings-desktop-schemas
# g-s-d uses the pkexec binary
Requires: polkit
Requires: /usr/bin/pkexec
# For housekeeping plugin, that uses the nautilus dbus service
Recommends: nautilus
%if %{with wacom}
Expand Down
Binary file modified packages/i/iso-codes/.files
Binary file not shown.
12 changes: 12 additions & 0 deletions packages/i/iso-codes/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -780,4 +780,16 @@
<comment></comment>
<requestid>981117</requestid>
</revision>
<revision rev="90" vrev="1">
<srcmd5>f8cdd6e21307a49f740a18ecb82cfde3</srcmd5>
<version>4.11.0</version>
<time>1659612156</time>
<user>dimstar_suse</user>
<comment>- Update to version 4.11.0:
+ Update ISO 639-3 codes from SIL website.
+ Updated translations.

</comment>
<requestid>991755</requestid>
</revision>
</revisionlist>
Loading

0 comments on commit 571b445

Please sign in to comment.