File project.diff of Package ckermit

--- ckermit.changes.orig
+++ ckermit.changes
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Tue Jun 10 09:18:42 UTC 2025 - Michal Hrusecky <michal.hrusecky@opensuse.org>
+
+- respect %optflags
+- create and set lock directory in a way, that dialout members can use tty
+
+-------------------------------------------------------------------
 Thu Dec 19 15:36:33 UTC 2024 - Martin Hauke <mardnh@gmx.de>
 
 - Add patch:
@@ -267,5 +273,3 @@ Fri Mar 10 19:37:35 MET 2000 - grimmer@s
 
 - initial version (7.0.197)
 - added patch to correct location of docs (/usr/doc -> /usr/doc/packages)
-
--------------------------------------------------------------------
--- ckermit.spec.orig
+++ ckermit.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package ckermit
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,7 @@ License:        BSD-3-Clause
 Group:          Hardware/Modem
 URL:            https://www.kermitproject.org/
 Source0:        ftp://ftp.kermitproject.org/kermit/archives/cku302.tar.gz
+Source1:        ckermit-tmp.conf
 Patch0:         decl-definition-conflict.patch
 # PATCH-FIX-UPSTREAM time_and_file_failure.patch
 Patch1:         time_and_file_failure.patch
@@ -51,9 +52,8 @@ This package contains the documentation
 %autosetup -p1 -c
 
 %build
-export CFLAGS="%{optflags}"
-export CXXFLAGS="$CFLAGS"
-%make_build linux
+export CFLAGS="%{optflags} -DLOCK_DIR=\\\\\\\\\\\\\\\"/run/lock/uucp\\\\\\\\\\\\\\\""
+%make_build KFLAGS="$CFLAGS" linux
 
 %install
 install -d -m 755 %{buildroot}%{_bindir}
@@ -62,12 +62,14 @@ install -m 755 wermit %{buildroot}%{_bin
 install -m 644 ckuker.nr %{buildroot}%{_mandir}/man1/kermit.1
 cd %{buildroot}%{_mandir}/man1
 ln -s kermit.1 ckermit.1
+install -pD -m644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/ckermit.conf
 
 %files
 %license COPYING.TXT
 %{_bindir}/kermit
 %{_mandir}/man1/ckermit.1%{?ext_man}
 %{_mandir}/man1/kermit.1%{?ext_man}
+%{_tmpfilesdir}/ckermit.conf
 
 %files doc
 %doc *.txt
openSUSE Build Service is sponsored by