## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname qutebrowser Name: %{srcname} Version: 3.2.0 Release: %autorelease Summary: A keyboard-driven, vim-like browser based on PyQt5 and QtWebEngine # Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only URL: http://www.qutebrowser.org Source0: https://github.com/%{srcname}/%{srcname}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: asciidoc BuildRequires: desktop-file-utils BuildRequires: libappstream-glib BuildRequires: python3-setuptools Requires: qt6-qtbase Requires: qt6-qtdeclarative Requires: python3-pyqt6 Requires: python3-jinja2 Requires: python3-PyYAML Requires: (qt6-qtwebengine and python3-pyqt6-webengine) Recommends: qt6-qtwebengine-devtools Recommends: python3-pygments Recommends: python3-adblock %description qutebrowser is a keyboard-focused browser with a minimal GUI. It’s based on Python, PyQt5 and QtWebEngine and free software, licensed under the GPL. It was inspired by other browsers/addons like dwb and Vimperator/Pentadactyl. %prep %autosetup -p 1 -n %{srcname}-%{version} %build # Compile the man page a2x -f manpage doc/qutebrowser.1.asciidoc # Find all *.py files and if their first line is exactly '#!/usr/bin/env python3' # then replace it with '#!/usr/bin/python3' (if it's the 1st line). find . -type f -iname "*.py" -exec sed -i '1s_^#!/usr/bin/env python3$_#!/usr/bin/python3_' {} + %py3_build %install %py3_install # Install desktop and appdata files desktop-file-install \ --add-category="Network" \ --delete-original \ --dir=%{buildroot}%{_datadir}/applications \ misc/org.%{srcname}.%{srcname}.desktop install -Dm644 misc/org.qutebrowser.qutebrowser.appdata.xml -t %{buildroot}%{_datadir}/metainfo # Install man page install -Dm644 doc/%{srcname}.1 -t %{buildroot}%{_mandir}/man1 # Install icons install -Dm644 qutebrowser/icons/qutebrowser.svg \ -t "%{buildroot}%{_datadir}/icons/hicolor/scalable/apps" for i in 16 24 32 48 64 128 256 512; do install -Dm644 "qutebrowser/icons/qutebrowser-${i}x${i}.png" \ "%{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/qutebrowser.png" done # Set __main__.py as executable chmod 755 %{buildroot}%{python3_sitelib}/%{srcname}/__main__.py # Remove zero-length files: # https://fedoraproject.org/wiki/Packaging_tricks#Zero_length_files find %{buildroot} -size 0 -delete %check appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml %files %license LICENSE %doc README.asciidoc doc/changelog.asciidoc doc %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info %{python3_sitelib}/%{srcname} %{_bindir}/%{srcname} %{_datadir}/applications/org.%{srcname}.%{srcname}.desktop %{_mandir}/man1/%{srcname}.1* %{_datadir}/icons/hicolor/scalable/apps/%{srcname}.svg %{_datadir}/icons/hicolor/16x16/apps/%{srcname}.png %{_datadir}/icons/hicolor/24x24/apps/%{srcname}.png %{_datadir}/icons/hicolor/32x32/apps/%{srcname}.png %{_datadir}/icons/hicolor/48x48/apps/%{srcname}.png %{_datadir}/icons/hicolor/64x64/apps/%{srcname}.png %{_datadir}/icons/hicolor/128x128/apps/%{srcname}.png %{_datadir}/icons/hicolor/256x256/apps/%{srcname}.png %{_datadir}/icons/hicolor/512x512/apps/%{srcname}.png %{_datadir}/metainfo/org.qutebrowser.qutebrowser.appdata.xml %changelog ## START: Generated by rpmautospec * Mon Jul 29 2024 Miroslav Suchý - 3.2.0-4 - convert GPLv3 license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 3.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jun 12 2024 Python Maint - 3.2.0-2 - Rebuilt for Python 3.13 * Wed Jun 12 2024 Timothée Floure - 3.2.0-1 - Rebase on qutebrowser 3.2.0 * Fri Jun 07 2024 Python Maint - 3.1.0-3 - Rebuilt for Python 3.13 * Sun Jan 21 2024 Ismael Puerto - 3.1.0-1 - Update to 3.1.0 * Mon Oct 30 2023 Ismael Puerto - 3.0.2-1 - Update to 3.0.2 * Thu Sep 21 2023 Ankur Sinha (Ankur Sinha Gmail) - 3.0.0-3 - fix: py3.12 + PyQt6 (fixes rh#2240025) * Mon Aug 28 2023 Ismael Puerto - 3.0.0-2 - Update gitignore for new release * Sun Aug 27 2023 Ismael Puerto - 3.0.0-1 - Update to 3.0.0 * Fri Jul 21 2023 Fedora Release Engineering - 2.5.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 15 2023 Python Maint - 2.5.4-2 - Rebuilt for Python 3.12 * Sat Jun 10 2023 Timothée Floure - 2.5.4-1 - Rebase on upstream 2.5.4 * Fri Jan 20 2023 Fedora Release Engineering - 2.5.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Aug 29 2022 Timothée Floure - 2.5.2-1 - New upstream release * Sat Jul 23 2022 Fedora Release Engineering - 2.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 2.5.1-2 - Rebuilt for Python 3.11 * Thu Jun 02 2022 Timothée Floure - 2.5.1-1 - New upstream release * Fri Jan 21 2022 Fedora Release Engineering - 2.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Nov 02 2021 Timothée Floure - 2.4.0-1 - New upstream release * Fri Jul 30 2021 Timothée Floure - 2.3.1-1 - New upstream release * Fri Jul 23 2021 Fedora Release Engineering - 2.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 2.2.2-2 - Rebuilt for Python 3.10 * Fri May 28 2021 Timothée Floure - 2.2.2-1 - New upstream release * Wed Apr 21 2021 Timothée Floure - 2.2.0-1 - New upstream release * Tue Mar 16 2021 Jan Staněk - 2.1.0-1 - New upstream release * Sun Feb 07 2021 Timothée Floure - 2.0.2-1 - New upstream release * Fri Jan 29 2021 Timothée Floure - 2.0.1-1 - New upstream release - Removing various dependencies that are not used anymore * Wed Jan 27 2021 Fedora Release Engineering - 1.14.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 17 2021 Timothée Floure - 1.14.1-1 - New upstream release * Mon Oct 19 2020 Timothée Floure - 1.14.0-1 - New upstream release * Tue Sep 22 2020 Ankur Sinha - 1.13.1-3 - Remove requires on python3-qt5-qtwebenging - fixes: 1814298 * Wed Jul 29 2020 Fedora Release Engineering - 1.13.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jun 20 2020 Timothée Floure - 1.13.1-1 - New upstream release * Sat Jun 20 2020 Ankur Sinha - 1.12.0-1 - Update to 1.12.0 * Tue May 26 2020 Miro Hrončok - 1.11.1-2 - Rebuilt for Python 3.9 * Sat May 23 2020 Timothée Floure - 1.11.1-1 - New upstream release (addresses CVE-2020-11054) * Fri May 01 2020 Timothée Floure - 1.11.0-1 - New upstream release * Mon Feb 17 2020 Timothée Floure - 1.10.1-1 - New upstream release * Wed Feb 05 2020 Timothée Floure - 1.10.0-1 - New upstream release * Fri Jan 10 2020 Timothée Floure - 1.9.0-1 - New upstream release * Thu Oct 03 2019 Miro Hrončok - 1.8.1-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sat Sep 28 2019 Timothée Floure - 1.8.1-1 - New upstream release * Tue Aug 20 2019 Miro Hrončok - 1.7.0-4 - Rebuilt for Python 3.8 * Tue Aug 20 2019 Timothée Floure - 1.7.0-3 - Fix desktop file installation (broken due to changes in upstream 1.7.x) * Mon Aug 19 2019 Miro Hrončok - 1.7.0-2 - Rebuilt for Python 3.8 * Fri Aug 16 2019 Timothée Floure - 1.7.0-1 - New upstream release * Fri Jul 26 2019 Fedora Release Engineering - 1.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 25 2019 Timothée Floure - 1.6.3-1 - New upstream release * Tue May 14 2019 Timothée Floure - 1.6.2-1 - New upstream release * Fri Apr 05 2019 Timothée Floure - 1.6.1-1 - New upstream release * Fri Mar 08 2019 Timothée Floure - 1.6.0-2 - Patch invalid desktop file shipped with upstream 1.6.0 (fix-desktop-file-actions.patch) * Sun Mar 03 2019 Timothée Floure - 1.6.0-1 - New upstream release * Sat Feb 02 2019 Fedora Release Engineering - 1.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Oct 26 2018 Timothée Floure - 1.5.2-1 - Rebase to 1.5.2 * Thu Oct 11 2018 Timothée Floure - 1.5.1-1 - Rebase to 1.5.1 * Wed Oct 03 2018 Timothée Floure - 1.5.0-1 - Rebase to 1.5.0 * Mon Sep 03 2018 Timothée Floure - 1.4.2-1 - Rebase to 1.4.2 * Sat Jul 14 2018 Fedora Release Engineering - 1.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jul 11 2018 Timothée Floure - 1.4.1-1 - Rebase to 1.4.1 - Remove patch introduced in 1.4.0-2, since included in upstream release 1.4.1 * Tue Jul 10 2018 Timothée Floure - 1.4.0-2 - Patch critical CSRF issues with qute://settings/set URL, leading to arbitrary code exexution. * Tue Jul 03 2018 Timothée Floure - 1.4.0-1 - Rebase to 1.4.0 * Mon Jul 02 2018 Miro Hrončok - 1.3.3-2 - Rebuilt for Python 3.7 * Fri Jun 22 2018 Timothée Floure - 1.3.3-1 - Rebase to 1.3.3 * Tue Jun 19 2018 Miro Hrončok - 1.3.2-2 - Rebuilt for Python 3.7 * Tue Jun 12 2018 Timothée Floure - 1.3.2-1 - Rebase to 1.3.2 * Tue May 29 2018 Timothée Floure - 1.3.1-1 - Rebase to 1.3.1 * Fri May 04 2018 Timothée Floure - 1.3.0-1 - Rebase to 1.3.0 * Tue Mar 20 2018 Timothée Floure - 1.2.1-1 - Rebase to 1.2.1 * Mon Mar 12 2018 Timothée Floure - 1.2.0-1 - Rebase to 1.2.0 * Mon Mar 05 2018 Timothée Floure - 1.1.2-1 - Rebase to 1.1.2 * Fri Feb 09 2018 Fedora Release Engineering - 1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Jan 21 2018 Timothée Floure - 1.1.1-1 - Rebase to 1.1.1 * Thu Jan 18 2018 Igor Gnatenko - 1.1.0-2 - Remove obsolete scriptlets * Mon Jan 15 2018 Timothée Floure - 1.1.0-1 - Rebase to 1.1.0 * Tue Nov 28 2017 Timothée Floure - 1.0.4-1 - Rebase to 1.0.4 * Tue Nov 14 2017 Timothée Floure - 1.0.3-2 - Fix typos in some (weak) Qt dependencies * Tue Nov 07 2017 Timothée Floure - 1.0.3-1 - Rebase to 1.0.3 - Fix dependency issue for architectures unsupported by qt5-qtwebengine * Fri Oct 20 2017 Timothée Floure - 1.0.2-1 - Rebase to 1.0.2 - Remove the deprecated Group tag - Add the python3-attrs dependency - Adapt the descriptions and dependencies to the QtWebEngine backend (new default) - Doc tag: do not package the PKG-INFO file anymore - Doc tag: package the full HTML documentation instead of sparse asciidoc files * Thu Jul 27 2017 Fedora Release Engineering - 0.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Mar 14 2017 Tomas Orsava - 0.10.1-1 - Rebased to 0.10.1 * Mon Feb 27 2017 Tomas Orsava - 0.10.0-1 - Rebased to 0.10.0 - Updated Source URL * Sat Feb 11 2017 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 16 2017 Tomas Orsava - 0.9.1-1 - Rebased to 0.9.1 * Mon Jan 02 2017 Tomas Orsava - 0.9.0-1 - Rebased to 0.9.0 * Mon Dec 19 2016 Miro Hrončok - 0.8.4-2 - Rebuild for Python 3.6 * Fri Aug 05 2016 Tomas Orsava - 0.8.2-1 - New upstream release 0.8.2 * Thu Jul 28 2016 Tomas Orsava - 0.8.1-1 - Rebased onto a new upstream version * Tue Jul 19 2016 Fedora Release Engineering - 0.7.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Jun 13 2016 Tomas Orsava - 0.7.0-1 - Updated to a new version - Removed soft dependency on `colorama` as it is no longer needed * Fri May 06 2016 Tomas Orsava - 0.6.2-1 - Updated to a new upstream version. - Remover patches specific to the version 0.6.1 * Wed Apr 27 2016 Tomas Orsava - 0.6.1-2 - Added 3 upstream patches from the mailing list to help with PyQT crashes until 0.6.2 comes out. * Tue Apr 12 2016 Tomas Orsava - 0.6.1-1 - Updated to a new upstream version. - Simplified the sed command that replaces shebangs. - Fixed issue with python3-qt5-webkit not being provided by python-qt5 in f23. * Wed Mar 02 2016 Rex Dieter 0.5.1-2 - Requires: python3-qt5-webkit * Mon Feb 22 2016 Tomas Orsava - 0.5.1-1 - Let there be package. ## END: Generated by rpmautospec