SHA256
1
0
forked from pool/qutebrowser
qutebrowser/qutebrowser.spec

108 lines
3.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package qutebrowser
#
# Copyright (c) 2020 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/
#
Name: qutebrowser
- Update to version 1.14.0 This release still only contains partial session support for QtWebEngine 5.15. It's still recommended to run against Qt 5.15 due to the security patches contained in it -- for most users, the added workarounds seem to work out fine. A rewritten session support will be part of qutebrowser v2.0.0, tentatively planned for the end of the year or early 2021. Changed * The content.media_capture setting got split up into three more fine-grained settings, content.media.audio_capture, .video_capture and .audio_video_capture. Before this change, answering "always" to a prompt about e.g. audio capturing would set the content.media_capture setting, which would also allow the same website to capture video on a future visit. Now every prompt will set the appropriate setting, though existing content.media_capture settings in autoconfig.yml will be migrated to set all three settings. To review/change previously granted permissions, use :config-diff and e.g. :config-unset -u example.org content.media.video_capture. * The main window's (invisible) background color is now set to transparent. This allows using the alpha channel in statusbar/tabbar colors to get a partially transparent qutebrowser window on a setup which supports doing so. * If QtWebEngine is compiled with PipeWire support and libpipewire is installed, qutebrowser will now support screen sharing on Wayland. Note that QtWebEngine 5.15.1 is needed. * When :undo is used with a count, it now reopens the count-th to last tab instead of the last one. The depth can instead be passed as an argument, which is also completed. * The default completion.timestamp_format now also shows the OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=96
2020-10-16 00:19:15 +02:00
Version: 1.14.0
Release: 0
Summary: Keyboard-driven vim-like browser based on Qt5
License: GPL-3.0-or-later
Group: Productivity/Networking/Web/Browsers
URL: https://qutebrowser.org/
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
BuildRequires: asciidoc
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: python3-Jinja2
BuildRequires: python3-MarkupSafe
BuildRequires: python3-PyYAML
BuildRequires: python3-Pygments
BuildRequires: python3-attrs
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
BuildRequires: python3-pyPEG2
BuildRequires: python3-qt5 >= 5.2
BuildRequires: python3-sip
Requires: libqt5-sql-sqlite
Requires: python3-Jinja2
Requires: python3-MarkupSafe
Requires: python3-PyYAML
Requires: python3-Pygments
Requires: python3-attrs
Requires: python3-opengl
Requires: python3-pyPEG2
Requires: python3-qt5 >= 5.2
%if 0%{?suse_version} > 1500
Requires: python3-qtwebengine-qt5
%endif
Requires: python3-sip
Recommends: python3-cssutils
BuildArch: noarch
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
%if 0%{?suse_version} <= 1320
BuildRequires: update-desktop-files
%endif
%description
qutebrowser is a keyboard-focused browser with a minimal GUI.
It's based on PyQt5 and can use either QtWebEngine or QtWebKit.
%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
sed -i 's,^#!/usr/bin/env ,#!/usr/bin/,' \
misc/userscripts/* \
scripts/*.py
sed -i 's,^#!/usr/bin/bash,#!/bin/bash,' \
misc/userscripts/*
mv misc/Makefile .
%build
%install
%make_install PREFIX=%{_prefix}
chmod -x %{buildroot}%{_datadir}/%{name}/scripts/cycle-inputs.js \
%{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
%fdupes %{buildroot}%{python3_sitelib}/
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
%if 0%{?suse_version} <= 1320
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
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
%endif
%files
%license LICENSE
%doc doc/changelog.asciidoc README.asciidoc
%{_bindir}/%{name}
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-*
%{_datadir}/applications/org.qutebrowser.qutebrowser.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/metainfo/org.qutebrowser.qutebrowser.appdata.xml
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog