From e0a2321974f688f3b5747ece52a4a87d1527be82b574efa74441e0f683a9e961 Mon Sep 17 00:00:00 2001
From: Alexei Sorokin <sor.alexei@meowr.ru>
Date: Thu, 12 Oct 2017 19:38:06 +0000
Subject: [PATCH] Accepting request 533709 from home:alois:branches:network

- Update to version 1.0.0
  * Dependency changes:
    +  Support for legacy QtWebKit (before 5.212 which is
       distributed independently from Qt) is dropped.
    +  Support for Python 3.4 is dropped.
    +  Support for Qt before 5.7.1 and PyQt before 5.7 is dropped.
    +  New dependency on the QtSql module and Qt sqlite support.
    +  New dependency on the attrs project (packaged as
       python-attr in some distributions).
    +  The depedency on PyOpenGL (when using QtWebEngine) got
       removed. Note that PyQt5.QtOpenGL is still a dependency.
    +  PyQt5.QtOpenGL is now always required, even with QtWebKit.
  * The QtWebEngine backend is now used by default. Note this
    means that QtWebEngine now should be a required dependency, and
    QtWebKit (if new enough) should be changed to an optional
    dependency.
  * Completely rewritten configuration system which ignores the
    old config file. See link:qute://help/configuring.html[] for
    details.
  * Various documentation files got moved to the doc/ subfolder;
    qutebrowser.desktop got moved to misc/.
  * :set now doesn't support toggling/cycling values anymore, that
    functionality got moved to :config-cycle.
  * New completion engine based on sqlite, which allows to
    complete the entire browsing history. The default for
    completion.web_history_max_items got changed to -1 (unlimited).
    If the completion is too slow on your machine, try setting it to
    a few 1000 items.
  Added:
  * QtWebEngine: Spell checking support, see the
    spellcheck.languages setting.
  * New qt.args setting to pass additional arguments to
    Qt/Chromium.
  * New backend setting to select the backend to use. Together
    with the previous setting, this should make most wrapper
    scripts unnecessary.
  * qutebrowser can now be set as the default browser on macOS.
  * New config commands:
    + :config-cycle to cycle an option between multiple values.
    + :config-unset to remove a configured option.
    + :config-clear to remove all configured options.
    + :config-source to (re-)read a config.py file.
    + :config-edit to open the config.py file in an editor.
    + :config-write-py to write a config.py template file.
  * New :version command which opens qute://version.
  * New back/forward indicator in the statusbar.
  * New bindings.key_mappings setting to map keys to other keys.
  * QtWebEngine: Support for proxy authentication.
  Changed:
  * Using :download now uses the page's title as filename.
  * Using :back or :forward with a count now skips intermediate
    pages.
  * When there are multiple messages shown, the timeout is
    increased.
  * :search now only clears the search if one was displayed
    before, so pressing <Escape> doesn't un-focus inputs anymore.
  * Pinned tabs now adjust to their text's width, so the
    tabs.width.pinned setting got removed.
  * :set-cmd-text now has a --run-on-count argument to run the
    underlying command directly if a count was given.
  * :scroll-perc got renamed to :scroll-to-perc.
  Removed:
  * Migrating QtWebEngine data written by versions before
    2016-11-15 (before v0.9.0) is now not supported anymore.
  * Upgrading qutebrowser with a version older than v0.4.0 still
    running now won't work properly anymore.
  * The --harfbuzz and --relaxed-config commandline arguments got
    dropped.
  Fixes:
  * Exiting fullscreen via :fullscreen or buttons on a page now
    restores the correct previous window state
    (maximized/fullscreen).
  * When input.insert_mode.auto_load is set, background tabs now
    don't enter insert mode anymore.
  * The keybinding help widget now works correctly when using
    keybindings with a count.
  * The window.hide_wayland_decoration setting now works correctly
    again.

OBS-URL: https://build.opensuse.org/request/show/533709
OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=13
---
 qutebrowser-0.11.0.tar.gz     |  3 --
 qutebrowser-0.11.0.tar.gz.asc | 16 -------
 qutebrowser-1.0.0.tar.gz      |  3 ++
 qutebrowser-1.0.0.tar.gz.asc  | 16 +++++++
 qutebrowser.changes           | 82 +++++++++++++++++++++++++++++++++++
 qutebrowser.spec              | 21 ++++++---
 6 files changed, 115 insertions(+), 26 deletions(-)
 delete mode 100644 qutebrowser-0.11.0.tar.gz
 delete mode 100644 qutebrowser-0.11.0.tar.gz.asc
 create mode 100644 qutebrowser-1.0.0.tar.gz
 create mode 100644 qutebrowser-1.0.0.tar.gz.asc

diff --git a/qutebrowser-0.11.0.tar.gz b/qutebrowser-0.11.0.tar.gz
deleted file mode 100644
index 95f7987..0000000
--- a/qutebrowser-0.11.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:dbb7de2d54f3849b03db11c2417a725ab8bf26a8f7f48bfa36ad852a8de9308e
-size 3222936
diff --git a/qutebrowser-0.11.0.tar.gz.asc b/qutebrowser-0.11.0.tar.gz.asc
deleted file mode 100644
index 9397738..0000000
--- a/qutebrowser-0.11.0.tar.gz.asc
+++ /dev/null
@@ -1,16 +0,0 @@
------BEGIN PGP SIGNATURE-----
-
-iQIzBAABCAAdFiEE4E5WAAJAG47w528KkW6wyP1VoHIFAllbzRUACgkQkW6wyP1V
-oHKf6Q/8CQ35j4b8aFtheal/3mi+ts+PzJPfplaT8gfOS/Nlk/bY4E83MFl2O7OT
-27lV+KfJtoC5WvzbQbOEFkVZMKyIakPEW/Tjp6PZXoU0bhOzJ2SoGtzIQt8y6yg1
-B0yJ4+NecIk3Wj5BNG3gknvJ1e4JCbeWaQ4VyLerNpHWuFOhUaL5Q0kOG8p9eQgW
-vSOnZiCPJ2gDppynrDtqLrcRlEoRxQqZm8A5fOaAu+qa8YHSlxoI9kAl2hvoypqg
-FNOhjaupfWQKtdjztvIl8Z9enOTKxPxlmFLRU5g+shdCPcxrr9BV4Wj+09T6Irf1
-3/1g0wXCBrMWMkJpG+/m3e/13qpIqBLEZXnNt1ZNwE5aKFiTk4pc+9f8ge7FSpu6
-vkrT6DMCH5Elt46ZSw+jJg7sNUBnwSnY+47vHbGJ41qBeiYSoaZdkm7WByPf2Om+
-QXRQz7HNpzO7k2kDslCJjNF3nlcPbshjhjUfOrxCe/Dn6Bh4CQMHEhSLgku12EGn
-N06ml3BtM4P1/nIA8Ib3JlVIPnuc2coUOabHev7LCirASmSQE8s8Vpgf+TlPatD3
-4GFVY+we8ZDtBmAb1GjAyvTGSroYXx4Z9wRB3XadtnLXZ3oWkwGFl405ckGl5OlC
-4Qq6Ntuv+RXDNq6riv8mVqNrFvG5uZxjJKzmtmxuOmymor12uU8=
-=YrgZ
------END PGP SIGNATURE-----
diff --git a/qutebrowser-1.0.0.tar.gz b/qutebrowser-1.0.0.tar.gz
new file mode 100644
index 0000000..e12cd28
--- /dev/null
+++ b/qutebrowser-1.0.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f7ffed98556d4d7ef130411c3f3330efe4f1ba2fc573f4a24f02be255bf048a2
+size 3271573
diff --git a/qutebrowser-1.0.0.tar.gz.asc b/qutebrowser-1.0.0.tar.gz.asc
new file mode 100644
index 0000000..09e6bb5
--- /dev/null
+++ b/qutebrowser-1.0.0.tar.gz.asc
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAABCAAdFiEE4E5WAAJAG47w528KkW6wyP1VoHIFAlnfJLcACgkQkW6wyP1V
+oHK2dQ/+ICyauXKoESD1KiMRSlcz6+0+nGBzfXgvcb35/23K4cxvsT0iSXyJb0fh
+b+qdOlv9kUrDLO3JSxcLjL5LGbne4NqA4P3UZGPzJrSG/83AIvr0t1cqmMrKHSUn
+VKtXUDS11LAML++roytNMEyad4W9m09Zuo8bCzo1znhQP0LrVkOiBKWITfL6t/XB
+Zwtj+pItjLqkViGE1qyetvjlRVyUYaKR1bld06+Xm9R2R1ICOv7qYS+EUkjI/R6b
+1t9e2CzVW+2kiF1+zZoh8MAHGFdZ98Lnps0Ad9aNuykynLb10mDtZspIZoY7iasM
+EcCqnHqHVU8saGlkoHSapclxqrR22+3hWhl1j7w/u/KMN7Qz3ld2dugWYTH2BhOH
+6AN5m7FsnyhHEzoXc/4RhiYaeT4HlLcIaNtkkoAGD8myN8YdCOA5t3SETaJd7B4l
+WfvHTlyC75p+2mgXx5cUH6Fs8pvovZV7cLnAahRv66zQmnV12huOufDbU+4Nca9K
+gwaAcRZ1bjZ263GT77pu/L65rNL5Dn4/17euz2GKFmisyTadcc4XfH16U/yXegrJ
+5lIC7iFlYJjb4jPJ20+vIRmkbyJRzE995apFqQDfZHQa6M/UqbuDrUW15AfvFGgw
+N5pV8phjJtCXWbjc1LCgPhuIgWvS58VHKyF6Jb2EVCtX3RajBKQ=
+=EUhX
+-----END PGP SIGNATURE-----
diff --git a/qutebrowser.changes b/qutebrowser.changes
index beb45c7..5cb0a5a 100644
--- a/qutebrowser.changes
+++ b/qutebrowser.changes
@@ -1,3 +1,85 @@
+-------------------------------------------------------------------
+Thu Oct 12 12:44:12 UTC 2017 - aloisio@gmx.com
+
+- Update to version 1.0.0
+  * Dependency changes:
+    +  Support for legacy QtWebKit (before 5.212 which is
+       distributed independently from Qt) is dropped.
+    +  Support for Python 3.4 is dropped.
+    +  Support for Qt before 5.7.1 and PyQt before 5.7 is dropped.
+    +  New dependency on the QtSql module and Qt sqlite support.
+    +  New dependency on the attrs project (packaged as
+       python-attr in some distributions).
+    +  The depedency on PyOpenGL (when using QtWebEngine) got
+       removed. Note that PyQt5.QtOpenGL is still a dependency.
+    +  PyQt5.QtOpenGL is now always required, even with QtWebKit.
+  * The QtWebEngine backend is now used by default. Note this
+    means that QtWebEngine now should be a required dependency, and
+    QtWebKit (if new enough) should be changed to an optional
+    dependency.
+  * Completely rewritten configuration system which ignores the
+    old config file. See link:qute://help/configuring.html[] for
+    details.
+  * Various documentation files got moved to the doc/ subfolder;
+    qutebrowser.desktop got moved to misc/.
+  * :set now doesn't support toggling/cycling values anymore, that
+    functionality got moved to :config-cycle.
+  * New completion engine based on sqlite, which allows to
+    complete the entire browsing history. The default for
+    completion.web_history_max_items got changed to -1 (unlimited).
+    If the completion is too slow on your machine, try setting it to
+    a few 1000 items.
+  Added:
+  * QtWebEngine: Spell checking support, see the
+    spellcheck.languages setting.
+  * New qt.args setting to pass additional arguments to
+    Qt/Chromium.
+  * New backend setting to select the backend to use. Together
+    with the previous setting, this should make most wrapper
+    scripts unnecessary.
+  * qutebrowser can now be set as the default browser on macOS.
+  * New config commands:
+    + :config-cycle to cycle an option between multiple values.
+    + :config-unset to remove a configured option.
+    + :config-clear to remove all configured options.
+    + :config-source to (re-)read a config.py file.
+    + :config-edit to open the config.py file in an editor.
+    + :config-write-py to write a config.py template file.
+  * New :version command which opens qute://version.
+  * New back/forward indicator in the statusbar.
+  * New bindings.key_mappings setting to map keys to other keys.
+  * QtWebEngine: Support for proxy authentication.
+  Changed:
+  * Using :download now uses the page's title as filename.
+  * Using :back or :forward with a count now skips intermediate
+    pages.
+  * When there are multiple messages shown, the timeout is
+    increased.
+  * :search now only clears the search if one was displayed
+    before, so pressing <Escape> doesn't un-focus inputs anymore.
+  * Pinned tabs now adjust to their text's width, so the
+    tabs.width.pinned setting got removed.
+  * :set-cmd-text now has a --run-on-count argument to run the
+    underlying command directly if a count was given.
+  * :scroll-perc got renamed to :scroll-to-perc.
+  Removed:
+  * Migrating QtWebEngine data written by versions before
+    2016-11-15 (before v0.9.0) is now not supported anymore.
+  * Upgrading qutebrowser with a version older than v0.4.0 still
+    running now won't work properly anymore.
+  * The --harfbuzz and --relaxed-config commandline arguments got
+    dropped.
+  Fixes:
+  * Exiting fullscreen via :fullscreen or buttons on a page now
+    restores the correct previous window state
+    (maximized/fullscreen).
+  * When input.insert_mode.auto_load is set, background tabs now
+    don't enter insert mode anymore.
+  * The keybinding help widget now works correctly when using
+    keybindings with a count.
+  * The window.hide_wayland_decoration setting now works correctly
+    again.
+
 -------------------------------------------------------------------
 Sun Aug 13 17:25:21 UTC 2017 - 9@cirno.systems
 
diff --git a/qutebrowser.spec b/qutebrowser.spec
index b16a97b..d1eeff5 100644
--- a/qutebrowser.spec
+++ b/qutebrowser.spec
@@ -17,12 +17,12 @@
 
 
 Name:           qutebrowser
-Version:        0.11.0
+Version:        1.0.0
 Release:        0
 Summary:        Keyboard-driven vim-like browser on Qt5
 License:        GPL-3.0+
 Group:          Productivity/Networking/Web/Browsers
-Url:            https://qutebrowser.org/
+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
@@ -32,11 +32,10 @@ BuildRequires:  python3-Jinja2
 BuildRequires:  python3-MarkupSafe
 BuildRequires:  python3-PyYAML
 BuildRequires:  python3-Pygments
-BuildRequires:  python3-devel >= 3.4
+BuildRequires:  python3-devel >= 3.6
 BuildRequires:  python3-pyPEG2
 BuildRequires:  python3-qt5 >= 5.2
 BuildRequires:  python3-sip
-BuildRequires:  update-desktop-files
 Requires:       python3-Jinja2
 Requires:       python3-MarkupSafe
 Requires:       python3-PyYAML
@@ -47,6 +46,9 @@ 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.
@@ -54,6 +56,9 @@ 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
@@ -62,7 +67,7 @@ python3 setup.py build
 python3 setup.py install \
   --root=%{buildroot} --prefix=%{_prefix}
 
-install -Dpm 0644 %{name}.desktop \
+install -Dpm 0644 misc/%{name}.desktop \
   %{buildroot}%{_datadir}/applications/%{name}.desktop
 
 for size in 16 24 32 48 64 128 256; do
@@ -72,8 +77,10 @@ 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
@@ -81,10 +88,10 @@ install -Dpm 0644 icons/%{name}.svg \
 %postun
 %desktop_database_postun
 %icon_theme_cache_postun
+%endif
 
 %files
-%defattr(-,root,root)
-%doc CHANGELOG.asciidoc COPYING README.asciidoc
+%doc doc/changelog.asciidoc LICENSE README.asciidoc
 %{_bindir}/%{name}
 %{python3_sitelib}/%{name}/
 %{python3_sitelib}/%{name}-*