From ad2445a3983c127085301f4d58f484cf4a5f18c2 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 27 Nov 2018 09:01:22 +0000 Subject: [PATCH] - Add: kitty-no-docs.patch: There is no python-sphincs >= 1.7 for Leal 15.0. After receiving many requests for a package for this version, I decided to ship one without docs for it. OBS-URL: https://build.opensuse.org/package/show/X11:terminals/kitty?expand=0&rev=16 --- kitty-no-docs.patch | 24 ++++++++++++++++++++++++ kitty.changes | 8 ++++++++ kitty.spec | 9 +++++++++ 3 files changed, 41 insertions(+) create mode 100644 kitty-no-docs.patch diff --git a/kitty-no-docs.patch b/kitty-no-docs.patch new file mode 100644 index 0000000..1234741 --- /dev/null +++ b/kitty-no-docs.patch @@ -0,0 +1,24 @@ +There is no python-sphinx >= 1.7 for Leap 15.0. +After many requests to provide a package for Leap, I decided to ship a version +without docs. +diff -urEbwB kitty-0.12.3/setup.py kitty-0.12.3.new/setup.py +--- kitty-0.12.3/setup.py 2018-09-29 05:45:40.000000000 +0200 ++++ kitty-0.12.3.new/setup.py 2018-11-27 09:55:13.030071308 +0100 +@@ -625,8 +625,6 @@ + safe_makedirs(launcher_dir) + build_linux_launcher(args, launcher_dir, for_bundle, sh_launcher, args.for_freeze) + if not is_macos: # {{{ linux desktop gunk +- copy_man_pages(ddir) +- copy_html_docs(ddir) + icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', '256x256', 'apps') + safe_makedirs(icdir) + shutil.copy2('logo/kitty.png', icdir) +@@ -813,8 +811,6 @@ + ) + elif args.action == 'linux-package': + build(args, native_optimizations=False) +- if not os.path.exists(os.path.join(base, 'docs/_build/html')): +- run_tool(['make', 'docs']) + package(args) + elif args.action == 'osx-bundle': + build(args, native_optimizations=False) diff --git a/kitty.changes b/kitty.changes index 9be415d..1a228eb 100644 --- a/kitty.changes +++ b/kitty.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Nov 27 08:59:28 UTC 2018 - mvetter@suse.com + +- Add: kitty-no-docs.patch: + There is no python-sphincs >= 1.7 for Leal 15.0. + After receiving many requests for a package for this version, + I decided to ship one without docs for it. + ------------------------------------------------------------------- Tue Oct 23 13:48:08 UTC 2018 - mvetter@suse.com diff --git a/kitty.spec b/kitty.spec index 991ba5f..8179ff4 100644 --- a/kitty.spec +++ b/kitty.spec @@ -24,6 +24,7 @@ License: GPL-3.0-only Group: System/X11/Terminals URL: https://github.com/kovidgoyal/kitty Source: https://github.com/kovidgoyal/kitty/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: kitty-no-docs.patch BuildRequires: ImageMagick-devel BuildRequires: Mesa-libGL-devel BuildRequires: fontconfig-devel @@ -41,7 +42,9 @@ BuildRequires: pkgconfig(dbus-1) # for 'tic' BuildRequires: ncurses-devel BuildRequires: pkgconfig +%if 0%{?suse_version} > 1500 BuildRequires: python3-Sphinx >= 1.7 +%endif BuildRequires: python3-devel >= 3.5 BuildRequires: wayland-devel BuildRequires: wayland-protocols-devel @@ -55,6 +58,10 @@ bracketed paste and so on. And which can be controlled by scripts. %prep %setup -q +%if 0%{?sle_version} == 150000 && 0%{?is_opensuse} +%patch0 -p1 +%endif + find . -type f -exec sed -i "s/#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/" {} + %build @@ -74,7 +81,9 @@ python3 setup.py --verbose linux-package --prefix %{buildroot}%{_prefix} %dir %{_datadir}/icons/hicolor/256x256/ %{_datadir}/icons/hicolor/256x256/apps/ %{_datadir}/terminfo/x/xterm-kitty +%if 0%{?suse_version} > 1500 %{_mandir}/man1/kitty.1%{?ext_man} %{_datadir}/doc/kitty +%endif %changelog