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