qutebrowser/qutebrowser.spec
Mia Herkt 1ceb1e4e92 - Update to version 1.14.1
Added
With v1.14.0, qutebrowser configures the main window to be
transparent, so that it's possible to configure a translucent tab-
or statusbar. However, that change introduced various issues, such
as performance degradation on some systems or breaking dmenu window
embedding with its -w option. To avoid those issues for people who
are not using transparency, the default behavior is reverted to
versions before v1.14.0 in this release. A new window.transparent
setting can be set to true to restore the behavior of v1.14.0.
Fixed
* Setting the content.headers.referer setting to same-domain (the
  default) was supposed to truncate referers to only the host with
  QtWebEngine. Unfortunately, this functionality broke in Qt 5.14.
  It works properly again.
* with this release, including a test so this won't happen again.
* With QtWebEngine 5.15, setting the content.headers.referer
  setting to never did still send referers. This is now fixed as
  well.
* In v1.14.0, a regression was introduced, causing a crash when
  qutebrowser was closed after opening a download with PDF.js.
  This is now fixed.
* With Qt 5.12, the Object.fromEntries JavaScript API is
  unavailable (it was introduced in Chromium 73, while Qt 5.12 is
  based on 69). This caused https://www.vr.fi/en and possibly other
  websites to break when accessed with Qt 5.12. A suitable polyfill
  is now included with qutebrowser if content.site_specific_quirks
  is enabled (which is the default).
* While XDG startup notifications (e.g. launch feedback via the
  bouncy cursor in KDE Plasma) were supported ever since Qt 5.1,

OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=100
2020-12-06 08:36:53 +00:00

116 lines
3.4 KiB
RPMSpec

#
# 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
Version: 1.14.1
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
BuildRequires: python3-devel >= 3.6
BuildRequires: python3-pyPEG2
BuildRequires: python3-qt5 >= 5.2
%if 0%{suse_version} >= 1550
BuildRequires: python3-qt5-sip
%else
BuildRequires: python3-sip
%endif
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
%if 0%{suse_version} >= 1550
Requires: python3-qt5-sip
%else
Requires: python3-sip
%endif
Recommends: python3-cssutils
BuildArch: noarch
%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
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
rm %{buildroot}%{python3_sitelib}/%{name}/git-commit-id
%fdupes %{buildroot}%{python3_sitelib}/
%if 0%{?suse_version} <= 1320
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%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