qutebrowser/qutebrowser.spec
Alexei Sorokin fef0e8b0a9 Accepting request 565833 from home:lachs0r:branches:network
- Update to version 1.1.0: 
  Added:
    * Initial support for Greasemonkey scripts. There are still
      some rough edges, but many scripts should already work.
    * New fields for window.title_format and tabs.title.format:
      + {current_url}
      + {protocol}
    * New settings:
      + colors.statusbar.passthrough.fg/.bg
      + completion.delay and completion.min_chars to update the
        completion less often.
      + completion.use_best_match to automatically use the
        best-matching command in the completion.
      + keyhint.radius to configure the edge rounding for the key
        hint widget.
      + qt.highdpi to turn on Qt's High-DPI scaling.
      + tabs.pinned.shrink (true by default) to make it possible
        for pinned tabs and normal tabs to have the same size.
      + content.windowed_fullscreen to show e.g. a fullscreened
        video in the window without fullscreening that window.
      + tabs.persist_mode_on_change to keep the current mode when
        switching tabs.
      + session.lazy_restore which allows to not load pages
        immediately when restoring a session.
    * New commands:
      + :tab-give and :tab-take, to give tabs to another window,
        or take them from another window.
      + :completion-item-yank (bound to <Ctrl-C>) to yank the
        current completion item text.
      + :edit-command to edit the commandline in an editor.
      + search.incremental for incremental text search.
    * New flags for existing commands:
      + -o flag for :spawn to show stdout/stderr in a new tab.
      + --rapid flag for :command-accept (bound to Ctrl-Enter by
        default), which allows executing a command in the
        completion without closing it.
      + --private and --related flags for :edit-url, which have the
        same effect they have with :open.
      + --history for :completion-item-focus which causes it to go
        through the command history when no text was entered.
        The default bindings for cursor keys in the completion
        changed to use that, so that they can be used again to
        navigate through completion items when a text was entered.
      + --file for :debug-pyeval which makes it take a filename
        instead of a line of code.
    * New config.source(...) method for config.py to source another
      file.
    * New {line} and {column} replacements for editor.command to
      position the cursor correctly.
    * New qute-pass userscript as alternative to password_fill
      which allows selecting accounts via rofi or any other
      dmenu-compatile application.
    * New hist_importer.py script to import history from
      Firefox/Chromium.
  Changed:
    * Some settings got renamed:
    * tabs.width.bar -> tabs.width
    * tabs.width.indicator -> tabs.indicator.width
    * tabs.indicator_padding -> tabs.indicator.padding
    * session_default_name -> session.default_name
    * ignore_case -> search.ignore_case
    * Much improved user stylesheet handling for QtWebEngine which
      reduces flickering and updates immediately after setting a
      stylesheet.
    * High-DPI favicons are now used when available.
    * The asciidoc2html.py script now uses Pygments (which is
      already a dependency of qutebrowser) instead of
      source-highlight for syntax highlighting.
    * The :buffer command now doesn't require quoting anymore,
      similar to :open.
    * The importer.py script was largely rewritten and now also
      supports importing from Firefox' places.sqlite file and
      Chrome/Chromium profiles.
    * Various internal refactorings to use Python 3.5 and
      ECMAscript 6 features.
    * If the window.hide_wayland_decoration setting is False, but
      QT_WAYLAND_DISABLE_WINDOWDECORATION is set in the
      environment, the decorations are still hidden.
    * The install_dict.py script for QtWebEngine was renamed to
      dictcli.py and can now also upgrade dictionaries correctly.
    * :undo now can re-open multiple tabs after :tab-only was used.
    * :config-write-py with a relative path now puts the file into
      the config directory.
    * The qute://version page now also shows the uptime of
      qutebrowser.
    * qutebrowser now prompts to create a non-existing directory
      when starting a download.
    * :jseval --file now searches relative paths in a js/ subdir in
      qutebrowser's data dir, e.g. ~/.local/share/qutebrowser/js.
    * The current/default bindings are now shown in the ``:bind`
      completion.
    * Empty categories are now hidden in the :open completion.
    * Search terms for URLs and titles can now be mixed when
      filtering the completion.
    * The default font size for the UI got bumped up from 8pt to
      10pt.
    * Improved matching in the completion: The words entered are
      now matched in any order, and mixed matches on URL/tite are
      possible.
    * The system's default encoding (rather than UTF-8) is now used
      to decode subprocess output.
    * qutebrowser now ensures it's focused again after an external
      editor is closed.
    * The colors.completion.fg setting can now be a list, allowing
      to specify different colors for the three completion columns.
  Fixed:
    * More consistent sizing for favicons with vertical tabs.
    * Using :home on pinned tabs is now prevented.
    * Fix crash with unknown file types loaded via qute://help.
    * Scrolling performance improvements.
    * Sites like qute://help now redirect to qute://help/ to make
      sure links work properly.
    * Fixes for the size calculation of pinned tabs in the tab bar.
    * Worked around a crash with PyQt 5.9.1 compiled against
      Qt < 5.9.1 when using :yank or qute:// URLs.
    * Fixed crash when opening qute://help/img.
    * Fixed gU (:navigate up) on qute://help and webservers not
      handling .. in a URL.
    * Using e.g. -s backend webkit to set the backend now works
      correctly.
    * Fixed crash when closing the tab an external editor was
      opened in.
    * When using :search-next before a search is finished, no
      warning about no results being found is shown anymore.
    * Fix :click-element with an ID containing non-alphanumeric
      characters.
    * Fix crash when a subprocess outputs data which is not
      decodable as UTF-8.
    * Fix crash when closing a tab immediately after hinting.
    * Worked around issues in Qt 5.10 with loading progress never
      being finished.
    * Fixed a crash when writing a flag before a command
      (e.g. :-w open).
    * Fixed a crash when clicking certain form elements with
      QtWebEngine.
  Deprecated:
    * :tab-detach has been deprecated, as :tab-give without
      argument can be used instead.
  Removed:
    * The long-deprecated :prompt-yes, :prompt-no, :paste-primary
      and :paste commands have been removed.
    * The invocation :download <url> <dest> which was deprecated
      in v0.5.0
      was removed, use :download --dest <dest> <url> instead.
    * The messages.unfocused option which wasn't used anymore was
      removed.
    * The x[xtb] default bindings got removed again as many users
      accidentally triggered them.

OBS-URL: https://build.opensuse.org/request/show/565833
OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=23
2018-01-15 19:51:08 +00:00

104 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.1.0
Release: 0
Summary: Keyboard-driven vim-like browser on Qt5
License: GPL-3.0+
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
%doc doc/changelog.asciidoc LICENSE README.asciidoc
%{_bindir}/%{name}
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%changelog