- Fix build on Factory:

kitty does not properly separate build and install. We used to
  do both in the %build section. Since rpm 4.16 cleans the buildroot
  is cleaned before %install. So now we run build/install in the
  %install section

OBS-URL: https://build.opensuse.org/package/show/X11:terminals/kitty?expand=0&rev=70
This commit is contained in:
Michael Vetter 2021-04-16 12:05:52 +00:00 committed by Git OBS Bridge
parent 1d3879148c
commit f450608b06
2 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Apr 16 12:04:31 UTC 2021 - Michael Vetter <mvetter@suse.com>
- Fix build on Factory:
kitty does not properly separate build and install. We used to
do both in the %build section. Since rpm 4.16 cleans the buildroot
is cleaned before %install. So now we run build/install in the
%install section
-------------------------------------------------------------------
Mon Dec 28 12:21:25 UTC 2020 - Michael Vetter <mvetter@suse.com>

View File

@ -69,13 +69,11 @@ bracketed paste and so on, and which can be controlled by scripts.
find . -type f -exec sed -i 's@#!%{_bindir}/env python3$@#!%{_bindir}/python3@' {} +
find . -type f -exec sed -i 's@#!%{_bindir}/env python$@#!%{_bindir}/python@' {} +
%build
#tic -x -o/tmp/tmpWhatever terminfo/kitty.terminfo
python3 setup.py --verbose linux-package --prefix %{buildroot}%{_prefix}
%install
# yes they have a makefile, no they dont use it properly
# no they dont have a make install
# we used to have this in the build section but since rpm 4.16 buildroot is cleaned
python3 setup.py --verbose linux-package --prefix %{buildroot}%{_prefix}
%fdupes %{buildroot}%{_prefix}/lib