]>
Commit | Line | Data |
---|---|---|
d84d613b | 1 | %define qtver 6 |
32e26500 | 2 | |
d84d613b | 3 | Summary: A keyboard-driven, vim-like browser based on PyQt6 |
fa863c6e | 4 | Name: qutebrowser |
25948862 | 5 | Version: 3.1.0 |
32e26500 | 6 | Release: 1 |
fa863c6e JP |
7 | License: GPL v3+ |
8 | Group: X11/Applications/Networking | |
32e26500 | 9 | Source0: https://github.com/qutebrowser/qutebrowser/releases/download/v%{version}/%{name}-%{version}.tar.gz |
25948862 | 10 | # Source0-md5: 6ee615bff8c109164371cdb8d43a5fb1 |
fa863c6e | 11 | URL: https://www.qutebrowser.org/ |
32e26500 | 12 | BuildRequires: python3 >= 1:3.8.0 |
fa863c6e JP |
13 | BuildRequires: python3-setuptools |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.714 | |
d84d613b JP |
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} | |
fa863c6e JP |
27 | Requires: bash |
28 | Requires: hicolor-icon-theme | |
32e26500 JP |
29 | Requires: python3 >= 1:3.8.0 |
30 | Requires: python3-modules >= 1:3.8.0 | |
d84d613b JP |
31 | Requires: python3-PyQt6 |
32 | Requires: python3-PyQt6-WebEngine | |
fa863c6e | 33 | Requires: python3-PyYAML |
b9d99a87 | 34 | Requires: python3-devel-tools |
fa863c6e | 35 | Requires: python3-jinja2 |
0744eae1 | 36 | Suggests: python3-adblock |
d8ee1b3a | 37 | Suggests: python3-pygments |
6dc836d7 | 38 | Obsoletes: qutebrowser-userscripts < 2.4.0-2 |
73c83a4c | 39 | BuildArch: noarch |
fa863c6e JP |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
6dc836d7 | 43 | qutebrowser is a keyboard-focused browser with a minimal GUI. It's |
d84d613b | 44 | based on Python, PyQt6 and QtWebEngine and free software, licensed |
fa863c6e JP |
45 | under the GPL. It was inspired by other browsers/addons like dwb and |
46 | Vimperator/Pentadactyl. | |
47 | ||
6dc836d7 JP |
48 | %package userscript-add-nextcloud-bookmarks |
49 | Summary: qutebrowser userscript: Create bookmarks in Nextcloud's Bookmarks app | |
2b91ed1b JP |
50 | Group: X11/Applications/Networking |
51 | Requires: %{name} = %{version}-%{release} | |
d84d613b | 52 | Requires: python3-PyQt6 |
6dc836d7 JP |
53 | Requires: python3-modules |
54 | Requires: python3-requests | |
2b91ed1b | 55 | |
6dc836d7 JP |
56 | %description userscript-add-nextcloud-bookmarks |
57 | qutebrowser userscript: Create bookmarks in Nextcloud's Bookmarks app. | |
58 | ||
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} | |
d84d613b | 63 | Requires: python3-PyQt6 |
6dc836d7 JP |
64 | Requires: python3-modules |
65 | Requires: python3-requests | |
66 | ||
67 | %description userscript-add-nextcloud-cookbook | |
68 | qutebrowser userscript: Add recipes to Nextcloud's Cookbook app. | |
69 | ||
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} | |
74 | Requires: dmenu | |
75 | Requires: grep | |
76 | Requires: sed | |
77 | ||
78 | %description userscript-dmenu | |
79 | qutebrowser userscript: Pipes history, quickmarks, and URL into dmenu. | |
80 | ||
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 | |
86 | Requires: jq | |
87 | ||
88 | %description userscript-format-json | |
89 | qutebrowser userscript: Pretty prints current page's JSON code in | |
90 | other tab. | |
91 | ||
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 | |
97 | ||
98 | %description userscript-getbib | |
99 | qutebrowser userscript: Scraping the current web page for DOIs and | |
100 | downloading corresponding bibtex information. | |
101 | ||
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} | |
106 | Requires: keepassxc | |
107 | Requires: python3-PyNaCl | |
108 | Requires: python3-modules | |
109 | Suggests: gnupg2 | |
110 | ||
111 | %description userscript-keepassxc | |
112 | qutebrowser userscript: Insert credentials from open KeepassXC | |
113 | database using keepassxc-browser protocol. | |
114 | ||
115 | %package userscript-kodi | |
116 | Summary: qutebrowser userscript: Play videos in Kodi | |
117 | Group: X11/Applications/Networking | |
118 | Requires: %{name} = %{version}-%{release} | |
119 | Requires: /bin/awk | |
120 | Requires: bash | |
121 | Requires: curl | |
122 | ||
123 | %description userscript-kodi | |
124 | qutebrowser userscript: Play videos in Kodi. | |
125 | ||
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} | |
130 | Requires: bash | |
131 | Requires: grep | |
132 | Requires: rofi | |
133 | Requires: sed | |
134 | Requires: xdg-utils | |
135 | ||
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. | |
139 | ||
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 | |
146 | ||
147 | %description userscript-openfeeds | |
148 | qutebrowser userscript: Opens all links to feeds defined in the head | |
149 | of a site. | |
150 | ||
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 | |
158 | Suggests: rofi | |
159 | ||
160 | %description userscript-pass | |
161 | qutebrowser userscript: Insert login information using pass. | |
162 | ||
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} | |
167 | Requires: /bin/awk | |
168 | Requires: bash | |
169 | Requires: gnupg2 | |
170 | Requires: grep | |
171 | Requires: sed | |
172 | Requires: zenity | |
173 | ||
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. | |
178 | ||
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} | |
183 | Requires: bash | |
184 | Requires: qrencode | |
185 | ||
186 | %description userscript-qr | |
187 | qutebrowser userscript: Show a QR code for the current webpage via | |
188 | qrencode. | |
189 | ||
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} | |
194 | Requires: bash | |
195 | Requires: dmenu | |
196 | ||
197 | %description userscript-qutedmenu | |
198 | qutebrowser userscript: Handle open -s && open -t with dmenu. | |
199 | ||
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 | |
206 | ||
207 | %description userscript-ripbang | |
208 | qutebrowser userscript: Adds DuckDuckGo bang as searchengine. | |
209 | ||
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} | |
214 | Requires: curl | |
215 | Requires: grep | |
216 | ||
217 | %description userscript-rss | |
218 | qutebrowser userscript: Keeps track of URLs in RSS feeds and opens new | |
219 | ones. | |
220 | ||
221 | %package userscript-taskadd | |
222 | Summary: qutebrowser userscript: Adds a task to taskwarrior | |
223 | Group: X11/Applications/Networking | |
224 | Requires: %{name} = %{version}-%{release} | |
225 | Requires: bash | |
226 | Requires: taskwarrior | |
227 | ||
228 | %description userscript-taskadd | |
229 | qutebrowser userscript: Adds a task to taskwarrior. | |
230 | ||
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} | |
235 | Requires: bash | |
236 | Requires: mpv | |
237 | ||
238 | %description userscript-view-in-mpv | |
239 | qutebrowser userscript: Views the current web page in mpv. | |
2b91ed1b | 240 | |
fa863c6e | 241 | %prep |
32e26500 | 242 | %setup -q |
fa863c6e JP |
243 | |
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},' | |
c57333cf | 246 | grep -r '#!.*env node' -l . | xargs %{__sed} -i -e '1 s,#!.*env node.*,#!/usr/bin/node,' |
fa863c6e JP |
247 | |
248 | %build | |
249 | %py3_build | |
d4bfccd1 | 250 | |
fa863c6e JP |
251 | %install |
252 | rm -rf $RPM_BUILD_ROOT | |
253 | ||
254 | %py3_install | |
255 | ||
256 | %{__make} -f misc/Makefile install PYTHON=/bin/true DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} | |
257 | ||
32e26500 JP |
258 | # requires unpackaged 1password-cli (https://developer.1password.com/docs/cli/) |
259 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/qutebrowser/userscripts/qute-1pass | |
6dc836d7 JP |
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 | |
275 | ||
fa863c6e JP |
276 | %clean |
277 | rm -rf $RPM_BUILD_ROOT | |
278 | ||
279 | %post | |
280 | %update_desktop_database_post | |
281 | %update_icon_cache hicolor | |
282 | ||
283 | %postun | |
284 | %update_desktop_database_postun | |
285 | %update_icon_cache hicolor | |
286 | ||
287 | %files | |
288 | %defattr(644,root,root,755) | |
289 | %doc README.asciidoc | |
290 | %attr(755,root,root) %{_bindir}/qutebrowser | |
291 | %{py3_sitescriptdir}/qutebrowser | |
292 | %{py3_sitescriptdir}/qutebrowser-%{version}-py*.egg-info | |
24f090dc | 293 | %{_desktopdir}/org.qutebrowser.qutebrowser.desktop |
fa863c6e JP |
294 | %{_iconsdir}/hicolor/*x*/apps/qutebrowser.png |
295 | %{_iconsdir}/hicolor/scalable/apps/qutebrowser.svg | |
296 | %{_mandir}/man1/qutebrowser.1* | |
fdaa2be6 | 297 | %{_datadir}/metainfo/org.qutebrowser.qutebrowser.appdata.xml |
fa863c6e JP |
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 | |
6dc836d7 | 303 | %dir %{_datadir}/qutebrowser/userscripts |
2b91ed1b | 304 | |
6dc836d7 | 305 | %files userscript-add-nextcloud-bookmarks |
2b91ed1b | 306 | %defattr(644,root,root,755) |
6dc836d7 JP |
307 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/add-nextcloud-bookmarks |
308 | ||
309 | %files userscript-add-nextcloud-cookbook | |
310 | %defattr(644,root,root,755) | |
311 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/add-nextcloud-cookbook | |
312 | ||
313 | %files userscript-dmenu | |
314 | %defattr(644,root,root,755) | |
315 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/dmenu_qutebrowser | |
316 | ||
317 | %files userscript-format-json | |
318 | %defattr(644,root,root,755) | |
319 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/format_json | |
320 | ||
321 | %files userscript-getbib | |
322 | %defattr(644,root,root,755) | |
323 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/getbib | |
324 | ||
325 | %files userscript-keepassxc | |
326 | %defattr(644,root,root,755) | |
327 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qute-keepassxc | |
328 | ||
329 | %files userscript-kodi | |
330 | %defattr(644,root,root,755) | |
331 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/kodi | |
332 | ||
333 | %files userscript-open-download | |
334 | %defattr(644,root,root,755) | |
335 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/open_download | |
336 | ||
337 | %files userscript-openfeeds | |
338 | %defattr(644,root,root,755) | |
339 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/openfeeds | |
340 | ||
341 | %files userscript-pass | |
342 | %defattr(644,root,root,755) | |
343 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qute-pass | |
344 | ||
345 | %files userscript-password-fill | |
346 | %defattr(644,root,root,755) | |
347 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/password_fill | |
348 | ||
349 | %files userscript-qr | |
350 | %defattr(644,root,root,755) | |
351 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qr | |
352 | ||
353 | %files userscript-qutedmenu | |
354 | %defattr(644,root,root,755) | |
355 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/qutedmenu | |
356 | ||
357 | %files userscript-ripbang | |
358 | %defattr(644,root,root,755) | |
359 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/ripbang | |
360 | ||
361 | %files userscript-rss | |
362 | %defattr(644,root,root,755) | |
363 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/rss | |
364 | ||
365 | %files userscript-taskadd | |
366 | %defattr(644,root,root,755) | |
367 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/taskadd | |
368 | ||
369 | %files userscript-view-in-mpv | |
370 | %defattr(644,root,root,755) | |
371 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/view_in_mpv |