Skip to content

Commit

Permalink
Update mcomix to version 3.1.0 / rev 6 via SR 1175872
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1175872
by user gcomes.obs + anag+factory
- 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.
  • Loading branch information
gcomes.obs authored and bmwiedemann committed May 22, 2024
1 parent 51c9bdf commit fd99b7d
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 8 deletions.
Binary file modified packages/m/mcomix/.files
Binary file not shown.
22 changes: 22 additions & 0 deletions packages/m/mcomix/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,26 @@
</comment>
<requestid>1128167</requestid>
</revision>
<revision rev="6" vrev="1">
<srcmd5>1e476f64842566c187e583f3c8776541</srcmd5>
<version>3.1.0</version>
<time>1716406408</time>
<user>anag+factory</user>
<comment>- update to 3.1.0:
* Image colors can be negated in the Image Enhancement dialog.
* &quot;Fit to size&quot; 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 &quot;maximized&quot;
window state when restarting.
</comment>
<requestid>1175872</requestid>
</revision>
</revisionlist>
1 change: 0 additions & 1 deletion packages/m/mcomix/mcomix-2.3.0.tar.gz

This file was deleted.

1 change: 1 addition & 0 deletions packages/m/mcomix/mcomix-3.1.0.tar.gz
18 changes: 18 additions & 0 deletions packages/m/mcomix/mcomix.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Tue May 21 15:32:29 UTC 2024 - Giacomo Comes <[email protected]>

- 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 <[email protected]>

Expand Down
22 changes: 15 additions & 7 deletions packages/m/mcomix/mcomix.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# spec file for package mcomix
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 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 @@ -21,19 +21,18 @@
%if 0%{?suse_version} > 1500
%define pythons python3
%endif
%if 0%{?sle_version} == 0150400
%define pythons python310
%endif

Name: mcomix
Version: 2.3.0
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} > 1500
Requires: python3-PyMuPDF
Expand Down Expand Up @@ -63,14 +62,23 @@ Comics Viewer forked from comix.
find . -type f | xargs chmod a-x

%build
%pyproject_wheel

%install
%python_exec setup.py install --single-version-externally-managed --root %{buildroot} --prefix "%{_prefix}"
%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
Expand All @@ -89,7 +97,7 @@ find . -type f | xargs chmod a-x
%{python_sitelib}/mcomix/archive/
%{python_sitelib}/mcomix/__pycache__/
%{python_sitelib}/mcomix/_vendor/
%{_datadir}/appdata/*
%{_datadir}/metainfo/*
%{_datadir}/applications/mcomix.desktop
%{_datadir}/icons/hicolor
%{_datadir}/mime/packages/mcomix.xml
Expand Down

0 comments on commit fd99b7d

Please sign in to comment.