]> git.pld-linux.org Git - packages/qutebrowser.git/blob - qutebrowser.spec
build help files; rel 2
[packages/qutebrowser.git] / qutebrowser.spec
1 %define         qtver   5.7.1
2 Summary:        A keyboard-driven, vim-like browser based on PyQt5
3 Name:           qutebrowser
4 Version:        1.5.1
5 Release:        2
6 License:        GPL v3+
7 Group:          X11/Applications/Networking
8 Source0:        https://github.com/qutebrowser/qutebrowser/archive/v%{version}.tar.gz
9 # Source0-md5:  c32578e1e95ac29a485929b17acd7344
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}
19 Requires:       Qt5WebEngine >= %{qtver}
20 Requires:       bash
21 Requires:       hicolor-icon-theme
22 Requires:       python3 >= 3.6
23 Requires:       python3-PyQt5 >= 5.7.0
24 Requires:       python3-PyYAML
25 Requires:       python3-attrs
26 Requires:       python3-jinja2
27 Requires:       python3-pyPEG2
28 Requires:       python3-pygments
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 qutebrowser is a keyboard-focused browser with a minimal GUI. It’s
33 based on Python, PyQt5 and QtWebEngine and free software, licensed
34 under the GPL. It was inspired by other browsers/addons like dwb and
35 Vimperator/Pentadactyl.
36
37 %prep
38 %setup -q
39
40 grep -r '#!.*env bash' -l . | xargs %{__sed} -i -e '1 s,#!.*env bash.*,#!/bin/bash,'
41 grep -r '#!.*env python' -l . | xargs %{__sed} -i -e '1 s,#!.*env python.*,#!%{__python3},'
42
43 %build
44 %py3_build
45
46 %{__python3} scripts/asciidoc2html.py
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %py3_install
52
53 %{__make} -f misc/Makefile install PYTHON=/bin/true DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 %update_desktop_database_post
60 %update_icon_cache hicolor
61
62 %postun
63 %update_desktop_database_postun
64 %update_icon_cache hicolor
65
66 %files
67 %defattr(644,root,root,755)
68 %doc README.asciidoc
69 %attr(755,root,root) %{_bindir}/qutebrowser
70 %{py3_sitescriptdir}/qutebrowser
71 %{py3_sitescriptdir}/qutebrowser-%{version}-py*.egg-info
72 %{_desktopdir}/qutebrowser.desktop
73 %{_iconsdir}/hicolor/*x*/apps/qutebrowser.png
74 %{_iconsdir}/hicolor/scalable/apps/qutebrowser.svg
75 %{_mandir}/man1/qutebrowser.1*
76 %{_datadir}/metainfo/qutebrowser.appdata.xml
77 %dir %{_datadir}/qutebrowser
78 %dir %{_datadir}/qutebrowser/scripts
79 %{_datadir}/qutebrowser/scripts/*.js
80 %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.py
81 %attr(755,root,root) %{_datadir}/qutebrowser/scripts/*.sh
82 %dir %{_datadir}/qutebrowser/userscripts
83 %attr(755,root,root) %{_datadir}/qutebrowser/userscripts/*
This page took 0.028999 seconds and 3 git commands to generate.