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