- Use upstream Makefile to install
* Package scripts and manpage - Package AppStream metadata OBS-URL: https://build.opensuse.org/package/show/network/qutebrowser?expand=0&rev=35
This commit is contained in:
parent
9e86249800
commit
2b3097e09e
@ -1,6 +1,9 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri May 4 10:29:52 UTC 2018 - 9+suse@cirno.systems
|
Fri May 4 10:29:52 UTC 2018 - 9+suse@cirno.systems
|
||||||
|
|
||||||
|
- Use upstream Makefile to install
|
||||||
|
* Package scripts and manpage
|
||||||
|
- Package AppStream metadata
|
||||||
- Update to version 1.3.0:
|
- Update to version 1.3.0:
|
||||||
Added:
|
Added:
|
||||||
* New :scroll-to-anchor command to scroll to an anchor in the
|
* New :scroll-to-anchor command to scroll to an anchor in the
|
||||||
|
@ -22,10 +22,11 @@ Release: 0
|
|||||||
Summary: Keyboard-driven vim-like browser on Qt5
|
Summary: Keyboard-driven vim-like browser on Qt5
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
Group: Productivity/Networking/Web/Browsers
|
Group: Productivity/Networking/Web/Browsers
|
||||||
Url: https://qutebrowser.org/
|
URL: https://qutebrowser.org/
|
||||||
Source: https://github.com/The-Compiler/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
Source: https://github.com/The-Compiler/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
||||||
Source1: https://github.com/The-Compiler/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
|
Source1: https://github.com/The-Compiler/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
|
BuildRequires: asciidoc
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: python3-Jinja2
|
BuildRequires: python3-Jinja2
|
||||||
@ -59,26 +60,20 @@ It's based on Python, PyQt5 and QtWebKit and is free software.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
sed -i '1d' %{name}/__main__.py
|
sed -i '1d' %{name}/__main__.py
|
||||||
touch -r qutebrowser/browser/network/__init__.py \
|
sed -i 's,^#!/usr/bin/env python,#!/usr/bin/python,;s,^#!/usr/bin/env bash,#!/bin/bash,' \
|
||||||
qutebrowser/browser/webkit/network/__init__.py
|
misc/userscripts/* \
|
||||||
|
scripts/*.py
|
||||||
|
mv misc/Makefile .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python3 setup.py build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python3 setup.py install \
|
%make_install PREFIX=%{_prefix}
|
||||||
--root=%{buildroot} --prefix=%{_prefix}
|
install -d %{buildroot}%{_datadir}/appdata
|
||||||
|
install -m644 misc/%{name}.appdata.xml %{buildroot}%{_datadir}/appdata
|
||||||
install -Dpm 0644 misc/%{name}.desktop \
|
|
||||||
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
||||||
|
|
||||||
for size in 16 24 32 48 64 128 256; do
|
|
||||||
install -Dpm 0644 "icons/%{name}-${size}x${size}.png" \
|
|
||||||
"%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png"
|
|
||||||
done
|
|
||||||
install -Dpm 0644 icons/%{name}.svg \
|
|
||||||
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
||||||
|
|
||||||
|
chmod -x %{buildroot}%{_datadir}/%{name}/scripts/cycle-inputs.js \
|
||||||
|
%{buildroot}%{_datadir}/%{name}/scripts/utils.py
|
||||||
rm %{buildroot}%{python3_sitelib}/%{name}/git-commit-id
|
rm %{buildroot}%{python3_sitelib}/%{name}/git-commit-id
|
||||||
%fdupes %{buildroot}%{python3_sitelib}/
|
%fdupes %{buildroot}%{python3_sitelib}/
|
||||||
|
|
||||||
@ -100,5 +95,8 @@ rm %{buildroot}%{python3_sitelib}/%{name}/git-commit-id
|
|||||||
%{python3_sitelib}/%{name}-*
|
%{python3_sitelib}/%{name}-*
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
||||||
|
%{_datadir}/appdata/%{name}.appdata.xml
|
||||||
|
%{_datadir}/%{name}
|
||||||
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user