Compare commits

...
Sign in to create a new pull request.

15 commits

Author SHA1 Message Date
Python Maint
e2c5c95d7b Rebuilt for Python 3.15.0b4 ABI change 2026-07-22 10:16:22 +02:00
Fedora Release Engineering
3549c23019 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:31:17 +00:00
Python Maint
ae64704bb5 Rebuilt for Python 3.15 2026-06-04 09:33:19 +02:00
Ankur Sinha (Ankur Sinha Gmail)
3352db85b5
feat: update to use pyqt6
and other tweaks
2026-02-06 12:17:49 +00:00
Fedora Release Engineering
bdb663bcb2 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:57:12 +00:00
Ankur Sinha (Ankur Sinha Gmail)
9b93cdc000
fix: backport patch for handling pyqt version strings with dev prefix
Referece: 0902c81a4c
2025-11-10 15:46:12 +00:00
Python Maint
816c6854c5 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 15:02:15 +02:00
Python Maint
1c002c8b55 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:22:03 +02:00
Fedora Release Engineering
7ddeb8c683 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:07:55 +00:00
Python Maint
e1c61b4dc9 Rebuilt for Python 3.14 2025-06-03 15:53:10 +02:00
Fedora Release Engineering
6b2f3fc996 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:26:02 +00:00
Fedora Release Engineering
140ab7fa9b Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:51:08 +00:00
Python Maint
e3fa878a82 Rebuilt for Python 3.13 2024-06-07 23:21:35 +02:00
Python Maint
98ba6fd678 Rebuilt for Python 3.13 2024-06-07 21:04:46 +02:00
Fedora Release Engineering
a98962ca25 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 07:54:47 +00:00
2 changed files with 27 additions and 8 deletions

View file

@ -0,0 +1,12 @@
diff -ur vimiv-qt-0.9.0.orig/vimiv/checkversion.py vimiv-qt-0.9.0/vimiv/checkversion.py
--- vimiv-qt-0.9.0.orig/vimiv/checkversion.py 2025-11-10 15:42:55.589597665 +0000
+++ vimiv-qt-0.9.0/vimiv/checkversion.py 2025-11-10 15:43:08.323760397 +0000
@@ -22,7 +22,7 @@
try:
from PyQt5.QtCore import PYQT_VERSION_STR
- PYQT_VERSION = tuple(map(int, PYQT_VERSION_STR.split(".")))
+ PYQT_VERSION = tuple(map(int, PYQT_VERSION_STR.split(".")[:3]))
except ImportError: # pragma: no cover # PyQt is there in tests, using None is tested
# We check explicitly for None before using the tuple version
PYQT_VERSION = None # type: ignore

View file

@ -28,11 +28,13 @@ Summary: An image viewer with vim-like keybindings
License: GPL-3.0-or-later
URL: https://karlch.github.io/vimiv-qt/
Source0: https://github.com/karlch/vimiv-qt/archive/v%{version}/%{name}-%{version}.tar.gz
# Backport: https://github.com/karlch/vimiv-qt/commit/0902c81a4cefc516cfdac3627a23bcd133291580
Patch: 0001-fix-check-version.patch
BuildRequires: make
BuildRequires: gcc
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-qt5-devel
BuildRequires: python3-pyqt6-devel
BuildRequires: /usr/bin/appstream-util
BuildRequires: /usr/bin/desktop-file-validate
@ -42,9 +44,8 @@ BuildRequires: %{py3_dist pytest-bdd}
BuildRequires: %{py3_dist flaky}
%endif
# Not listed in setup.py
Requires: python3-piexif
# python3-qt5-base is pulled in but SVG requires python3-qt5
Requires: python3-qt5
Recommends: %{py3_dist piexif}
# For icons
Requires: hicolor-icon-theme
@ -59,15 +60,21 @@ Obsoletes: vimiv < 0.9.1-14
%description %_description
%prep
%autosetup -n vimiv-qt-%{version}
%autosetup -n vimiv-qt-%{version} -p1
rm -rf vimiv-qt.egg-info
# Comment out to remove /usr/bin/env shebangs
# Can use something similar to correct/remove /usr/bin/python shebangs also
# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
# update req
sed -i 's/"PyQt5>=.*"/"PyQt6"/' setup.py
cat setup.py
# Don't do the python bit there
mv -v misc/Makefile .
sed -i '/python3 setup.py install/ d' Makefile
sed -i '/LICENSE/ d' Makefile
# Comment out to remove /usr/bin/env shebangs
# Can use something similar to correct/remove /usr/bin/python shebangs also
# find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
%generate_buildrequires
%pyproject_buildrequires