2 Summary: A keyboard-driven, vim-like browser based on PyQt5
7 Group: X11/Applications/Networking
8 Source0: https://github.com/qutebrowser/qutebrowser/archive/v%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: efd70169bbd7445198746962bd7f2861
10 URL: https://www.qutebrowser.org/
11 BuildRequires: asciidoc
12 BuildRequires: python3 >= 1:3.6.1
13 BuildRequires: python3-setuptools
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.714
16 Requires: Qt5Core >= %{qtver}
17 Requires: Qt5DBus >= %{qtver}
18 Requires: Qt5Gui >= %{qtver}
19 Requires: Qt5Network >= %{qtver}
20 Requires: Qt5OpenGL >= %{qtver}
21 Requires: Qt5PrintSupport >= %{qtver}
22 Requires: Qt5Qml >= %{qtver}
23 Requires: Qt5Sql >= %{qtver}
24 Requires: Qt5Sql-sqldriver-sqlite3 >= %{qtver}
25 Requires: Qt5WebEngine >= %{qtver}
26 Requires: Qt5Widgets >= %{qtver}
28 Requires: hicolor-icon-theme
29 Requires: python3 >= 1:3.6.1
30 Requires: python3-PyQt5 >= 5.12.0
31 Requires: python3-PyQtWebEngine
32 Requires: python3-PyYAML
33 Requires: python3-jinja2
34 Suggests: python3-adblock
35 Suggests: python3-pygments
36 Obsoletes: qutebrowser-userscripts < 2.4.0-2
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 qutebrowser is a keyboard-focused browser with a minimal GUI. It's
42 based on Python, PyQt5 and QtWebEngine and free software, licensed
43 under the GPL. It was inspired by other browsers/addons like dwb and
44 Vimperator/Pentadactyl.
46 %package userscript-add-nextcloud-bookmarks
47 Summary: qutebrowser userscript: Create bookmarks in Nextcloud's Bookmarks app
48 Group: X11/Applications/Networking
49 Requires: %{name} = %{version}-%{release}
50 Requires: python3-PyQt5
51 Requires: python3-modules
52 Requires: python3-requests
54 %description userscript-add-nextcloud-bookmarks
55 qutebrowser userscript: Create bookmarks in Nextcloud's Bookmarks app.
57 %package userscript-add-nextcloud-cookbook
58 Summary: qutebrowser userscript: Add recipes to Nextcloud's Cookbook app
59 Group: X11/Applications/Networking
60 Requires: %{name} = %{version}-%{release}
61 Requires: python3-PyQt5
62 Requires: python3-modules
63 Requires: python3-requests
65 %description userscript-add-nextcloud-cookbook
66 qutebrowser userscript: Add recipes to Nextcloud's Cookbook app.
68 %package userscript-dmenu
69 Summary: qutebrowser userscript: Pipes history, quickmarks, and URL into dmenu
70 Group: X11/Applications/Networking
71 Requires: %{name} = %{version}-%{release}
76 %description userscript-dmenu
77 qutebrowser userscript: Pipes history, quickmarks, and URL into dmenu.
79 %package userscript-format-json
80 Summary: qutebrowser userscript: Pretty prints current page's JSON code in other tab
81 Group: X11/Applications/Networking
82 Requires: %{name} = %{version}-%{release}
83 Requires: /usr/bin/pygmentize
86 %description userscript-format-json
87 qutebrowser userscript: Pretty prints current page's JSON code in
90 %package userscript-getbib
91 Summary: qutebrowser userscript: Scraping the current web page for DOIs and downloading corresponding bibtex information
92 Group: X11/Applications/Networking
93 Requires: %{name} = %{version}-%{release}
94 Requires: python3-modules
96 %description userscript-getbib
97 qutebrowser userscript: Scraping the current web page for DOIs and
98 downloading corresponding bibtex information.
100 %package userscript-keepassxc
101 Summary: qutebrowser userscript: Insert credentials from open KeepassXC database using keepassxc-browser protocol
102 Group: X11/Applications/Networking
103 Requires: %{name} = %{version}-%{release}
105 Requires: python3-PyNaCl
106 Requires: python3-modules
109 %description userscript-keepassxc
110 qutebrowser userscript: Insert credentials from open KeepassXC
111 database using keepassxc-browser protocol.
113 %package userscript-kodi
114 Summary: qutebrowser userscript: Play videos in Kodi
115 Group: X11/Applications/Networking
116 Requires: %{name} = %{version}-%{release}
121 %description userscript-kodi
122 qutebrowser userscript: Play videos in Kodi.
124 %package userscript-open-download
125 Summary: qutebrowser userscript: Opens a rofi menu with all files from the download directory and opens the selected file
126 Group: X11/Applications/Networking
127 Requires: %{name} = %{version}-%{release}
134 %description userscript-open-download
135 qutebrowser userscript: Opens a rofi menu with all files from the
136 download directory and opens the selected file.
138 %package userscript-openfeeds
139 Summary: qutebrowser userscript: Opens all links to feeds defined in the head of a site
140 Group: X11/Applications/Networking
141 Requires: %{name} = %{version}-%{release}
142 Requires: python3-bs4
143 Requires: python3-modules
145 %description userscript-openfeeds
146 qutebrowser userscript: Opens all links to feeds defined in the head
149 %package userscript-pass
150 Summary: qutebrowser userscript: Insert login information using pass
151 Group: X11/Applications/Networking
152 Requires: %{name} = %{version}-%{release}
153 Requires: password-store
154 Requires: python3-modules
155 Requires: python3-tldextract
158 %description userscript-pass
159 qutebrowser userscript: Insert login information using pass.
161 %package userscript-password-fill
162 Summary: qutebrowser userscript: Find a username/password entry and fill it with credentials
163 Group: X11/Applications/Networking
164 Requires: %{name} = %{version}-%{release}
172 %description userscript-password-fill
173 qutebrowser userscript: Find a username/password entry and fill it
174 with credentialsgiven by the configured backend (currently only pass)
175 for the current website.
177 %package userscript-qr
178 Summary: qutebrowser userscript: Show a QR code for the current webpage via qrencode
179 Group: X11/Applications/Networking
180 Requires: %{name} = %{version}-%{release}
184 %description userscript-qr
185 qutebrowser userscript: Show a QR code for the current webpage via
188 %package userscript-qutedmenu
189 Summary: qutebrowser userscript: Handle open -s && open -t with dmenu
190 Group: X11/Applications/Networking
191 Requires: %{name} = %{version}-%{release}
195 %description userscript-qutedmenu
196 qutebrowser userscript: Handle open -s && open -t with dmenu.
198 %package userscript-ripbang
199 Summary: qutebrowser userscript: Adds DuckDuckGo bang as searchengine
200 Group: X11/Applications/Networking
201 Requires: %{name} = %{version}-%{release}
202 Requires: python3-modules
203 Requires: python3-requests
205 %description userscript-ripbang
206 qutebrowser userscript: Adds DuckDuckGo bang as searchengine.
208 %package userscript-rss
209 Summary: qutebrowser userscript: Keeps track of URLs in RSS feeds and opens new ones
210 Group: X11/Applications/Networking
211 Requires: %{name} = %{version}-%{release}
215 %description userscript-rss
216 qutebrowser userscript: Keeps track of URLs in RSS feeds and opens new
219 %package userscript-taskadd
220 Summary: qutebrowser userscript: Adds a task to taskwarrior
221 Group: X11/Applications/Networking
222 Requires: %{name} = %{version}-%{release}
224 Requires: taskwarrior
226 %description userscript-taskadd
227 qutebrowser userscript: Adds a task to taskwarrior.
229 %package userscript-view-in-mpv
230 Summary: qutebrowser userscript: Views the current web page in mpv
231 Group: X11/Applications/Networking
232 Requires: %{name} = %{version}-%{release}
236 %description userscript-view-in-mpv
237 qutebrowser userscript: Views the current web page in mpv.
242 grep -r '#!.*env bash' -l . | xargs %{__sed} -i -e '1 s,#!.*env bash.*,#!/bin/bash,'
243 grep -r '#!.*env python' -l . | xargs %{__sed} -i -e '1 s,#!.*env python.*,#!%{__python3},'
244 grep -r '#!.*env node' -l . | xargs %{__sed} -i -e '1 s,#!.*env node.*,#!/usr/bin/node,'
249 %{__python3} scripts/asciidoc2html.py
252 rm -rf $RPM_BUILD_ROOT
256 %{__make} -f misc/Makefile install PYTHON=/bin/true DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix}
258 # requires unpackaged castnow (https://github.com/xat/castnow)
259 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/cast
260 # requires unpackaged Bitwarden CLI (https://bitwarden.com/help/cli/)
261 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-bitwarden
262 # requires unpackaged pykeepass (https://pypi.org/project/pykeepass/)
263 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-keepass
264 # requires unpackaged lastpass-cli (https://github.com/lastpass/lastpass-cli)
265 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-lastpass
266 # requires unpackaged python-readability or breadability
267 # (https://github.com/buriy/python-readability https://github.com/bookieio/breadability)
268 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/readability
269 # requires unpackaged node module mozilla/readability (https://github.com/mozilla/readability)
270 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/readability-js
271 # requires unpackaged stem (https://stem.torproject.org/)
272 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/tor_identity
275 rm -rf $RPM_BUILD_ROOT
278 %update_desktop_database_post
279 %update_icon_cache hicolor
282 %update_desktop_database_postun
283 %update_icon_cache hicolor
286 %defattr(644,root,root,755)
288 %attr(755,root,root) %{_bindir}/qutebrowser
289 %{py3_sitescriptdir}/qutebrowser
290 %{py3_sitescriptdir}/qutebrowser-%{version}-py*.egg-info
291 %{_desktopdir}/org.qutebrowser.qutebrowser.desktop
292 %{_iconsdir}/hicolor/*x*/apps/qutebrowser.png
293 %{_iconsdir}/hicolor/scalable/apps/qutebrowser.svg
294 %{_mandir}/man1/qutebrowser.1*
295 %{_datadir}/metainfo/org.qutebrowser.qutebrowser.appdata.xml
296 %dir %{_datadir}/qutebrowser
297 %dir %{_datadir}/qutebrowser/scripts
298 %{_datadir}/qutebrowser/scripts/*.js
299 %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.py
300 %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.sh
301 %dir %{_datadir}/qutebrowser/userscripts
303 %files userscript-add-nextcloud-bookmarks
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/add-nextcloud-bookmarks
307 %files userscript-add-nextcloud-cookbook
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/add-nextcloud-cookbook
311 %files userscript-dmenu
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/dmenu_qutebrowser
315 %files userscript-format-json
316 %defattr(644,root,root,755)
317 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/format_json
319 %files userscript-getbib
320 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/getbib
323 %files userscript-keepassxc
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qute-keepassxc
327 %files userscript-kodi
328 %defattr(644,root,root,755)
329 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/kodi
331 %files userscript-open-download
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/open_download
335 %files userscript-openfeeds
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/openfeeds
339 %files userscript-pass
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qute-pass
343 %files userscript-password-fill
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/password_fill
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qr
351 %files userscript-qutedmenu
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qutedmenu
355 %files userscript-ripbang
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/ripbang
359 %files userscript-rss
360 %defattr(644,root,root,755)
361 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/rss
363 %files userscript-taskadd
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/taskadd
367 %files userscript-view-in-mpv
368 %defattr(644,root,root,755)
369 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/view_in_mpv