From 3035def2b1295d696671d928d615afebda86134b129d572540a022d0326507fe Mon Sep 17 00:00:00 2001 From: Giacomo Comes Date: Tue, 28 Jan 2025 15:20:51 +0000 Subject: [PATCH 1/5] - fix Requires - adjust spec file for Leap 16.0 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mcomix?expand=0&rev=19 --- .gitattributes | 23 +++++ .gitignore | 1 + mcomix-3.1.0.tar.gz | 3 + mcomix.changes | 227 ++++++++++++++++++++++++++++++++++++++++++++ mcomix.spec | 106 +++++++++++++++++++++ 5 files changed, 360 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mcomix-3.1.0.tar.gz create mode 100644 mcomix.changes create mode 100644 mcomix.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mcomix-3.1.0.tar.gz b/mcomix-3.1.0.tar.gz new file mode 100644 index 0000000..1faabaa --- /dev/null +++ b/mcomix-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9286eba7ffbc3ce9528135a9939823c425f3bbe9f74a639f8706fcc28b4c427 +size 668651 diff --git a/mcomix.changes b/mcomix.changes new file mode 100644 index 0000000..59bcb0f --- /dev/null +++ b/mcomix.changes @@ -0,0 +1,227 @@ +------------------------------------------------------------------- +Tue Jan 28 15:19:10 UTC 2025 - Giacomo Comes + +- fix Requires +- adjust spec file for Leap 16.0 + +------------------------------------------------------------------- +Tue May 21 15:32:29 UTC 2024 - Giacomo Comes + +- update to 3.1.0: + * Image colors can be negated in the Image Enhancement dialog. + * "Fit to size" has been generalised. + * Fixed regression from 2.0.0 in Library collection list. + * Added official MIME types for CBZ/CBR files + * Improved robustness to invalid UTF-8 +- update to 3.0.0: + * MComix uses pyproject.toml instead of the now obsolete setup.py + * application meta files are no longer copied automatically by + the installation process + * Fixed bug in Python PDF extraction that prevented rotated PDF + images being displayed without rotation. + * MComix previously didn't remember to restore the "maximized" + window state when restarting. + +------------------------------------------------------------------- +Wed Nov 22 16:03:49 UTC 2023 - Giacomo Comes + +- fixed typo: Requires: /usr/bin/chardet -> Requires: /usr/bin/chardetect + +------------------------------------------------------------------- +Wed Nov 1 05:28:09 UTC 2023 - Giacomo Comes + +- replace Requires: python3-chardet with Requires: /usr/bin/chardet +- use %{python_module} macro for BuildRequires: of python modules +- use %{pythons} macro for Requires: of python modules +- cleanup in the %files section + +------------------------------------------------------------------- +Wed Oct 11 18:56:48 UTC 2023 - Giacomo Comes + +- replace Requires: PyGObject with Requires: python3-gobject-Gdk +- replace Requires: chardet with Requires: python3-chardet +- since version 2.2.0 mcomix needs puthon 3.7, use the macro + sle15_python_module_pythons to build mcomix on Leap using + a modern version of python + +------------------------------------------------------------------- +Wed Oct 4 18:59:18 UTC 2023 - Sergio Laverde + +- update to 2.3.0: + * MComix now offers a high-resolution application icon. + * Restored Python 3.7 compatibility in native PDF extractor. +- changes introduced in 2.2.1: + * Added missing vendor package to source distribution. +- changes introduced in 2.2.0: + * Fixed incorrect PDF transformations on systems using a recent + version of MuPDF. + * Fixed incompatibility with Pillow 10.0.0 due to bug in version check. + * MComix can now use the PyMuPDF Python package to provide PDF reading + capabilities, with improved extraction/decoding speed. + * Added support for MobiPocket (AZW3) format books. Archives with DRM + are not supported. + * The OSD now shows the current page and the total number of pages. + * The tabs of the Preferences dialog are scrollable so all dialog tabs + can be properly used on smaller screens. + * Updated the simplified Chinese translation. + +------------------------------------------------------------------- +Mon May 29 20:05:15 UTC 2023 - Dirk Müller + +- update to 2.1.1: + * Improved quality and speed of the magnifying lens. + * Added new de facto IEC prefixes. + * Window size should be remembered correctly again when + restarting the application. + * Replaced usage of deprecated GTK threading/timer + functionality. + * Fixed GLib application name. This improves integration + with Gnome. + +------------------------------------------------------------------- +Mon Dec 26 14:31:45 UTC 2022 - Andrea Manzini + +- fix wrong attributes in original archived source + +------------------------------------------------------------------- +Sat Dec 24 16:35:16 UTC 2022 - Andrea Manzini + +- Update to 2.1.0: + * Fixed byte/unicode error in library search text field. + * Fixed DPI detection for PDFs which cannot be decoded using UTF-8. + * Fixed magnifying lens errors when image was rotated + +------------------------------------------------------------------- +Tue Jun 28 02:57:26 UTC 2022 - Giacomo Comes + +- add Requires: typelib-1_0-Gtk-3_0 + * fix boo#1200948 + +------------------------------------------------------------------- +Thu Jun 2 14:29:40 UTC 2022 - Giacomo Comes + +- spec file cleanup +- add BuildRequires: gobject-introspection +- replace Requires: python3-gobject with Requires: python3-gobject-Gdk + +------------------------------------------------------------------- +Mon May 30 16:55:37 UTC 2022 - Giacomo Comes + +- Update to 2.0.2: + * Fixed bytes/unicode error in library 'Add collection' dialog. + * Fixed missing localization and image resources after calling + "setup.py install" + * Fixed bytes/unicode error in unrar executable extraction handler. + * Fixed one more instance of incorrect color conversion from preferences. +- Update to 2.0.1: + * Fixed conversion of unexpected color values from stored preferences. + * Fixed error trying to display page file size within archives where + members have not been extracted yet. + * Fixed bytes/unicode error in the library 'Add Book' dialog. + * Fixed endless password popup when library fails to genrate thumbnail + for password-protected archive. + * Handle error when thumbnail metadata Thumb::MTime is a floating point + number. + * Fixed alphanumeric sort for names with mismatched text/number patterns. + * Fixed unicode/bytes error in "Save as" dialog, as well as errors + when saving double-page images. +- Update to 2.0.0: + * MComix now requires Python 3, GTK+ 3, PyGObject, and PyCairo. + * Animated image formats are now supported. + * Supported image formats are now a combination of formats supported by + GDK/Pixbuf and Pillow formats. + +------------------------------------------------------------------- +Sun Jul 16 08:41:18 UTC 2017 - sleep_walker@opensuse.org + +- clean the spec with spec-cleaner + +------------------------------------------------------------------- +Wed Aug 3 11:03:27 UTC 2016 - sleep_walker@opensuse.org + +- bump to 1.2.1 + for list of changes check ChangeLog file + +------------------------------------------------------------------- +Tue Nov 10 18:01:34 CET 2015 - tiwai@suse.de + +- Add missing dependency on python-setuptools + +------------------------------------------------------------------- +Mon Nov 2 11:56:11 UTC 2015 - sleep_walker@opensuse.org + +- localization was not part of package - fix it + +------------------------------------------------------------------- +Mon Nov 2 06:20:19 UTC 2015 - sleep_walker@opensuse.org + +- bump to 1.01 + - Keyboard shortcuts can now be edited from MComix' preference dialog + in a new tab "Shortcuts". (by Valentin Gologuzov) + Please not that the arrow keys, Backspace and Escape cannot be bound + to actions right now, unless you're manually editing the config file. + + - During database upgrade, MComix did not consider that books in the + "Last read" database might no longer exist, leading to program crash. + This has been fixed. + + - Adding a collection with a numeric name to the library made the library + unusable. This has been fixed. + + - Fixed win32 builds missing the 'calendar' module. + + - Fixed bookmarks not being displayed in the Ubuntu Unity global menu. + + - Fixed 'Continue reading' not working when files are opened from + the command line (by Boris Bogar). + + - Improved page extraction and caching algorithm, leading to much better + responsiveness, especially for viewing large archives. (by Benoit Pierre) + + - MComix will now always hide the mouse cursor after a period of + inactivity, even when not in fullscreen mode. (by Benoit Pierre) + + - The ALT+Left and ALT+Right keys will now either advance one page, + or go back one page, depending on the user being in manga mode. + + - CTRL plus mouse wheel will now zoom in/out one level. + + - Manual zooming will now use a logarithmic scale instead of a linear + spline. + + - The library will now use natural sorting for "Sort by name" and + "Sort by path" instead of alphanumeric sorting, bringing it in line + with most other sorting done by MComix. + + - Adding a book to a collection with the same book already existing + in another collection did not immediately show the book in the + library main view when the new collection was already selected. + + - MComix can now use the '7z' executable to read .tar.xz and .tar.lzma + archives. + + - ZIP archives using BZIP2 compression will now fall back to external + unzip/7z instead of failing (by Awad Mackie). + + - MComix can now read PDF files using tools provided by mupdf, + namely mutool and mudraw. (by Benoit Pierre) + + - MComix will now use the current GTK theme's icons for + Next/Previous buttons. + + - Added AppData meta information for software repositories. + + - Updated traditional Chinese translation (by Wayne Su). + +------------------------------------------------------------------- +Thu Jul 24 17:38:24 UTC 2014 - sleep_walker@suse.cz + +- remove windows-fix.patch as it is not needed after update of + python-setuptools + +------------------------------------------------------------------- +Thu Jul 24 16:03:17 UTC 2014 - sleep_walker@suse.cz + +- let there be mcomix! +- add windows-fix.patch as python-setuptools doesn't take it correctly + otherwise diff --git a/mcomix.spec b/mcomix.spec new file mode 100644 index 0000000..8165744 --- /dev/null +++ b/mcomix.spec @@ -0,0 +1,106 @@ +# +# spec file for package mcomix +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if 0%{?suse_version} > 1600 +%define pythons python3 +%else +%define pythons python311 +%endif + +Name: mcomix +Version: 3.1.0 +Release: 0 +Summary: Comics Viewer +License: GPL-2.0-only +Group: Productivity/Graphics/Viewers +URL: https://sourceforge.net/p/mcomix/wiki/Home/ +Source0: https://sourceforge.net/projects/mcomix/files/MComix-%{version}/%{name}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: gobject-introspection +%if 0%{?suse_version} > 1600 +Requires: python3-PyMuPDF +%else +Requires: mupdf +%endif +Requires: %{pythons} +Requires: %{pythons}-Pillow +Requires: %{pythons}-gobject-Gdk +Requires: %{pythons}-pycairo +Requires: /usr/bin/7z +Requires: /usr/bin/chardetect +Requires: typelib-1_0-Gtk-3_0 +Recommends: /usr/bin/lha +Recommends: unrar +BuildArch: noarch +%if 0%{?suse_version} +BuildRequires: fdupes +%endif + +%description +Comics Viewer forked from comix. + +%prep +%setup -q +# remove extra executable flags +find . -type f | xargs chmod a-x + +%build +%pyproject_wheel + +%install +%pyproject_install +{ + echo '%defattr(-,root,root,-)' + %{python_expand ls %{buildroot}%{$python_sitelib}/mcomix/messages/*/LC_MESSAGES/mcomix.mo | \ + sed 's@%{buildroot}\(%{$python_sitelib}/mcomix/messages/\([^/]\+\)/LC_MESSAGES/mcomix.mo\)@%lang(\2) \1@' } +} | tee %{name}.lang +install -Dm 644 share/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop +for a in share/icons/hicolor/* ; do + install -Dm 644 -t %{buildroot}%{_datadir}/icons/hicolor/${a##*/}/apps $a/apps/* + [[ -d $a/mimetypes ]] && install -Dm 644 -t %{buildroot}%{_datadir}/icons/hicolor/${a##*/}/mimetypes $a/mimetypes/* +done +install -Dm 644 share/mime/packages/%{name}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml +install -Dm 644 share/metainfo/%{name}.metainfo.xml %{buildroot}%{_datadir}/metainfo/%{name}.metainfo.xml +install -Dm 644 share/man/man1/%{name}.1.gz -t %{buildroot}%{_datadir}/man/man1 + +%if 0%{?suse_version} +%fdupes -s %{buildroot}%{_datadir}/icons +%python_expand %fdupes -s %{buildroot}%{$python_sitelib}/mcomix +%python_expand %fdupes -s %{buildroot}%{$python_sitelib}/mcomix-* +%endif + +%files -n %{name} -f %{name}.lang +%attr(755,root,root) %{_bindir}/mcomix +%{python_sitelib}/mcomix-* +%dir %{python_sitelib}/mcomix/ +%{python_sitelib}/mcomix/*.py* +%{python_sitelib}/mcomix/library/ +%{python_sitelib}/mcomix/images/ +%{python_sitelib}/mcomix/messages/ +%{python_sitelib}/mcomix/archive/ +%{python_sitelib}/mcomix/__pycache__/ +%{python_sitelib}/mcomix/_vendor/ +%{_datadir}/metainfo/* +%{_datadir}/applications/mcomix.desktop +%{_datadir}/icons/hicolor +%{_datadir}/mime/packages/mcomix.xml +%{_mandir}/man1/mcomix* + +%changelog -- 2.51.1 From 5a1d61af84467a79c7c419c2eeebefcd3d52c145167d10ec19673b72166dc6b3 Mon Sep 17 00:00:00 2001 From: Giacomo Comes Date: Wed, 29 Jan 2025 13:23:41 +0000 Subject: [PATCH 2/5] - for Leap 16.8 requires python3 instead of python311 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mcomix?expand=0&rev=20 --- mcomix.changes | 5 +++++ mcomix.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mcomix.changes b/mcomix.changes index 59bcb0f..81ce45e 100644 --- a/mcomix.changes +++ b/mcomix.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 29 13:19:11 UTC 2025 - Giacomo Comes + +- for Leap 16.8 requires python3 instead of python311 + ------------------------------------------------------------------- Tue Jan 28 15:19:10 UTC 2025 - Giacomo Comes diff --git a/mcomix.spec b/mcomix.spec index 8165744..32175d3 100644 --- a/mcomix.spec +++ b/mcomix.spec @@ -16,7 +16,7 @@ # -%if 0%{?suse_version} > 1600 +%if 0%{?suse_version} >= 1600 %define pythons python3 %else %define pythons python311 -- 2.51.1 From 39cb2c6c04d39e95e99abeb9bf6520e4d41429d9df9df127f6d2d935493dd45e Mon Sep 17 00:00:00 2001 From: Giacomo Comes Date: Wed, 29 Jan 2025 13:29:42 +0000 Subject: [PATCH 3/5] - for Leap 16.0 requires python3 instead of python311 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mcomix?expand=0&rev=21 --- mcomix.changes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcomix.changes b/mcomix.changes index 81ce45e..a1128cd 100644 --- a/mcomix.changes +++ b/mcomix.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- -Wed Jan 29 13:19:11 UTC 2025 - Giacomo Comes +Wed Jan 29 13:29:04 UTC 2025 - Giacomo Comes -- for Leap 16.8 requires python3 instead of python311 +- for Leap 16.0 requires python3 instead of python311 ------------------------------------------------------------------- Tue Jan 28 15:19:10 UTC 2025 - Giacomo Comes -- 2.51.1 From 273c1dcf2e35f9a4068d273dea5b4ff3b435e532a1c59f80d3ed92b594a77564 Mon Sep 17 00:00:00 2001 From: Giacomo Comes Date: Tue, 19 Aug 2025 18:00:43 +0000 Subject: [PATCH 4/5] - replace Requires: /usr/bin/chardetect with %{pythons}-chardet * let chardetect use the same python version as mcomix OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mcomix?expand=0&rev=23 --- .gitattributes | 23 +++++ .gitignore | 1 + mcomix-3.1.0.tar.gz | 3 + mcomix.changes | 238 ++++++++++++++++++++++++++++++++++++++++++++ mcomix.spec | 106 ++++++++++++++++++++ 5 files changed, 371 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mcomix-3.1.0.tar.gz create mode 100644 mcomix.changes create mode 100644 mcomix.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mcomix-3.1.0.tar.gz b/mcomix-3.1.0.tar.gz new file mode 100644 index 0000000..1faabaa --- /dev/null +++ b/mcomix-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9286eba7ffbc3ce9528135a9939823c425f3bbe9f74a639f8706fcc28b4c427 +size 668651 diff --git a/mcomix.changes b/mcomix.changes new file mode 100644 index 0000000..2684ca3 --- /dev/null +++ b/mcomix.changes @@ -0,0 +1,238 @@ +------------------------------------------------------------------- +Tue Aug 19 18:00:02 UTC 2025 - Giacomo Comes + +- replace Requires: /usr/bin/chardetect with %{pythons}-chardet + * let chardetect use the same python version as mcomix + +------------------------------------------------------------------- +Wed Jan 29 13:29:04 UTC 2025 - Giacomo Comes + +- for Leap 16.0 requires python3 instead of python311 + +------------------------------------------------------------------- +Tue Jan 28 15:19:10 UTC 2025 - Giacomo Comes + +- fix Requires +- adjust spec file for Leap 16.0 + +------------------------------------------------------------------- +Tue May 21 15:32:29 UTC 2024 - Giacomo Comes + +- update to 3.1.0: + * Image colors can be negated in the Image Enhancement dialog. + * "Fit to size" has been generalised. + * Fixed regression from 2.0.0 in Library collection list. + * Added official MIME types for CBZ/CBR files + * Improved robustness to invalid UTF-8 +- update to 3.0.0: + * MComix uses pyproject.toml instead of the now obsolete setup.py + * application meta files are no longer copied automatically by + the installation process + * Fixed bug in Python PDF extraction that prevented rotated PDF + images being displayed without rotation. + * MComix previously didn't remember to restore the "maximized" + window state when restarting. + +------------------------------------------------------------------- +Wed Nov 22 16:03:49 UTC 2023 - Giacomo Comes + +- fixed typo: Requires: /usr/bin/chardet -> Requires: /usr/bin/chardetect + +------------------------------------------------------------------- +Wed Nov 1 05:28:09 UTC 2023 - Giacomo Comes + +- replace Requires: python3-chardet with Requires: /usr/bin/chardet +- use %{python_module} macro for BuildRequires: of python modules +- use %{pythons} macro for Requires: of python modules +- cleanup in the %files section + +------------------------------------------------------------------- +Wed Oct 11 18:56:48 UTC 2023 - Giacomo Comes + +- replace Requires: PyGObject with Requires: python3-gobject-Gdk +- replace Requires: chardet with Requires: python3-chardet +- since version 2.2.0 mcomix needs puthon 3.7, use the macro + sle15_python_module_pythons to build mcomix on Leap using + a modern version of python + +------------------------------------------------------------------- +Wed Oct 4 18:59:18 UTC 2023 - Sergio Laverde + +- update to 2.3.0: + * MComix now offers a high-resolution application icon. + * Restored Python 3.7 compatibility in native PDF extractor. +- changes introduced in 2.2.1: + * Added missing vendor package to source distribution. +- changes introduced in 2.2.0: + * Fixed incorrect PDF transformations on systems using a recent + version of MuPDF. + * Fixed incompatibility with Pillow 10.0.0 due to bug in version check. + * MComix can now use the PyMuPDF Python package to provide PDF reading + capabilities, with improved extraction/decoding speed. + * Added support for MobiPocket (AZW3) format books. Archives with DRM + are not supported. + * The OSD now shows the current page and the total number of pages. + * The tabs of the Preferences dialog are scrollable so all dialog tabs + can be properly used on smaller screens. + * Updated the simplified Chinese translation. + +------------------------------------------------------------------- +Mon May 29 20:05:15 UTC 2023 - Dirk Müller + +- update to 2.1.1: + * Improved quality and speed of the magnifying lens. + * Added new de facto IEC prefixes. + * Window size should be remembered correctly again when + restarting the application. + * Replaced usage of deprecated GTK threading/timer + functionality. + * Fixed GLib application name. This improves integration + with Gnome. + +------------------------------------------------------------------- +Mon Dec 26 14:31:45 UTC 2022 - Andrea Manzini + +- fix wrong attributes in original archived source + +------------------------------------------------------------------- +Sat Dec 24 16:35:16 UTC 2022 - Andrea Manzini + +- Update to 2.1.0: + * Fixed byte/unicode error in library search text field. + * Fixed DPI detection for PDFs which cannot be decoded using UTF-8. + * Fixed magnifying lens errors when image was rotated + +------------------------------------------------------------------- +Tue Jun 28 02:57:26 UTC 2022 - Giacomo Comes + +- add Requires: typelib-1_0-Gtk-3_0 + * fix boo#1200948 + +------------------------------------------------------------------- +Thu Jun 2 14:29:40 UTC 2022 - Giacomo Comes + +- spec file cleanup +- add BuildRequires: gobject-introspection +- replace Requires: python3-gobject with Requires: python3-gobject-Gdk + +------------------------------------------------------------------- +Mon May 30 16:55:37 UTC 2022 - Giacomo Comes + +- Update to 2.0.2: + * Fixed bytes/unicode error in library 'Add collection' dialog. + * Fixed missing localization and image resources after calling + "setup.py install" + * Fixed bytes/unicode error in unrar executable extraction handler. + * Fixed one more instance of incorrect color conversion from preferences. +- Update to 2.0.1: + * Fixed conversion of unexpected color values from stored preferences. + * Fixed error trying to display page file size within archives where + members have not been extracted yet. + * Fixed bytes/unicode error in the library 'Add Book' dialog. + * Fixed endless password popup when library fails to genrate thumbnail + for password-protected archive. + * Handle error when thumbnail metadata Thumb::MTime is a floating point + number. + * Fixed alphanumeric sort for names with mismatched text/number patterns. + * Fixed unicode/bytes error in "Save as" dialog, as well as errors + when saving double-page images. +- Update to 2.0.0: + * MComix now requires Python 3, GTK+ 3, PyGObject, and PyCairo. + * Animated image formats are now supported. + * Supported image formats are now a combination of formats supported by + GDK/Pixbuf and Pillow formats. + +------------------------------------------------------------------- +Sun Jul 16 08:41:18 UTC 2017 - sleep_walker@opensuse.org + +- clean the spec with spec-cleaner + +------------------------------------------------------------------- +Wed Aug 3 11:03:27 UTC 2016 - sleep_walker@opensuse.org + +- bump to 1.2.1 + for list of changes check ChangeLog file + +------------------------------------------------------------------- +Tue Nov 10 18:01:34 CET 2015 - tiwai@suse.de + +- Add missing dependency on python-setuptools + +------------------------------------------------------------------- +Mon Nov 2 11:56:11 UTC 2015 - sleep_walker@opensuse.org + +- localization was not part of package - fix it + +------------------------------------------------------------------- +Mon Nov 2 06:20:19 UTC 2015 - sleep_walker@opensuse.org + +- bump to 1.01 + - Keyboard shortcuts can now be edited from MComix' preference dialog + in a new tab "Shortcuts". (by Valentin Gologuzov) + Please not that the arrow keys, Backspace and Escape cannot be bound + to actions right now, unless you're manually editing the config file. + + - During database upgrade, MComix did not consider that books in the + "Last read" database might no longer exist, leading to program crash. + This has been fixed. + + - Adding a collection with a numeric name to the library made the library + unusable. This has been fixed. + + - Fixed win32 builds missing the 'calendar' module. + + - Fixed bookmarks not being displayed in the Ubuntu Unity global menu. + + - Fixed 'Continue reading' not working when files are opened from + the command line (by Boris Bogar). + + - Improved page extraction and caching algorithm, leading to much better + responsiveness, especially for viewing large archives. (by Benoit Pierre) + + - MComix will now always hide the mouse cursor after a period of + inactivity, even when not in fullscreen mode. (by Benoit Pierre) + + - The ALT+Left and ALT+Right keys will now either advance one page, + or go back one page, depending on the user being in manga mode. + + - CTRL plus mouse wheel will now zoom in/out one level. + + - Manual zooming will now use a logarithmic scale instead of a linear + spline. + + - The library will now use natural sorting for "Sort by name" and + "Sort by path" instead of alphanumeric sorting, bringing it in line + with most other sorting done by MComix. + + - Adding a book to a collection with the same book already existing + in another collection did not immediately show the book in the + library main view when the new collection was already selected. + + - MComix can now use the '7z' executable to read .tar.xz and .tar.lzma + archives. + + - ZIP archives using BZIP2 compression will now fall back to external + unzip/7z instead of failing (by Awad Mackie). + + - MComix can now read PDF files using tools provided by mupdf, + namely mutool and mudraw. (by Benoit Pierre) + + - MComix will now use the current GTK theme's icons for + Next/Previous buttons. + + - Added AppData meta information for software repositories. + + - Updated traditional Chinese translation (by Wayne Su). + +------------------------------------------------------------------- +Thu Jul 24 17:38:24 UTC 2014 - sleep_walker@suse.cz + +- remove windows-fix.patch as it is not needed after update of + python-setuptools + +------------------------------------------------------------------- +Thu Jul 24 16:03:17 UTC 2014 - sleep_walker@suse.cz + +- let there be mcomix! +- add windows-fix.patch as python-setuptools doesn't take it correctly + otherwise diff --git a/mcomix.spec b/mcomix.spec new file mode 100644 index 0000000..3e9ed99 --- /dev/null +++ b/mcomix.spec @@ -0,0 +1,106 @@ +# +# spec file for package mcomix +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if 0%{?suse_version} >= 1600 +%define pythons python3 +%else +%define pythons python311 +%endif + +Name: mcomix +Version: 3.1.0 +Release: 0 +Summary: Comics Viewer +License: GPL-2.0-only +Group: Productivity/Graphics/Viewers +URL: https://sourceforge.net/p/mcomix/wiki/Home/ +Source0: https://sourceforge.net/projects/mcomix/files/MComix-%{version}/%{name}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: gobject-introspection +%if 0%{?suse_version} > 1600 +Requires: python3-PyMuPDF +%else +Requires: mupdf +%endif +Requires: %{pythons} +Requires: %{pythons}-Pillow +Requires: %{pythons}-chardet +Requires: %{pythons}-gobject-Gdk +Requires: %{pythons}-pycairo +Requires: /usr/bin/7z +Requires: typelib-1_0-Gtk-3_0 +Recommends: /usr/bin/lha +Recommends: unrar +BuildArch: noarch +%if 0%{?suse_version} +BuildRequires: fdupes +%endif + +%description +Comics Viewer forked from comix. + +%prep +%setup -q +# remove extra executable flags +find . -type f | xargs chmod a-x + +%build +%pyproject_wheel + +%install +%pyproject_install +{ + echo '%defattr(-,root,root,-)' + %{python_expand ls %{buildroot}%{$python_sitelib}/mcomix/messages/*/LC_MESSAGES/mcomix.mo | \ + sed 's@%{buildroot}\(%{$python_sitelib}/mcomix/messages/\([^/]\+\)/LC_MESSAGES/mcomix.mo\)@%lang(\2) \1@' } +} | tee %{name}.lang +install -Dm 644 share/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop +for a in share/icons/hicolor/* ; do + install -Dm 644 -t %{buildroot}%{_datadir}/icons/hicolor/${a##*/}/apps $a/apps/* + [[ -d $a/mimetypes ]] && install -Dm 644 -t %{buildroot}%{_datadir}/icons/hicolor/${a##*/}/mimetypes $a/mimetypes/* +done +install -Dm 644 share/mime/packages/%{name}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml +install -Dm 644 share/metainfo/%{name}.metainfo.xml %{buildroot}%{_datadir}/metainfo/%{name}.metainfo.xml +install -Dm 644 share/man/man1/%{name}.1.gz -t %{buildroot}%{_datadir}/man/man1 + +%if 0%{?suse_version} +%fdupes -s %{buildroot}%{_datadir}/icons +%python_expand %fdupes -s %{buildroot}%{$python_sitelib}/mcomix +%python_expand %fdupes -s %{buildroot}%{$python_sitelib}/mcomix-* +%endif + +%files -n %{name} -f %{name}.lang +%attr(755,root,root) %{_bindir}/mcomix +%{python_sitelib}/mcomix-* +%dir %{python_sitelib}/mcomix/ +%{python_sitelib}/mcomix/*.py* +%{python_sitelib}/mcomix/library/ +%{python_sitelib}/mcomix/images/ +%{python_sitelib}/mcomix/messages/ +%{python_sitelib}/mcomix/archive/ +%{python_sitelib}/mcomix/__pycache__/ +%{python_sitelib}/mcomix/_vendor/ +%{_datadir}/metainfo/* +%{_datadir}/applications/mcomix.desktop +%{_datadir}/icons/hicolor +%{_datadir}/mime/packages/mcomix.xml +%{_mandir}/man1/mcomix* + +%changelog -- 2.51.1 From ea54e8089d8949a653c3168f8854ac364ac20ffb2ddb90f845fcb61f2e3189fd Mon Sep 17 00:00:00 2001 From: Giacomo Comes Date: Mon, 13 Oct 2025 16:58:02 +0000 Subject: [PATCH 5/5] - Update to 3.1.1: * Fix "context has already been set" error OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/mcomix?expand=0&rev=25 --- .gitattributes | 23 +++++ .gitignore | 1 + mcomix-3.1.0.tar.gz | 3 + mcomix-3.1.1.tar.gz | 3 + mcomix.changes | 244 ++++++++++++++++++++++++++++++++++++++++++++ mcomix.spec | 106 +++++++++++++++++++ 6 files changed, 380 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 mcomix-3.1.0.tar.gz create mode 100644 mcomix-3.1.1.tar.gz create mode 100644 mcomix.changes create mode 100644 mcomix.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mcomix-3.1.0.tar.gz b/mcomix-3.1.0.tar.gz new file mode 100644 index 0000000..1faabaa --- /dev/null +++ b/mcomix-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9286eba7ffbc3ce9528135a9939823c425f3bbe9f74a639f8706fcc28b4c427 +size 668651 diff --git a/mcomix-3.1.1.tar.gz b/mcomix-3.1.1.tar.gz new file mode 100644 index 0000000..23888c3 --- /dev/null +++ b/mcomix-3.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a10aaaed7bc07deb74efde93bf9a8a27e1bcbf1824a0519b264cfee582becef8 +size 669463 diff --git a/mcomix.changes b/mcomix.changes new file mode 100644 index 0000000..6351cb5 --- /dev/null +++ b/mcomix.changes @@ -0,0 +1,244 @@ +------------------------------------------------------------------- +Mon Oct 13 16:30:21 UTC 2025 - Hunter Wardlaw + +- Update to 3.1.1: + * Fix "context has already been set" error + +------------------------------------------------------------------- +Tue Aug 19 18:00:02 UTC 2025 - Giacomo Comes + +- replace Requires: /usr/bin/chardetect with %{pythons}-chardet + * let chardetect use the same python version as mcomix + +------------------------------------------------------------------- +Wed Jan 29 13:29:04 UTC 2025 - Giacomo Comes + +- for Leap 16.0 requires python3 instead of python311 + +------------------------------------------------------------------- +Tue Jan 28 15:19:10 UTC 2025 - Giacomo Comes + +- fix Requires +- adjust spec file for Leap 16.0 + +------------------------------------------------------------------- +Tue May 21 15:32:29 UTC 2024 - Giacomo Comes + +- update to 3.1.0: + * Image colors can be negated in the Image Enhancement dialog. + * "Fit to size" has been generalised. + * Fixed regression from 2.0.0 in Library collection list. + * Added official MIME types for CBZ/CBR files + * Improved robustness to invalid UTF-8 +- update to 3.0.0: + * MComix uses pyproject.toml instead of the now obsolete setup.py + * application meta files are no longer copied automatically by + the installation process + * Fixed bug in Python PDF extraction that prevented rotated PDF + images being displayed without rotation. + * MComix previously didn't remember to restore the "maximized" + window state when restarting. + +------------------------------------------------------------------- +Wed Nov 22 16:03:49 UTC 2023 - Giacomo Comes + +- fixed typo: Requires: /usr/bin/chardet -> Requires: /usr/bin/chardetect + +------------------------------------------------------------------- +Wed Nov 1 05:28:09 UTC 2023 - Giacomo Comes + +- replace Requires: python3-chardet with Requires: /usr/bin/chardet +- use %{python_module} macro for BuildRequires: of python modules +- use %{pythons} macro for Requires: of python modules +- cleanup in the %files section + +------------------------------------------------------------------- +Wed Oct 11 18:56:48 UTC 2023 - Giacomo Comes + +- replace Requires: PyGObject with Requires: python3-gobject-Gdk +- replace Requires: chardet with Requires: python3-chardet +- since version 2.2.0 mcomix needs puthon 3.7, use the macro + sle15_python_module_pythons to build mcomix on Leap using + a modern version of python + +------------------------------------------------------------------- +Wed Oct 4 18:59:18 UTC 2023 - Sergio Laverde + +- update to 2.3.0: + * MComix now offers a high-resolution application icon. + * Restored Python 3.7 compatibility in native PDF extractor. +- changes introduced in 2.2.1: + * Added missing vendor package to source distribution. +- changes introduced in 2.2.0: + * Fixed incorrect PDF transformations on systems using a recent + version of MuPDF. + * Fixed incompatibility with Pillow 10.0.0 due to bug in version check. + * MComix can now use the PyMuPDF Python package to provide PDF reading + capabilities, with improved extraction/decoding speed. + * Added support for MobiPocket (AZW3) format books. Archives with DRM + are not supported. + * The OSD now shows the current page and the total number of pages. + * The tabs of the Preferences dialog are scrollable so all dialog tabs + can be properly used on smaller screens. + * Updated the simplified Chinese translation. + +------------------------------------------------------------------- +Mon May 29 20:05:15 UTC 2023 - Dirk Müller + +- update to 2.1.1: + * Improved quality and speed of the magnifying lens. + * Added new de facto IEC prefixes. + * Window size should be remembered correctly again when + restarting the application. + * Replaced usage of deprecated GTK threading/timer + functionality. + * Fixed GLib application name. This improves integration + with Gnome. + +------------------------------------------------------------------- +Mon Dec 26 14:31:45 UTC 2022 - Andrea Manzini + +- fix wrong attributes in original archived source + +------------------------------------------------------------------- +Sat Dec 24 16:35:16 UTC 2022 - Andrea Manzini + +- Update to 2.1.0: + * Fixed byte/unicode error in library search text field. + * Fixed DPI detection for PDFs which cannot be decoded using UTF-8. + * Fixed magnifying lens errors when image was rotated + +------------------------------------------------------------------- +Tue Jun 28 02:57:26 UTC 2022 - Giacomo Comes + +- add Requires: typelib-1_0-Gtk-3_0 + * fix boo#1200948 + +------------------------------------------------------------------- +Thu Jun 2 14:29:40 UTC 2022 - Giacomo Comes + +- spec file cleanup +- add BuildRequires: gobject-introspection +- replace Requires: python3-gobject with Requires: python3-gobject-Gdk + +------------------------------------------------------------------- +Mon May 30 16:55:37 UTC 2022 - Giacomo Comes + +- Update to 2.0.2: + * Fixed bytes/unicode error in library 'Add collection' dialog. + * Fixed missing localization and image resources after calling + "setup.py install" + * Fixed bytes/unicode error in unrar executable extraction handler. + * Fixed one more instance of incorrect color conversion from preferences. +- Update to 2.0.1: + * Fixed conversion of unexpected color values from stored preferences. + * Fixed error trying to display page file size within archives where + members have not been extracted yet. + * Fixed bytes/unicode error in the library 'Add Book' dialog. + * Fixed endless password popup when library fails to genrate thumbnail + for password-protected archive. + * Handle error when thumbnail metadata Thumb::MTime is a floating point + number. + * Fixed alphanumeric sort for names with mismatched text/number patterns. + * Fixed unicode/bytes error in "Save as" dialog, as well as errors + when saving double-page images. +- Update to 2.0.0: + * MComix now requires Python 3, GTK+ 3, PyGObject, and PyCairo. + * Animated image formats are now supported. + * Supported image formats are now a combination of formats supported by + GDK/Pixbuf and Pillow formats. + +------------------------------------------------------------------- +Sun Jul 16 08:41:18 UTC 2017 - sleep_walker@opensuse.org + +- clean the spec with spec-cleaner + +------------------------------------------------------------------- +Wed Aug 3 11:03:27 UTC 2016 - sleep_walker@opensuse.org + +- bump to 1.2.1 + for list of changes check ChangeLog file + +------------------------------------------------------------------- +Tue Nov 10 18:01:34 CET 2015 - tiwai@suse.de + +- Add missing dependency on python-setuptools + +------------------------------------------------------------------- +Mon Nov 2 11:56:11 UTC 2015 - sleep_walker@opensuse.org + +- localization was not part of package - fix it + +------------------------------------------------------------------- +Mon Nov 2 06:20:19 UTC 2015 - sleep_walker@opensuse.org + +- bump to 1.01 + - Keyboard shortcuts can now be edited from MComix' preference dialog + in a new tab "Shortcuts". (by Valentin Gologuzov) + Please not that the arrow keys, Backspace and Escape cannot be bound + to actions right now, unless you're manually editing the config file. + + - During database upgrade, MComix did not consider that books in the + "Last read" database might no longer exist, leading to program crash. + This has been fixed. + + - Adding a collection with a numeric name to the library made the library + unusable. This has been fixed. + + - Fixed win32 builds missing the 'calendar' module. + + - Fixed bookmarks not being displayed in the Ubuntu Unity global menu. + + - Fixed 'Continue reading' not working when files are opened from + the command line (by Boris Bogar). + + - Improved page extraction and caching algorithm, leading to much better + responsiveness, especially for viewing large archives. (by Benoit Pierre) + + - MComix will now always hide the mouse cursor after a period of + inactivity, even when not in fullscreen mode. (by Benoit Pierre) + + - The ALT+Left and ALT+Right keys will now either advance one page, + or go back one page, depending on the user being in manga mode. + + - CTRL plus mouse wheel will now zoom in/out one level. + + - Manual zooming will now use a logarithmic scale instead of a linear + spline. + + - The library will now use natural sorting for "Sort by name" and + "Sort by path" instead of alphanumeric sorting, bringing it in line + with most other sorting done by MComix. + + - Adding a book to a collection with the same book already existing + in another collection did not immediately show the book in the + library main view when the new collection was already selected. + + - MComix can now use the '7z' executable to read .tar.xz and .tar.lzma + archives. + + - ZIP archives using BZIP2 compression will now fall back to external + unzip/7z instead of failing (by Awad Mackie). + + - MComix can now read PDF files using tools provided by mupdf, + namely mutool and mudraw. (by Benoit Pierre) + + - MComix will now use the current GTK theme's icons for + Next/Previous buttons. + + - Added AppData meta information for software repositories. + + - Updated traditional Chinese translation (by Wayne Su). + +------------------------------------------------------------------- +Thu Jul 24 17:38:24 UTC 2014 - sleep_walker@suse.cz + +- remove windows-fix.patch as it is not needed after update of + python-setuptools + +------------------------------------------------------------------- +Thu Jul 24 16:03:17 UTC 2014 - sleep_walker@suse.cz + +- let there be mcomix! +- add windows-fix.patch as python-setuptools doesn't take it correctly + otherwise diff --git a/mcomix.spec b/mcomix.spec new file mode 100644 index 0000000..ee9fd8f --- /dev/null +++ b/mcomix.spec @@ -0,0 +1,106 @@ +# +# spec file for package mcomix +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if 0%{?suse_version} >= 1600 +%define pythons python3 +%else +%define pythons python311 +%endif + +Name: mcomix +Version: 3.1.1 +Release: 0 +Summary: Comics Viewer +License: GPL-2.0-only +Group: Productivity/Graphics/Viewers +URL: https://sourceforge.net/p/mcomix/wiki/Home/ +Source0: https://sourceforge.net/projects/mcomix/files/MComix-%{version}/%{name}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: gobject-introspection +%if 0%{?suse_version} > 1600 +Requires: python3-PyMuPDF +%else +Requires: mupdf +%endif +Requires: %{pythons} +Requires: %{pythons}-Pillow +Requires: %{pythons}-chardet +Requires: %{pythons}-gobject-Gdk +Requires: %{pythons}-pycairo +Requires: /usr/bin/7z +Requires: typelib-1_0-Gtk-3_0 +Recommends: /usr/bin/lha +Recommends: unrar +BuildArch: noarch +%if 0%{?suse_version} +BuildRequires: fdupes +%endif + +%description +Comics Viewer forked from comix. + +%prep +%setup -q +# remove extra executable flags +find . -type f | xargs chmod a-x + +%build +%pyproject_wheel + +%install +%pyproject_install +{ + echo '%defattr(-,root,root,-)' + %{python_expand ls %{buildroot}%{$python_sitelib}/mcomix/messages/*/LC_MESSAGES/mcomix.mo | \ + sed 's@%{buildroot}\(%{$python_sitelib}/mcomix/messages/\([^/]\+\)/LC_MESSAGES/mcomix.mo\)@%lang(\2) \1@' } +} | tee %{name}.lang +install -Dm 644 share/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop +for a in share/icons/hicolor/* ; do + install -Dm 644 -t %{buildroot}%{_datadir}/icons/hicolor/${a##*/}/apps $a/apps/* + [[ -d $a/mimetypes ]] && install -Dm 644 -t %{buildroot}%{_datadir}/icons/hicolor/${a##*/}/mimetypes $a/mimetypes/* +done +install -Dm 644 share/mime/packages/%{name}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml +install -Dm 644 share/metainfo/%{name}.metainfo.xml %{buildroot}%{_datadir}/metainfo/%{name}.metainfo.xml +install -Dm 644 share/man/man1/%{name}.1.gz -t %{buildroot}%{_datadir}/man/man1 + +%if 0%{?suse_version} +%fdupes -s %{buildroot}%{_datadir}/icons +%python_expand %fdupes -s %{buildroot}%{$python_sitelib}/mcomix +%python_expand %fdupes -s %{buildroot}%{$python_sitelib}/mcomix-* +%endif + +%files -n %{name} -f %{name}.lang +%attr(755,root,root) %{_bindir}/mcomix +%{python_sitelib}/mcomix-* +%dir %{python_sitelib}/mcomix/ +%{python_sitelib}/mcomix/*.py* +%{python_sitelib}/mcomix/library/ +%{python_sitelib}/mcomix/images/ +%{python_sitelib}/mcomix/messages/ +%{python_sitelib}/mcomix/archive/ +%{python_sitelib}/mcomix/__pycache__/ +%{python_sitelib}/mcomix/_vendor/ +%{_datadir}/metainfo/* +%{_datadir}/applications/mcomix.desktop +%{_datadir}/icons/hicolor +%{_datadir}/mime/packages/mcomix.xml +%{_mandir}/man1/mcomix* + +%changelog -- 2.51.1