[packages/xchm] - updated to 1.39
qboosh
qboosh at pld-linux.org
Wed Jul 8 20:17:15 CEST 2026
commit a99788cec84fda91bc157eda12547179515bfc61
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Jul 8 20:17:13 2026 +0200
- updated to 1.39
wxWidgets3.patch | 20 -----------
xchm-desktop.patch | 10 ++++++
xchm-pl.po-update.patch | 96 ++++++++++++++++++++-----------------------------
xchm.desktop | 12 -------
xchm.spec | 37 +++++++++----------
5 files changed, 67 insertions(+), 108 deletions(-)
---
diff --git a/xchm.spec b/xchm.spec
index 37d76ca..56338d7 100644
--- a/xchm.spec
+++ b/xchm.spec
@@ -5,27 +5,30 @@
Summary: CHM viewer for UNIX
Summary(pl.UTF-8): Przeglądarka CHM dla Uniksów
Name: xchm
-Version: 1.23
-Release: 5
+Version: 1.39
+Release: 1
License: GPL v2+
Group: X11/Applications
-Source0: http://downloads.sourceforge.net/xchm/%{name}-%{version}.tar.gz
-# Source0-md5: 486d029bd81071a2d04e7181909b1602
-Source1: %{name}.desktop
-Patch0: wxWidgets3.patch
+#Source0Download: https://github.com/rzvncj/xCHM/releases
+Source0: https://github.com/rzvncj/xCHM/releases/download/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 8b073f18d4a3b7b4288299b4b1a0e495
+Patch0: %{name}-desktop.patch
Patch1: %{name}-pl.po-update.patch
-URL: http://xchm.sourceforge.net/
+URL: https://github.com/rzvncj/xCHM
BuildRequires: autoconf >= 2.50
BuildRequires: automake
BuildRequires: chmlib-devel
-BuildRequires: gettext-tools >= 0.14.3
-BuildRequires: wxGTK3-unicode-devel >= 2.8.0
+BuildRequires: gettext-tools >= 0.19
+BuildRequires: libstdc++-devel >= 6:7
+BuildRequires: wxGTK3-unicode-devel >= 3.0.0
%if %{with xmlrpc}
# for configure check
BuildRequires: openssl-devel
BuildRequires: xmlrpc++-devel
%endif
Requires(post,postun): desktop-file-utils
+Requires(post,postun): gtk-update-icon-cache
+Requires: hicolor-icon-theme
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -45,7 +48,7 @@ CHMLIB Jeda Winga, z użyciem wxWidgets.
%build
%{__gettextize}
-%{__aclocal}
+%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
@@ -56,18 +59,12 @@ CHMLIB Jeda Winga, z użyciem wxWidgets.
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install art/xchm-48.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/xchm.xpm
-install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
-
# unify to short code pt=pt_PT
%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{pt_PT,pt}
-# fix Greek language code
-%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{gr,el}
%find_lang %{name}
@@ -76,14 +73,18 @@ rm -rf $RPM_BUILD_ROOT
%post
%update_desktop_database
+%update_icon_cache hicolor
%postun
%update_desktop_database_postun
+%update_icon_cache hicolor
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README %{?with_xmlrpc:README.xmlrpc}
%attr(755,root,root) %{_bindir}/xchm
+%{_datadir}/metainfo/xchm.appdata.xml
%{_desktopdir}/xchm.desktop
-%{_pixmapsdir}/xchm*.png
-%{_pixmapsdir}/xchm*.xpm
+%{_iconsdir}/hicolor/*x*/apps/xchm.png
+%{_iconsdir}/hicolor/*x*/apps/xchmdoc.png
+%{_mandir}/man1/xchm.1*
diff --git a/wxWidgets3.patch b/wxWidgets3.patch
deleted file mode 100644
index d73632f..0000000
--- a/wxWidgets3.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- xchm-1.23/src/chmframe.cpp~ 2013-08-30 10:31:38.000000000 +0200
-+++ xchm-1.23/src/chmframe.cpp 2014-01-18 16:36:29.792122290 +0100
-@@ -265,7 +265,7 @@
- enu.EnumerateFacenames();
- _normalFonts = new wxArrayString;
-
--#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7
-+#if (wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7) || (wxMAJOR_VERSION == 3)
- *_normalFonts = enu.GetFacenames();
- #else
- *_normalFonts = *enu.GetFacenames();
-@@ -278,7 +278,7 @@
- enu.EnumerateFacenames(wxFONTENCODING_SYSTEM, TRUE);
- _fixedFonts = new wxArrayString;
-
--#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7
-+#if (wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 7) || (wxMAJOR_VERSION == 3)
- *_fixedFonts = enu.GetFacenames();
- #else
- *_fixedFonts = *enu.GetFacenames();
diff --git a/xchm-desktop.patch b/xchm-desktop.patch
new file mode 100644
index 0000000..dcb897d
--- /dev/null
+++ b/xchm-desktop.patch
@@ -0,0 +1,10 @@
+--- xchm-1.39/data/xchm.desktop.orig 2024-10-22 10:43:36.000000000 +0200
++++ xchm-1.39/data/xchm.desktop 2026-07-08 19:59:08.365862458 +0200
+@@ -1,6 +1,7 @@
+ [Desktop Entry]
+ Name=xCHM
+ Comment=View CHM files
++Comment[pl]=Przeglądanie plików CHM
+ Exec=xchm %f
+ Terminal=false
+ Type=Application
diff --git a/xchm-pl.po-update.patch b/xchm-pl.po-update.patch
index c875273..997a266 100644
--- a/xchm-pl.po-update.patch
+++ b/xchm-pl.po-update.patch
@@ -1,77 +1,57 @@
---- xchm-1.23/po/pl.po.orig 2013-08-30 10:32:57.000000000 +0200
-+++ xchm-1.23/po/pl.po 2014-01-25 16:01:16.645507496 +0100
-@@ -1,15 +1,15 @@
+--- xchm-1.39/po/pl.po.orig 2026-04-14 09:01:23.000000000 +0200
++++ xchm-1.39/po/pl.po 2026-07-08 18:15:46.606126942 +0200
+@@ -1,6 +1,6 @@
# Polish translation for xchm.
# This file is distributed under the same license as the xchm package.
--# Jakub Bogusz <qboosh at pld-linux.org>, 2004-2011.
-+# Jakub Bogusz <qboosh at pld-linux.org>, 2004-2014.
+-# Jakub Bogusz <qboosh at pld-linux.org>, 2004-2014.
++# Jakub Bogusz <qboosh at pld-linux.org>, 2004-2026.
#
# vi:encoding=utf-8
#
- msgid ""
- msgstr ""
--"Project-Id-Version: xchm 1.20\n"
-+"Project-Id-Version: xchm 1.23\n"
+@@ -9,7 +9,7 @@ msgstr ""
+ "Project-Id-Version: xchm 1.23\n"
"Report-Msgid-Bugs-To: \n"
- "POT-Creation-Date: 2013-08-30 11:32+0300\n"
--"PO-Revision-Date: 2011-05-20 16:45+0200\n"
-+"PO-Revision-Date: 2014-01-25 15:58+0100\n"
+ "POT-Creation-Date: 2026-03-20 12:28+0200\n"
+-"PO-Revision-Date: 2014-01-25 15:58+0100\n"
++"PO-Revision-Date: 2026-07-08 17:51+0200\n"
"Last-Translator: Jakub Bogusz <qboosh at pld-linux.org>\n"
"Language-Team: Polish <translation-team-pl at lists.sourceforge.net>\n"
"Language: pl\n"
-@@ -86,9 +86,8 @@
- msgstr "Wydruk aktualnie wyświetlanej strony."
+@@ -115,7 +115,7 @@ msgstr "Przełączenie trybu pełnoekran
- #: src/chmframe.cpp:52
--#, fuzzy
- msgid "Toggle table of contents."
--msgstr "Odtwarzanie spisu treści..."
-+msgstr "Przełączenie spisu treści."
-
- #: src/chmframe.cpp:53
- msgid "Go to the book's start page."
-@@ -116,7 +115,7 @@
-
- #: src/chmframe.cpp:59
- msgid "Toggle fullscreen mode."
+ #: src/chmframe.cpp:63
+ msgid "Toggle toolbar."
-msgstr ""
-+msgstr "Przełączenie trybu pełnoekranowego."
++msgstr "Przełączenie paska narzędzi."
- #: src/chmframe.cpp:60
+ #: src/chmframe.cpp:64
msgid "Close the current tab"
-@@ -236,7 +235,7 @@
-
- #: src/chmframe.cpp:824
- msgid "Toggle &fullscreen\tF11"
--msgstr ""
-+msgstr "Pełny &ekran\tF11"
-
- #: src/chmframe.cpp:828
- msgid "&File"
-@@ -244,7 +243,7 @@
-
- #: src/chmframe.cpp:829
- msgid "&View"
--msgstr ""
-+msgstr "&Widok"
+@@ -155,7 +155,7 @@ msgstr "Wybierz plik..."
- #: src/chmframe.cpp:830
- msgid "&Edit"
-@@ -304,7 +303,7 @@
-
- #: src/chmframe.cpp:1039
- msgid "Fullscreen"
+ #: src/chmframe.cpp:229 src/chmframe.cpp:338
+ msgid "Could not open file"
-msgstr ""
-+msgstr "Pełny ekran"
++msgstr "Nie udało się otworzyć pliku"
- #: src/chmframe.cpp:1044
- msgid "Back"
-@@ -352,7 +351,7 @@
+ #: src/chmframe.cpp:229 src/chmframe.cpp:338 src/chmhtmlwindow.cpp:301
+ #: src/chmhtmlwindow.cpp:319
+@@ -248,7 +248,7 @@ msgstr "Pełny &ekran\tF11"
- #: src/chmhtmlwindow.cpp:59
- msgid "&Toggle fullscreen mode"
+ #: src/chmframe.cpp:700
+ msgid "Toggle &toolbar\tAlt-T"
-msgstr ""
-+msgstr "&Przełącz tryb pełnoekranowy"
++msgstr "Pasek &narzędzi\tAlt-T"
- #: src/chmhtmlwindow.cpp:307
- msgid "OpenFile("
+ #: src/chmframe.cpp:703
+ msgid "&File"
+@@ -409,10 +409,3 @@ msgstr "Szukanie tylko w tytułach."
+ #: src/chmsearchpanel.cpp:50
+ msgid "Search contents for occurrences of the specified text."
+ msgstr "Poszukiwanie w treści wystąpień podanego tekstu."
+-
+-#, fuzzy
+-#~ msgid "Open all"
+-#~ msgstr "Otwórz..."
+-
+-#~ msgid "Font size:"
+-#~ msgstr "Rozmiar fontu:"
diff --git a/xchm.desktop b/xchm.desktop
deleted file mode 100644
index bbcbe45..0000000
--- a/xchm.desktop
+++ /dev/null
@@ -1,12 +0,0 @@
-[Desktop Entry]
-Name=xCHM
-Comment=CHM viewer
-Comment[pl]=Przeglądarka plików CHM
-Exec=xchm
-Icon=xchm
-StartupNotify=false
-Terminal=false
-Type=Application
-Categories=GTK;Utility;
-MimeType=application/x-chm;
-# vi: encoding=utf-8
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xchm.git/commitdiff/a99788cec84fda91bc157eda12547179515bfc61
More information about the pld-cvs-commit
mailing list