2016-04-23 20:00:39 +02:00
|
|
|
|
#
|
|
|
|
|
# spec file for package qutebrowser
|
|
|
|
|
#
|
2022-04-06 02:29:59 +02:00
|
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2016-04-23 20:00:39 +02:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-10-03 20:33:18 +02:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-04-23 20:00:39 +02:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: qutebrowser
|
2022-06-15 15:55:13 +02:00
|
|
|
|
Version: 2.5.1
|
2016-04-23 20:00:39 +02:00
|
|
|
|
Release: 0
|
2018-06-13 23:58:41 +02:00
|
|
|
|
Summary: Keyboard-driven vim-like browser based on Qt5
|
2018-03-02 00:58:39 +01:00
|
|
|
|
License: GPL-3.0-or-later
|
2016-04-23 20:00:39 +02:00
|
|
|
|
Group: Productivity/Networking/Web/Browsers
|
2018-05-04 14:36:37 +02:00
|
|
|
|
URL: https://qutebrowser.org/
|
2016-04-23 20:00:39 +02:00
|
|
|
|
Source: https://github.com/The-Compiler/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: https://github.com/The-Compiler/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
|
|
|
|
|
Source2: %{name}.keyring
|
2021-04-20 03:50:19 +02:00
|
|
|
|
BuildRequires: Mesa-dri
|
2018-05-04 14:36:37 +02:00
|
|
|
|
BuildRequires: asciidoc
|
2016-04-23 20:00:39 +02:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: hicolor-icon-theme
|
2021-04-20 03:50:19 +02:00
|
|
|
|
BuildRequires: python3-Flask
|
2016-04-23 20:00:39 +02:00
|
|
|
|
BuildRequires: python3-Jinja2
|
|
|
|
|
BuildRequires: python3-MarkupSafe
|
|
|
|
|
BuildRequires: python3-PyYAML
|
2021-04-20 03:50:19 +02:00
|
|
|
|
BuildRequires: python3-beautifulsoup4
|
|
|
|
|
BuildRequires: python3-cheroot
|
Accepting request 533709 from home:alois:branches:network
- Update to version 1.0.0
* Dependency changes:
+ Support for legacy QtWebKit (before 5.212 which is
distributed independently from Qt) is dropped.
+ Support for Python 3.4 is dropped.
+ Support for Qt before 5.7.1 and PyQt before 5.7 is dropped.
+ New dependency on the QtSql module and Qt sqlite support.
+ New dependency on the attrs project (packaged as
python-attr in some distributions).
+ The depedency on PyOpenGL (when using QtWebEngine) got
removed. Note that PyQt5.QtOpenGL is still a dependency.
+ PyQt5.QtOpenGL is now always required, even with QtWebKit.
* The QtWebEngine backend is now used by default. Note this
means that QtWebEngine now should be a required dependency, and
QtWebKit (if new enough) should be changed to an optional
dependency.
* Completely rewritten configuration system which ignores the
old config file. See link:qute://help/configuring.html[] for
details.
* Various documentation files got moved to the doc/ subfolder;
qutebrowser.desktop got moved to misc/.
* :set now doesn't support toggling/cycling values anymore, that
functionality got moved to :config-cycle.
* New completion engine based on sqlite, which allows to
complete the entire browsing history. The default for
completion.web_history_max_items got changed to -1 (unlimited).
If the completion is too slow on your machine, try setting it to
a few 1000 items.
Added:
* QtWebEngine: Spell checking support, see the
spellcheck.languages setting.
* New qt.args setting to pass additional arguments to
Qt/Chromium.
* New backend setting to select the backend to use. Together
with the previous setting, this should make most wrapper
scripts unnecessary.
* qutebrowser can now be set as the default browser on macOS.
* New config commands:
+ :config-cycle to cycle an option between multiple values.
+ :config-unset to remove a configured option.
+ :config-clear to remove all configured options.
+ :config-source to (re-)read a config.py file.
+ :config-edit to open the config.py file in an editor.
+ :config-write-py to write a config.py template file.
* New :version command which opens qute://version.
* New back/forward indicator in the statusbar.
* New bindings.key_mappings setting to map keys to other keys.
* QtWebEngine: Support for proxy authentication.
Changed:
* Using :download now uses the page's title as filename.
* Using :back or :forward with a count now skips intermediate
pages.
* When there are multiple messages shown, the timeout is
increased.
* :search now only clears the search if one was displayed
before, so pressing <Escape> doesn't un-focus inputs anymore.
* Pinned tabs now adjust to their text's width, so the
tabs.width.pinned setting got removed.
* :set-cmd-text now has a --run-on-count argument to run the
underlying command directly if a count was given.
* :scroll-perc got renamed to :scroll-to-perc.
Removed:
* Migrating QtWebEngine data written by versions before
2016-11-15 (before v0.9.0) is now not supported anymore.
* Upgrading qutebrowser with a version older than v0.4.0 still
running now won't work properly anymore.
* The --harfbuzz and --relaxed-config commandline arguments got
dropped.
Fixes:
* Exiting fullscreen via :fullscreen or buttons on a page now
restores the correct previous window state
(maximized/fullscreen).
* When input.insert_mode.auto_load is set, background tabs now
don't enter insert mode anymore.
* The keybinding help widget now works correctly when using
keybindings with a count.
* The window.hide_wayland_decoration setting now works correctly
again.
OBS-URL: https://build.opensuse.org/request/show/533709
OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=13
2017-10-12 21:38:06 +02:00
|
|
|
|
BuildRequires: python3-devel >= 3.6
|
2021-04-20 03:50:19 +02:00
|
|
|
|
BuildRequires: python3-hypothesis
|
|
|
|
|
BuildRequires: python3-importlib-resources
|
|
|
|
|
BuildRequires: python3-opengl
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-pytest-bdd
|
|
|
|
|
BuildRequires: python3-pytest-benchmark
|
|
|
|
|
BuildRequires: python3-pytest-instafail
|
|
|
|
|
BuildRequires: python3-pytest-mock
|
|
|
|
|
BuildRequires: python3-pytest-qt
|
|
|
|
|
BuildRequires: python3-pytest-rerunfailures
|
|
|
|
|
BuildRequires: python3-pytest-xvfb
|
|
|
|
|
BuildRequires: python3-qt5 > 5.12
|
|
|
|
|
BuildRequires: python3-qtwebengine-qt5
|
2021-01-28 11:05:48 +01:00
|
|
|
|
BuildRequires: python3-setuptools
|
2021-04-20 03:50:19 +02:00
|
|
|
|
BuildRequires: python3-tk
|
|
|
|
|
BuildRequires: python3-tldextract
|
2021-06-28 19:21:35 +02:00
|
|
|
|
BuildRequires: python(abi) >= 3.6.1
|
2019-04-01 21:11:43 +02:00
|
|
|
|
Requires: libqt5-sql-sqlite
|
2016-04-23 20:00:39 +02:00
|
|
|
|
Requires: python3-Jinja2
|
|
|
|
|
Requires: python3-MarkupSafe
|
|
|
|
|
Requires: python3-PyYAML
|
2017-08-13 20:22:47 +02:00
|
|
|
|
Requires: python3-opengl
|
2021-04-20 03:50:19 +02:00
|
|
|
|
Requires: python3-qt5 > 5.12
|
|
|
|
|
Requires: python3-qtwebengine-qt5
|
2021-01-28 11:05:48 +01:00
|
|
|
|
Recommends: python3-Pygments
|
|
|
|
|
Recommends: python3-adblock
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
|
BuildRequires: python3-qt5-sip
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: python3-sip
|
|
|
|
|
%endif
|
|
|
|
|
%if %{python3_version_nodots} <= 38
|
|
|
|
|
Requires: python3-importlib-resources
|
|
|
|
|
%endif
|
|
|
|
|
%if %{python3_version_nodots} == 36
|
|
|
|
|
Requires: python3-dataclasses
|
|
|
|
|
%endif
|
2016-04-23 20:00:39 +02:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
qutebrowser is a keyboard-focused browser with a minimal GUI.
|
2018-07-03 19:00:39 +02:00
|
|
|
|
It's based on PyQt5 and can use either QtWebEngine or QtWebKit.
|
2016-04-23 20:00:39 +02:00
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
Accepting request 533709 from home:alois:branches:network
- Update to version 1.0.0
* Dependency changes:
+ Support for legacy QtWebKit (before 5.212 which is
distributed independently from Qt) is dropped.
+ Support for Python 3.4 is dropped.
+ Support for Qt before 5.7.1 and PyQt before 5.7 is dropped.
+ New dependency on the QtSql module and Qt sqlite support.
+ New dependency on the attrs project (packaged as
python-attr in some distributions).
+ The depedency on PyOpenGL (when using QtWebEngine) got
removed. Note that PyQt5.QtOpenGL is still a dependency.
+ PyQt5.QtOpenGL is now always required, even with QtWebKit.
* The QtWebEngine backend is now used by default. Note this
means that QtWebEngine now should be a required dependency, and
QtWebKit (if new enough) should be changed to an optional
dependency.
* Completely rewritten configuration system which ignores the
old config file. See link:qute://help/configuring.html[] for
details.
* Various documentation files got moved to the doc/ subfolder;
qutebrowser.desktop got moved to misc/.
* :set now doesn't support toggling/cycling values anymore, that
functionality got moved to :config-cycle.
* New completion engine based on sqlite, which allows to
complete the entire browsing history. The default for
completion.web_history_max_items got changed to -1 (unlimited).
If the completion is too slow on your machine, try setting it to
a few 1000 items.
Added:
* QtWebEngine: Spell checking support, see the
spellcheck.languages setting.
* New qt.args setting to pass additional arguments to
Qt/Chromium.
* New backend setting to select the backend to use. Together
with the previous setting, this should make most wrapper
scripts unnecessary.
* qutebrowser can now be set as the default browser on macOS.
* New config commands:
+ :config-cycle to cycle an option between multiple values.
+ :config-unset to remove a configured option.
+ :config-clear to remove all configured options.
+ :config-source to (re-)read a config.py file.
+ :config-edit to open the config.py file in an editor.
+ :config-write-py to write a config.py template file.
* New :version command which opens qute://version.
* New back/forward indicator in the statusbar.
* New bindings.key_mappings setting to map keys to other keys.
* QtWebEngine: Support for proxy authentication.
Changed:
* Using :download now uses the page's title as filename.
* Using :back or :forward with a count now skips intermediate
pages.
* When there are multiple messages shown, the timeout is
increased.
* :search now only clears the search if one was displayed
before, so pressing <Escape> doesn't un-focus inputs anymore.
* Pinned tabs now adjust to their text's width, so the
tabs.width.pinned setting got removed.
* :set-cmd-text now has a --run-on-count argument to run the
underlying command directly if a count was given.
* :scroll-perc got renamed to :scroll-to-perc.
Removed:
* Migrating QtWebEngine data written by versions before
2016-11-15 (before v0.9.0) is now not supported anymore.
* Upgrading qutebrowser with a version older than v0.4.0 still
running now won't work properly anymore.
* The --harfbuzz and --relaxed-config commandline arguments got
dropped.
Fixes:
* Exiting fullscreen via :fullscreen or buttons on a page now
restores the correct previous window state
(maximized/fullscreen).
* When input.insert_mode.auto_load is set, background tabs now
don't enter insert mode anymore.
* The keybinding help widget now works correctly when using
keybindings with a count.
* The window.hide_wayland_decoration setting now works correctly
again.
OBS-URL: https://build.opensuse.org/request/show/533709
OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=13
2017-10-12 21:38:06 +02:00
|
|
|
|
sed -i '1d' %{name}/__main__.py
|
2021-04-20 03:50:19 +02:00
|
|
|
|
sed -i 's,^#!%{_bindir}/env ,#!%{_bindir}/,' \
|
2018-05-04 14:36:37 +02:00
|
|
|
|
misc/userscripts/* \
|
|
|
|
|
scripts/*.py
|
2021-04-20 03:50:19 +02:00
|
|
|
|
sed -i 's,^#!%{_bindir}/bash,#!/bin/bash,' \
|
2021-01-28 11:05:48 +01:00
|
|
|
|
misc/userscripts/*
|
2018-05-04 14:36:37 +02:00
|
|
|
|
mv misc/Makefile .
|
2021-04-20 03:50:19 +02:00
|
|
|
|
# missing files in release tarball
|
|
|
|
|
rm tests/unit/scripts/test_problemmatchers.py
|
2016-04-23 20:00:39 +02:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
%install
|
2018-05-04 14:36:37 +02:00
|
|
|
|
%make_install PREFIX=%{_prefix}
|
2016-04-23 20:00:39 +02:00
|
|
|
|
|
2018-05-04 14:36:37 +02:00
|
|
|
|
chmod -x %{buildroot}%{_datadir}/%{name}/scripts/cycle-inputs.js \
|
2019-02-26 03:01:35 +01:00
|
|
|
|
%{buildroot}%{_datadir}/%{name}/scripts/utils.py \
|
|
|
|
|
%{buildroot}%{_datadir}/%{name}/userscripts/README.md
|
Accepting request 533709 from home:alois:branches:network
- Update to version 1.0.0
* Dependency changes:
+ Support for legacy QtWebKit (before 5.212 which is
distributed independently from Qt) is dropped.
+ Support for Python 3.4 is dropped.
+ Support for Qt before 5.7.1 and PyQt before 5.7 is dropped.
+ New dependency on the QtSql module and Qt sqlite support.
+ New dependency on the attrs project (packaged as
python-attr in some distributions).
+ The depedency on PyOpenGL (when using QtWebEngine) got
removed. Note that PyQt5.QtOpenGL is still a dependency.
+ PyQt5.QtOpenGL is now always required, even with QtWebKit.
* The QtWebEngine backend is now used by default. Note this
means that QtWebEngine now should be a required dependency, and
QtWebKit (if new enough) should be changed to an optional
dependency.
* Completely rewritten configuration system which ignores the
old config file. See link:qute://help/configuring.html[] for
details.
* Various documentation files got moved to the doc/ subfolder;
qutebrowser.desktop got moved to misc/.
* :set now doesn't support toggling/cycling values anymore, that
functionality got moved to :config-cycle.
* New completion engine based on sqlite, which allows to
complete the entire browsing history. The default for
completion.web_history_max_items got changed to -1 (unlimited).
If the completion is too slow on your machine, try setting it to
a few 1000 items.
Added:
* QtWebEngine: Spell checking support, see the
spellcheck.languages setting.
* New qt.args setting to pass additional arguments to
Qt/Chromium.
* New backend setting to select the backend to use. Together
with the previous setting, this should make most wrapper
scripts unnecessary.
* qutebrowser can now be set as the default browser on macOS.
* New config commands:
+ :config-cycle to cycle an option between multiple values.
+ :config-unset to remove a configured option.
+ :config-clear to remove all configured options.
+ :config-source to (re-)read a config.py file.
+ :config-edit to open the config.py file in an editor.
+ :config-write-py to write a config.py template file.
* New :version command which opens qute://version.
* New back/forward indicator in the statusbar.
* New bindings.key_mappings setting to map keys to other keys.
* QtWebEngine: Support for proxy authentication.
Changed:
* Using :download now uses the page's title as filename.
* Using :back or :forward with a count now skips intermediate
pages.
* When there are multiple messages shown, the timeout is
increased.
* :search now only clears the search if one was displayed
before, so pressing <Escape> doesn't un-focus inputs anymore.
* Pinned tabs now adjust to their text's width, so the
tabs.width.pinned setting got removed.
* :set-cmd-text now has a --run-on-count argument to run the
underlying command directly if a count was given.
* :scroll-perc got renamed to :scroll-to-perc.
Removed:
* Migrating QtWebEngine data written by versions before
2016-11-15 (before v0.9.0) is now not supported anymore.
* Upgrading qutebrowser with a version older than v0.4.0 still
running now won't work properly anymore.
* The --harfbuzz and --relaxed-config commandline arguments got
dropped.
Fixes:
* Exiting fullscreen via :fullscreen or buttons on a page now
restores the correct previous window state
(maximized/fullscreen).
* When input.insert_mode.auto_load is set, background tabs now
don't enter insert mode anymore.
* The keybinding help widget now works correctly when using
keybindings with a count.
* The window.hide_wayland_decoration setting now works correctly
again.
OBS-URL: https://build.opensuse.org/request/show/533709
OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=13
2017-10-12 21:38:06 +02:00
|
|
|
|
rm %{buildroot}%{python3_sitelib}/%{name}/git-commit-id
|
2016-04-23 20:00:39 +02:00
|
|
|
|
%fdupes %{buildroot}%{python3_sitelib}/
|
|
|
|
|
|
2021-09-23 08:09:39 +02:00
|
|
|
|
# NOTE: test suite disabled because the BDD tests are too unreliable
|
|
|
|
|
# %%check
|
2021-04-20 03:50:19 +02:00
|
|
|
|
# NOTE: test suite is slow but doesn’t run reliably with xdist
|
2022-04-06 02:29:59 +02:00
|
|
|
|
# PYTHONPATH=. pytest -v \
|
|
|
|
|
# -k 'not importlib' \
|
|
|
|
|
# --qute-backend webengine
|
2021-04-20 03:50:19 +02:00
|
|
|
|
|
2016-04-23 20:00:39 +02:00
|
|
|
|
%files
|
2018-03-02 00:58:39 +01:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc doc/changelog.asciidoc README.asciidoc
|
2016-04-23 20:00:39 +02:00
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{python3_sitelib}/%{name}/
|
|
|
|
|
%{python3_sitelib}/%{name}-*
|
2019-07-18 17:59:56 +02:00
|
|
|
|
%{_datadir}/applications/org.qutebrowser.qutebrowser.desktop
|
2016-04-23 20:00:39 +02:00
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
2019-02-26 03:01:35 +01:00
|
|
|
|
%{_datadir}/metainfo/org.qutebrowser.qutebrowser.appdata.xml
|
2018-05-04 14:36:37 +02:00
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
2016-04-23 20:00:39 +02:00
|
|
|
|
|
|
|
|
|
%changelog
|