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