Jan Engelhardt 2022-05-28 20:08:09 +00:00 committed by Git OBS Bridge
parent cc6d35ddcf
commit 70bf61d473

View File

@ -52,12 +52,13 @@ openssh, and "putty" is the program that combines both in one.
%autosetup -p1
%build
make -C icons cicons pngs
#
# from defs.h: """PuTTY is a security project, so assertions are
# important""" (-DNDEBUG injected by optflags not allowed)
#
%cmake -DCMAKE_C_FLAGS:STRING="%optflags -UNDEBUG"
%cmake_build
#make_build -C icons cicons pngs
%install
%cmake_install
@ -78,12 +79,14 @@ EOF
%suse_update_desktop_file -n %name
mkdir -p "$b/%_datadir/pixmaps/"
install -m644 unix/pterm-xpm.c "$b/%_datadir/pixmaps/pterm.xpm"
install -m644 unix/putty-xpm.c "$b/%_datadir/pixmaps/putty.xpm"
install -m644 icons/xpmpterm.c "$b/%_datadir/pixmaps/pterm.xpm"
install -m644 icons/xpmputty.c "$b/%_datadir/pixmaps/putty.xpm"
install -m644 icons/pterm-32.png "$b/%_datadir/pixmaps/pterm.png"
install -m644 icons/putty-32.png "$b/%_datadir/pixmaps/putty.png"
%files
%license LICENCE
%doc doc/*.html
%doc doc/*.but
%_mandir/man*/*
%_bindir/*
%_datadir/applications/%name.desktop