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-devel-tools
34 Requires: python3-jinja2
35 Suggests: python3-adblock
36 Suggests: python3-pygments
37 Obsoletes: qutebrowser-userscripts < 2.4.0-2
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 qutebrowser is a keyboard-focused browser with a minimal GUI. It's
43 based on Python, PyQt5 and QtWebEngine and free software, licensed
44 under the GPL. It was inspired by other browsers/addons like dwb and
45 Vimperator/Pentadactyl.
47 %package userscript-add-nextcloud-bookmarks
48 Summary: qutebrowser userscript: Create bookmarks in Nextcloud's Bookmarks app
49 Group: X11/Applications/Networking
50 Requires: %{name} = %{version}-%{release}
51 Requires: python3-PyQt5
52 Requires: python3-modules
53 Requires: python3-requests
55 %description userscript-add-nextcloud-bookmarks
56 qutebrowser userscript: Create bookmarks in Nextcloud's Bookmarks app.
58 %package userscript-add-nextcloud-cookbook
59 Summary: qutebrowser userscript: Add recipes to Nextcloud's Cookbook app
60 Group: X11/Applications/Networking
61 Requires: %{name} = %{version}-%{release}
62 Requires: python3-PyQt5
63 Requires: python3-modules
64 Requires: python3-requests
66 %description userscript-add-nextcloud-cookbook
67 qutebrowser userscript: Add recipes to Nextcloud's Cookbook app.
69 %package userscript-dmenu
70 Summary: qutebrowser userscript: Pipes history, quickmarks, and URL into dmenu
71 Group: X11/Applications/Networking
72 Requires: %{name} = %{version}-%{release}
77 %description userscript-dmenu
78 qutebrowser userscript: Pipes history, quickmarks, and URL into dmenu.
80 %package userscript-format-json
81 Summary: qutebrowser userscript: Pretty prints current page's JSON code in other tab
82 Group: X11/Applications/Networking
83 Requires: %{name} = %{version}-%{release}
84 Requires: /usr/bin/pygmentize
87 %description userscript-format-json
88 qutebrowser userscript: Pretty prints current page's JSON code in
91 %package userscript-getbib
92 Summary: qutebrowser userscript: Scraping the current web page for DOIs and downloading corresponding bibtex information
93 Group: X11/Applications/Networking
94 Requires: %{name} = %{version}-%{release}
95 Requires: python3-modules
97 %description userscript-getbib
98 qutebrowser userscript: Scraping the current web page for DOIs and
99 downloading corresponding bibtex information.
101 %package userscript-keepassxc
102 Summary: qutebrowser userscript: Insert credentials from open KeepassXC database using keepassxc-browser protocol
103 Group: X11/Applications/Networking
104 Requires: %{name} = %{version}-%{release}
106 Requires: python3-PyNaCl
107 Requires: python3-modules
110 %description userscript-keepassxc
111 qutebrowser userscript: Insert credentials from open KeepassXC
112 database using keepassxc-browser protocol.
114 %package userscript-kodi
115 Summary: qutebrowser userscript: Play videos in Kodi
116 Group: X11/Applications/Networking
117 Requires: %{name} = %{version}-%{release}
122 %description userscript-kodi
123 qutebrowser userscript: Play videos in Kodi.
125 %package userscript-open-download
126 Summary: qutebrowser userscript: Opens a rofi menu with all files from the download directory and opens the selected file
127 Group: X11/Applications/Networking
128 Requires: %{name} = %{version}-%{release}
135 %description userscript-open-download
136 qutebrowser userscript: Opens a rofi menu with all files from the
137 download directory and opens the selected file.
139 %package userscript-openfeeds
140 Summary: qutebrowser userscript: Opens all links to feeds defined in the head of a site
141 Group: X11/Applications/Networking
142 Requires: %{name} = %{version}-%{release}
143 Requires: python3-bs4
144 Requires: python3-modules
146 %description userscript-openfeeds
147 qutebrowser userscript: Opens all links to feeds defined in the head
150 %package userscript-pass
151 Summary: qutebrowser userscript: Insert login information using pass
152 Group: X11/Applications/Networking
153 Requires: %{name} = %{version}-%{release}
154 Requires: password-store
155 Requires: python3-modules
156 Requires: python3-tldextract
159 %description userscript-pass
160 qutebrowser userscript: Insert login information using pass.
162 %package userscript-password-fill
163 Summary: qutebrowser userscript: Find a username/password entry and fill it with credentials
164 Group: X11/Applications/Networking
165 Requires: %{name} = %{version}-%{release}
173 %description userscript-password-fill
174 qutebrowser userscript: Find a username/password entry and fill it
175 with credentialsgiven by the configured backend (currently only pass)
176 for the current website.
178 %package userscript-qr
179 Summary: qutebrowser userscript: Show a QR code for the current webpage via qrencode
180 Group: X11/Applications/Networking
181 Requires: %{name} = %{version}-%{release}
185 %description userscript-qr
186 qutebrowser userscript: Show a QR code for the current webpage via
189 %package userscript-qutedmenu
190 Summary: qutebrowser userscript: Handle open -s && open -t with dmenu
191 Group: X11/Applications/Networking
192 Requires: %{name} = %{version}-%{release}
196 %description userscript-qutedmenu
197 qutebrowser userscript: Handle open -s && open -t with dmenu.
199 %package userscript-ripbang
200 Summary: qutebrowser userscript: Adds DuckDuckGo bang as searchengine
201 Group: X11/Applications/Networking
202 Requires: %{name} = %{version}-%{release}
203 Requires: python3-modules
204 Requires: python3-requests
206 %description userscript-ripbang
207 qutebrowser userscript: Adds DuckDuckGo bang as searchengine.
209 %package userscript-rss
210 Summary: qutebrowser userscript: Keeps track of URLs in RSS feeds and opens new ones
211 Group: X11/Applications/Networking
212 Requires: %{name} = %{version}-%{release}
216 %description userscript-rss
217 qutebrowser userscript: Keeps track of URLs in RSS feeds and opens new
220 %package userscript-taskadd
221 Summary: qutebrowser userscript: Adds a task to taskwarrior
222 Group: X11/Applications/Networking
223 Requires: %{name} = %{version}-%{release}
225 Requires: taskwarrior
227 %description userscript-taskadd
228 qutebrowser userscript: Adds a task to taskwarrior.
230 %package userscript-view-in-mpv
231 Summary: qutebrowser userscript: Views the current web page in mpv
232 Group: X11/Applications/Networking
233 Requires: %{name} = %{version}-%{release}
237 %description userscript-view-in-mpv
238 qutebrowser userscript: Views the current web page in mpv.
243 grep -r '#!.*env bash' -l . | xargs %{__sed} -i -e '1 s,#!.*env bash.*,#!/bin/bash,'
244 grep -r '#!.*env python' -l . | xargs %{__sed} -i -e '1 s,#!.*env python.*,#!%{__python3},'
245 grep -r '#!.*env node' -l . | xargs %{__sed} -i -e '1 s,#!.*env node.*,#!/usr/bin/node,'
250 %{__python3} scripts/asciidoc2html.py
253 rm -rf $RPM_BUILD_ROOT
257 %{__make} -f misc/Makefile install PYTHON=/bin/true DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix}
259 # requires unpackaged castnow (https://github.com/xat/castnow)
260 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/cast
261 # requires unpackaged Bitwarden CLI (https://bitwarden.com/help/cli/)
262 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-bitwarden
263 # requires unpackaged pykeepass (https://pypi.org/project/pykeepass/)
264 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-keepass
265 # requires unpackaged lastpass-cli (https://github.com/lastpass/lastpass-cli)
266 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-lastpass
267 # requires unpackaged python-readability or breadability
268 # (https://github.com/buriy/python-readability https://github.com/bookieio/breadability)
269 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/readability
270 # requires unpackaged node module mozilla/readability (https://github.com/mozilla/readability)
271 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/readability-js
272 # requires unpackaged stem (https://stem.torproject.org/)
273 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/tor_identity
276 rm -rf $RPM_BUILD_ROOT
279 %update_desktop_database_post
280 %update_icon_cache hicolor
283 %update_desktop_database_postun
284 %update_icon_cache hicolor
287 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_bindir}/qutebrowser
290 %{py3_sitescriptdir}/qutebrowser
291 %{py3_sitescriptdir}/qutebrowser-%{version}-py*.egg-info
292 %{_desktopdir}/org.qutebrowser.qutebrowser.desktop
293 %{_iconsdir}/hicolor/*x*/apps/qutebrowser.png
294 %{_iconsdir}/hicolor/scalable/apps/qutebrowser.svg
295 %{_mandir}/man1/qutebrowser.1*
296 %{_datadir}/metainfo/org.qutebrowser.qutebrowser.appdata.xml
297 %dir %{_datadir}/qutebrowser
298 %dir %{_datadir}/qutebrowser/scripts
299 %{_datadir}/qutebrowser/scripts/*.js
300 %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.py
301 %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.sh
302 %dir %{_datadir}/qutebrowser/userscripts
304 %files userscript-add-nextcloud-bookmarks
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/add-nextcloud-bookmarks
308 %files userscript-add-nextcloud-cookbook
309 %defattr(644,root,root,755)
310 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/add-nextcloud-cookbook
312 %files userscript-dmenu
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/dmenu_qutebrowser
316 %files userscript-format-json
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/format_json
320 %files userscript-getbib
321 %defattr(644,root,root,755)
322 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/getbib
324 %files userscript-keepassxc
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qute-keepassxc
328 %files userscript-kodi
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/kodi
332 %files userscript-open-download
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/open_download
336 %files userscript-openfeeds
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/openfeeds
340 %files userscript-pass
341 %defattr(644,root,root,755)
342 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qute-pass
344 %files userscript-password-fill
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/password_fill
349 %defattr(644,root,root,755)
350 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qr
352 %files userscript-qutedmenu
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qutedmenu
356 %files userscript-ripbang
357 %defattr(644,root,root,755)
358 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/ripbang
360 %files userscript-rss
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/rss
364 %files userscript-taskadd
365 %defattr(644,root,root,755)
366 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/taskadd
368 %files userscript-view-in-mpv
369 %defattr(644,root,root,755)
370 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/view_in_mpv