qutebrowser/qutebrowser.spec
Alexei Sorokin 88d3ad3c8b Accepting request 897212 from home:Guillaume_G:branches:network
- Update to version 2.2.3
Fixed
  * Logging into Google accounts or sharing the camera on macOS 10.14+ crashed,
    which is now fixed.
  *The Windows installer now correctly aborts the installation on Windows 7
    (rather than attempting an install which won't work, since Windows 7 is
    unsupported since the v2.0.0 release).
  * Using --json-logging without --debug caused qutebrowser to crash since the
    v1.13.0 release. It now works correctly again.
  * Mixing Qt 5.14+ with QtWebEngine 5.12 caused a crash related to qutebrowser's
    notification support, which is now fixed.
  * The documentation now points to the new IRC channels on irc.libera.chat
    instead of the defunct Freenode channels (due to a hostile takeover by
    Freenode staff).
  * Setting content.headers.user_agent or .accept_language to a value
    containing non-ascii characters was permitted by qutebrowser, but resulted in
a crash when loading a page. Such values are now rejected properly.
  * When quitting qutebrowser on the qute://settings page, a crash could happen, which is now fixed.
  * When :edit-text is used, but the existing text in the input isn't
    representable in the configured encoding (editor.encoding), qutebrowser would
    crash. It now shows a proper error instead.
  * The testsuite should now work properly on aarch64.
  * When QtWebEngine is in a "stuck" state while :selection-follow was used,
    this could cause a crash in qutebrowser. This is now fixed (speculatively, due
    to lack of a reproducer).
  * When the brave adblock data (adblock-cache.dat) got corrupted, qutebrowser
    would crash when trying to load it. It now displays an error instead.
    Combining /S (silent) and /allusers when uninstalling via the Windows
    installer now works properly.

OBS-URL: https://build.opensuse.org/request/show/897212
OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=112
2021-06-03 13:18:02 +00:00

124 lines
4.0 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package qutebrowser
#
# Copyright (c) 2021 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
Version: 2.2.3
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: Mesa-dri
BuildRequires: asciidoc
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: python >= 3.6.1
BuildRequires: python3-Flask
BuildRequires: python3-Jinja2
BuildRequires: python3-MarkupSafe
BuildRequires: python3-PyYAML
BuildRequires: python3-beautifulsoup4
BuildRequires: python3-cheroot
BuildRequires: python3-devel >= 3.6
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
BuildRequires: python3-setuptools
BuildRequires: python3-tk
BuildRequires: python3-tldextract
Requires: libqt5-sql-sqlite
Requires: python3-Jinja2
Requires: python3-MarkupSafe
Requires: python3-PyYAML
Requires: python3-opengl
Requires: python3-qt5 > 5.12
Requires: python3-qtwebengine-qt5
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
%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
sed -i '1d' %{name}/__main__.py
sed -i 's,^#!%{_bindir}/env ,#!%{_bindir}/,' \
misc/userscripts/* \
scripts/*.py
sed -i 's,^#!%{_bindir}/bash,#!/bin/bash,' \
misc/userscripts/*
mv misc/Makefile .
# missing files in release tarball
rm tests/unit/scripts/test_problemmatchers.py
%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
rm %{buildroot}%{python3_sitelib}/%{name}/git-commit-id
%fdupes %{buildroot}%{python3_sitelib}/
%check
# NOTE: test suite is slow but doesnt run reliably with xdist
PYTHONPATH=. QUTE_BDD_WEBENGINE=true pytest -v \
-k 'not importlib'
%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