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