diff --git a/gpm.changes b/gpm.changes index f81ab26..0ea1020 100644 --- a/gpm.changes +++ b/gpm.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Mar 21 12:29:13 UTC 2025 - Richard Biener + +- Use -std=gnu11 to avoid the C23 default of GCC 15 which no longer + supports calling unprototyped functions. + +------------------------------------------------------------------- +Wed Jan 22 15:18:47 UTC 2025 - Dominique Leuenberger + +- Drop rcFOO symlinks for CODE16 (PED-266). + ------------------------------------------------------------------- Tue Feb 27 11:10:41 UTC 2024 - Dominique Leuenberger diff --git a/gpm.spec b/gpm.spec index 8481dc2..ba9853b 100644 --- a/gpm.spec +++ b/gpm.spec @@ -1,7 +1,7 @@ # # spec file for package gpm # -# Copyright (c) 2021 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 @@ -138,14 +138,14 @@ cp %{S:7} COPYING #export SUSE_ASNEEDED=1 NOCONFIGURE=1 ./autogen.sh autoreconf -fi -export CFLAGS="%{optflags} -DQUIET_LIBGPM -D_REENTRANT" +export CFLAGS="%{optflags} -DQUIET_LIBGPM -D_REENTRANT -std=gnu11" %configure --disable-static \ --sysconfdir=%{_sysconfdir}/gpm make CC=gcc %{?_smp_mflags} gcc %{optflags} -o inputattach %{SOURCE6} %install -make install DESTDIR="%buildroot" ROOT="" +make install DESTDIR="%buildroot" ROOT="" # # gpm confings install -d %{buildroot}%{_sysconfdir}/${file/conf\/gpm-/gpm\/} @@ -166,7 +166,9 @@ install -m 755 -d %{buildroot}/usr/sbin install -m 755 inputattach %{buildroot}%{_sbindir} install -m 644 sysconfig.mouse-%{name} %{buildroot}%{_fillupdir} install -m 644 %{S:2} %{buildroot}/%{_unitdir}/gpm.service +%if 0%{?suse_version} < 1600 ln -sf %{_sbindir}/service %{buildroot}/usr/sbin/rcgpm +%endif # there were two variables with the same value GPM_PROTOCOL and MOUSETYPE # in SuLi 8.2. The MOUSETYPE variable better conforms with with other # variable names MOUSEDEVICE and XMOUSETYPE name scheme, so get rid of