SHA256
1
0
forked from pool/qutebrowser
qutebrowser/qutebrowser.spec
Mia Herkt 1523d7620b - Update to version 1.4.2:
Changed:
    * The content.xss_auditing setting is now enabled by default,
      to mirror Chromium's rather than Qt's default behavior.
    * Long URLs in the statusbar are now elided at the end rather
      than in the middle, to make sure the hostname is completely
      visible whenever possible.
  Fixed:
    * Crash in Qt 5.7.1 when a website uses window.print().
    * The workaround for Nouveau graphic drivers now works properly
      again.
    * Crash when using :follow-selected with a link which is
      outside of the view.
    * Workaround for windows not showing as urgent with some window
      managers (like i3).
    * Crash when opening URLs with some unicode characters
      (IDNA 2008). Those URLs still won't open though, due to
      missing support in Qt.
    * Crash when a download directory which can't be created is
      configured.
    * Crash in the importer.py script when importing Chrome
      bookmarks from newer Chrome versions.
    * The content.webrtc_public_interfaces_only option didn't work
      on Qt 5.11 previously (it now does). Note it still does not
      work on Qt 5.10 (due to a Qt bug) and Qt < 5.9.2.
    * Repeated escaping of entries in qute://log when refreshing
      page.
    * The host blocker doesn't block 0.0.0.0 anymore.
    * Crash when using :// as URL pattern.
    * The :buffer completion now sorts tabs with indices >= 10

OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=51
2018-09-02 13:42:43 +00:00

101 lines
3.1 KiB
RPMSpec

#
# spec file for package qutebrowser
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: qutebrowser
Version: 1.4.2
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
BuildRequires: python3-sip
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
Requires: python3-sip
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 python,#!/usr/bin/python,;s,^#!/usr/bin/env bash,#!/bin/bash,' \
misc/userscripts/* \
scripts/*.py
mv misc/Makefile .
%build
%install
%make_install PREFIX=%{_prefix}
chmod -x %{buildroot}%{_datadir}/%{name}/scripts/cycle-inputs.js \
%{buildroot}%{_datadir}/%{name}/scripts/utils.py
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/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog