SHA256
1
0
forked from pool/qutebrowser
qutebrowser/qutebrowser.spec
Mia Herkt 9e86249800 - Update to version 1.3.0:
Added:
    * New :scroll-to-anchor command to scroll to an anchor in the
      document.
    * New url.open_base_url option to open the base URL of a
      searchengine when no search term is given.
    * New tabs.min_width setting to configure the minimal width
      for tabs.
    * New userscripts:
        + getbib to download bibtex information for DOIs on a page.
        + qute-keepass to get passwords from KeePassX.
  Changed:
    * QtWebEngine: Support for JavaScript Shared Web Workers have
      been disabled on Qt versions older than 5.11 because of
      security issues in in Chromium. You can get the same effect
      in earlier versions via
      ":set qt.args ['disable-shared-workers']". An equivalent
      workaround is also contained in Qt 5.9.5 and 5.10.1.
    * The file dialog for downloads now has basic tab completion
      based on the entered text.
    * :version now shows OS information for POSIX OS other than
      Linux/macOS.
    * When there's an error inserting the text from an external
      editor, a backup file is now saved.
    * The window.hide_wayland_decoration setting got renamed to
      window.hide_decoration and now also works outside of wayland.
    * The tabs.favicons.show setting now can take three values:
      'always' (was True), 'never' (was False) and 'pinned'
      (to only show favicons for pinned tabs).
    * Hover tooltips on tabs now always show the webpage's title.

OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=34
2018-05-04 10:40:54 +00:00

105 lines
3.2 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.3.0
Release: 0
Summary: Keyboard-driven vim-like browser 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: 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 Python, PyQt5 and QtWebKit and is free software.
%prep
%setup -q
sed -i '1d' %{name}/__main__.py
touch -r qutebrowser/browser/network/__init__.py \
qutebrowser/browser/webkit/network/__init__.py
%build
python3 setup.py build
%install
python3 setup.py install \
--root=%{buildroot} --prefix=%{_prefix}
install -Dpm 0644 misc/%{name}.desktop \
%{buildroot}%{_datadir}/applications/%{name}.desktop
for size in 16 24 32 48 64 128 256; do
install -Dpm 0644 "icons/%{name}-${size}x${size}.png" \
"%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png"
done
install -Dpm 0644 icons/%{name}.svg \
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
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}.*
%changelog