3 Summary: A keyboard-driven, vim-like browser based on PyQt6
8 Group: X11/Applications/Networking
9 Source0: https://github.com/qutebrowser/qutebrowser/releases/download/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: 6ee615bff8c109164371cdb8d43a5fb1
11 URL: https://www.qutebrowser.org/
12 BuildRequires: python3 >= 1:3.8.0
13 BuildRequires: python3-setuptools
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.714
16 Requires: Qt6Core >= %{qtver}
17 Requires: Qt6DBus >= %{qtver}
18 Requires: Qt6Gui >= %{qtver}
19 Requires: Qt6Network >= %{qtver}
20 Requires: Qt6OpenGL >= %{qtver}
21 Requires: Qt6PrintSupport >= %{qtver}
22 Requires: Qt6Qml >= %{qtver}
23 Requires: Qt6Sql >= %{qtver}
24 Requires: Qt6Sql-sqldriver-sqlite3 >= %{qtver}
25 Requires: Qt6WebEngine >= %{qtver}
26 Requires: Qt6Widgets >= %{qtver}
28 Requires: hicolor-icon-theme
29 Requires: python3 >= 1:3.8.0
30 Requires: python3-modules >= 1:3.8.0
31 Requires: python3-PyQt6
32 Requires: python3-PyQt6-WebEngine
33 Requires: python3-PyYAML
34 Requires: python3-devel-tools
35 Requires: python3-jinja2
36 Suggests: python3-adblock
37 Suggests: python3-pygments
38 Obsoletes: qutebrowser-userscripts < 2.4.0-2
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 qutebrowser is a keyboard-focused browser with a minimal GUI. It's
44 based on Python, PyQt6 and QtWebEngine and free software, licensed
45 under the GPL. It was inspired by other browsers/addons like dwb and
46 Vimperator/Pentadactyl.
48 %package userscript-add-nextcloud-bookmarks
49 Summary: qutebrowser userscript: Create bookmarks in Nextcloud's Bookmarks app
50 Group: X11/Applications/Networking
51 Requires: %{name} = %{version}-%{release}
52 Requires: python3-PyQt6
53 Requires: python3-modules
54 Requires: python3-requests
56 %description userscript-add-nextcloud-bookmarks
57 qutebrowser userscript: Create bookmarks in Nextcloud's Bookmarks app.
59 %package userscript-add-nextcloud-cookbook
60 Summary: qutebrowser userscript: Add recipes to Nextcloud's Cookbook app
61 Group: X11/Applications/Networking
62 Requires: %{name} = %{version}-%{release}
63 Requires: python3-PyQt6
64 Requires: python3-modules
65 Requires: python3-requests
67 %description userscript-add-nextcloud-cookbook
68 qutebrowser userscript: Add recipes to Nextcloud's Cookbook app.
70 %package userscript-dmenu
71 Summary: qutebrowser userscript: Pipes history, quickmarks, and URL into dmenu
72 Group: X11/Applications/Networking
73 Requires: %{name} = %{version}-%{release}
78 %description userscript-dmenu
79 qutebrowser userscript: Pipes history, quickmarks, and URL into dmenu.
81 %package userscript-format-json
82 Summary: qutebrowser userscript: Pretty prints current page's JSON code in other tab
83 Group: X11/Applications/Networking
84 Requires: %{name} = %{version}-%{release}
85 Requires: /usr/bin/pygmentize
88 %description userscript-format-json
89 qutebrowser userscript: Pretty prints current page's JSON code in
92 %package userscript-getbib
93 Summary: qutebrowser userscript: Scraping the current web page for DOIs and downloading corresponding bibtex information
94 Group: X11/Applications/Networking
95 Requires: %{name} = %{version}-%{release}
96 Requires: python3-modules
98 %description userscript-getbib
99 qutebrowser userscript: Scraping the current web page for DOIs and
100 downloading corresponding bibtex information.
102 %package userscript-keepassxc
103 Summary: qutebrowser userscript: Insert credentials from open KeepassXC database using keepassxc-browser protocol
104 Group: X11/Applications/Networking
105 Requires: %{name} = %{version}-%{release}
107 Requires: python3-PyNaCl
108 Requires: python3-modules
111 %description userscript-keepassxc
112 qutebrowser userscript: Insert credentials from open KeepassXC
113 database using keepassxc-browser protocol.
115 %package userscript-kodi
116 Summary: qutebrowser userscript: Play videos in Kodi
117 Group: X11/Applications/Networking
118 Requires: %{name} = %{version}-%{release}
123 %description userscript-kodi
124 qutebrowser userscript: Play videos in Kodi.
126 %package userscript-open-download
127 Summary: qutebrowser userscript: Opens a rofi menu with all files from the download directory and opens the selected file
128 Group: X11/Applications/Networking
129 Requires: %{name} = %{version}-%{release}
136 %description userscript-open-download
137 qutebrowser userscript: Opens a rofi menu with all files from the
138 download directory and opens the selected file.
140 %package userscript-openfeeds
141 Summary: qutebrowser userscript: Opens all links to feeds defined in the head of a site
142 Group: X11/Applications/Networking
143 Requires: %{name} = %{version}-%{release}
144 Requires: python3-bs4
145 Requires: python3-modules
147 %description userscript-openfeeds
148 qutebrowser userscript: Opens all links to feeds defined in the head
151 %package userscript-pass
152 Summary: qutebrowser userscript: Insert login information using pass
153 Group: X11/Applications/Networking
154 Requires: %{name} = %{version}-%{release}
155 Requires: password-store
156 Requires: python3-modules
157 Requires: python3-tldextract
160 %description userscript-pass
161 qutebrowser userscript: Insert login information using pass.
163 %package userscript-password-fill
164 Summary: qutebrowser userscript: Find a username/password entry and fill it with credentials
165 Group: X11/Applications/Networking
166 Requires: %{name} = %{version}-%{release}
174 %description userscript-password-fill
175 qutebrowser userscript: Find a username/password entry and fill it
176 with credentialsgiven by the configured backend (currently only pass)
177 for the current website.
179 %package userscript-qr
180 Summary: qutebrowser userscript: Show a QR code for the current webpage via qrencode
181 Group: X11/Applications/Networking
182 Requires: %{name} = %{version}-%{release}
186 %description userscript-qr
187 qutebrowser userscript: Show a QR code for the current webpage via
190 %package userscript-qutedmenu
191 Summary: qutebrowser userscript: Handle open -s && open -t with dmenu
192 Group: X11/Applications/Networking
193 Requires: %{name} = %{version}-%{release}
197 %description userscript-qutedmenu
198 qutebrowser userscript: Handle open -s && open -t with dmenu.
200 %package userscript-ripbang
201 Summary: qutebrowser userscript: Adds DuckDuckGo bang as searchengine
202 Group: X11/Applications/Networking
203 Requires: %{name} = %{version}-%{release}
204 Requires: python3-modules
205 Requires: python3-requests
207 %description userscript-ripbang
208 qutebrowser userscript: Adds DuckDuckGo bang as searchengine.
210 %package userscript-rss
211 Summary: qutebrowser userscript: Keeps track of URLs in RSS feeds and opens new ones
212 Group: X11/Applications/Networking
213 Requires: %{name} = %{version}-%{release}
217 %description userscript-rss
218 qutebrowser userscript: Keeps track of URLs in RSS feeds and opens new
221 %package userscript-taskadd
222 Summary: qutebrowser userscript: Adds a task to taskwarrior
223 Group: X11/Applications/Networking
224 Requires: %{name} = %{version}-%{release}
226 Requires: taskwarrior
228 %description userscript-taskadd
229 qutebrowser userscript: Adds a task to taskwarrior.
231 %package userscript-view-in-mpv
232 Summary: qutebrowser userscript: Views the current web page in mpv
233 Group: X11/Applications/Networking
234 Requires: %{name} = %{version}-%{release}
238 %description userscript-view-in-mpv
239 qutebrowser userscript: Views the current web page in mpv.
244 grep -r '#!.*env bash' -l . | xargs %{__sed} -i -e '1 s,#!.*env bash.*,#!/bin/bash,'
245 grep -r '#!.*env python' -l . | xargs %{__sed} -i -e '1 s,#!.*env python.*,#!%{__python3},'
246 grep -r '#!.*env node' -l . | xargs %{__sed} -i -e '1 s,#!.*env node.*,#!/usr/bin/node,'
252 rm -rf $RPM_BUILD_ROOT
256 %{__make} -f misc/Makefile install PYTHON=/bin/true DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix}
258 # requires unpackaged 1password-cli (https://developer.1password.com/docs/cli/)
259 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-1pass
260 # requires unpackaged castnow (https://github.com/xat/castnow)
261 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/cast
262 # requires unpackaged Bitwarden CLI (https://bitwarden.com/help/cli/)
263 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-bitwarden
264 # requires unpackaged pykeepass (https://pypi.org/project/pykeepass/)
265 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-keepass
266 # requires unpackaged lastpass-cli (https://github.com/lastpass/lastpass-cli)
267 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-lastpass
268 # requires unpackaged python-readability or breadability
269 # (https://github.com/buriy/python-readability https://github.com/bookieio/breadability)
270 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/readability
271 # requires unpackaged node module mozilla/readability (https://github.com/mozilla/readability)
272 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/readability-js
273 # requires unpackaged stem (https://stem.torproject.org/)
274 %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/tor_identity
277 rm -rf $RPM_BUILD_ROOT
280 %update_desktop_database_post
281 %update_icon_cache hicolor
284 %update_desktop_database_postun
285 %update_icon_cache hicolor
288 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_bindir}/qutebrowser
291 %{py3_sitescriptdir}/qutebrowser
292 %{py3_sitescriptdir}/qutebrowser-%{version}-py*.egg-info
293 %{_desktopdir}/org.qutebrowser.qutebrowser.desktop
294 %{_iconsdir}/hicolor/*x*/apps/qutebrowser.png
295 %{_iconsdir}/hicolor/scalable/apps/qutebrowser.svg
296 %{_mandir}/man1/qutebrowser.1*
297 %{_datadir}/metainfo/org.qutebrowser.qutebrowser.appdata.xml
298 %dir %{_datadir}/qutebrowser
299 %dir %{_datadir}/qutebrowser/scripts
300 %{_datadir}/qutebrowser/scripts/*.js
301 %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.py
302 %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.sh
303 %dir %{_datadir}/qutebrowser/userscripts
305 %files userscript-add-nextcloud-bookmarks
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/add-nextcloud-bookmarks
309 %files userscript-add-nextcloud-cookbook
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/add-nextcloud-cookbook
313 %files userscript-dmenu
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/dmenu_qutebrowser
317 %files userscript-format-json
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/format_json
321 %files userscript-getbib
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/getbib
325 %files userscript-keepassxc
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qute-keepassxc
329 %files userscript-kodi
330 %defattr(644,root,root,755)
331 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/kodi
333 %files userscript-open-download
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/open_download
337 %files userscript-openfeeds
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/openfeeds
341 %files userscript-pass
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qute-pass
345 %files userscript-password-fill
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/password_fill
350 %defattr(644,root,root,755)
351 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qr
353 %files userscript-qutedmenu
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qutedmenu
357 %files userscript-ripbang
358 %defattr(644,root,root,755)
359 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/ripbang
361 %files userscript-rss
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/rss
365 %files userscript-taskadd
366 %defattr(644,root,root,755)
367 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/taskadd
369 %files userscript-view-in-mpv
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/view_in_mpv