]>
Commit | Line | Data |
---|---|---|
fa863c6e JP |
1 | %define qtver 5.7.1 |
2 | Summary: A keyboard-driven, vim-like browser based on PyQt5 | |
3 | Name: qutebrowser | |
67ea177e JP |
4 | Version: 1.8.2 |
5 | Release: 1 | |
fa863c6e JP |
6 | License: GPL v3+ |
7 | Group: X11/Applications/Networking | |
8 | Source0: https://github.com/qutebrowser/qutebrowser/archive/v%{version}.tar.gz | |
67ea177e | 9 | # Source0-md5: 8b278e10c8be047e13586fd1c7aaa092 |
fa863c6e JP |
10 | URL: https://www.qutebrowser.org/ |
11 | BuildRequires: asciidoc | |
12 | BuildRequires: python3 >= 3.6 | |
13 | BuildRequires: python3-setuptools | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.714 | |
16 | Requires: Qt5Core >= %{qtver} | |
17 | Requires: Qt5OpenGL >= %{qtver} | |
18 | Requires: Qt5Sql >= %{qtver} | |
2ab089c2 | 19 | Requires: Qt5Sql-sqldriver-sqlite3 >= %{qtver} |
fa863c6e JP |
20 | Requires: Qt5WebEngine >= %{qtver} |
21 | Requires: bash | |
22 | Requires: hicolor-icon-theme | |
23 | Requires: python3 >= 3.6 | |
24 | Requires: python3-PyQt5 >= 5.7.0 | |
25 | Requires: python3-PyYAML | |
26 | Requires: python3-attrs | |
27 | Requires: python3-jinja2 | |
28 | Requires: python3-pyPEG2 | |
29 | Requires: python3-pygments | |
73c83a4c | 30 | BuildArch: noarch |
fa863c6e JP |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | qutebrowser is a keyboard-focused browser with a minimal GUI. It’s | |
35 | based on Python, PyQt5 and QtWebEngine and free software, licensed | |
36 | under the GPL. It was inspired by other browsers/addons like dwb and | |
37 | Vimperator/Pentadactyl. | |
38 | ||
39 | %prep | |
40 | %setup -q | |
41 | ||
42 | grep -r '#!.*env bash' -l . | xargs %{__sed} -i -e '1 s,#!.*env bash.*,#!/bin/bash,' | |
43 | grep -r '#!.*env python' -l . | xargs %{__sed} -i -e '1 s,#!.*env python.*,#!%{__python3},' | |
44 | ||
45 | %build | |
46 | %py3_build | |
d4bfccd1 JP |
47 | |
48 | %{__python3} scripts/asciidoc2html.py | |
fa863c6e JP |
49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %py3_install | |
54 | ||
55 | %{__make} -f misc/Makefile install PYTHON=/bin/true DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %post | |
61 | %update_desktop_database_post | |
62 | %update_icon_cache hicolor | |
63 | ||
64 | %postun | |
65 | %update_desktop_database_postun | |
66 | %update_icon_cache hicolor | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc README.asciidoc | |
71 | %attr(755,root,root) %{_bindir}/qutebrowser | |
72 | %{py3_sitescriptdir}/qutebrowser | |
73 | %{py3_sitescriptdir}/qutebrowser-%{version}-py*.egg-info | |
24f090dc | 74 | %{_desktopdir}/org.qutebrowser.qutebrowser.desktop |
fa863c6e JP |
75 | %{_iconsdir}/hicolor/*x*/apps/qutebrowser.png |
76 | %{_iconsdir}/hicolor/scalable/apps/qutebrowser.svg | |
77 | %{_mandir}/man1/qutebrowser.1* | |
fdaa2be6 | 78 | %{_datadir}/metainfo/org.qutebrowser.qutebrowser.appdata.xml |
fa863c6e JP |
79 | %dir %{_datadir}/qutebrowser |
80 | %dir %{_datadir}/qutebrowser/scripts | |
81 | %{_datadir}/qutebrowser/scripts/*.js | |
82 | %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.py | |
83 | %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.sh | |
84 | %dir %{_datadir}/qutebrowser/userscripts | |
85 | %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/* |