SHA256
1
0
forked from pool/gpm

3 Commits

Author SHA256 Message Date
17688571f2 Service file should use env 2026-02-17 17:51:17 +01:00
5040e51a0e Accepting request 1254984 from home:rguenther:branches:Base:System
- Use -std=gnu11 to avoid the C23 default of GCC 15 which no longer
  supports calling unprototyped functions.

OBS-URL: https://build.opensuse.org/request/show/1254984
OBS-URL: https://build.opensuse.org/package/show/Base:System/gpm?expand=0&rev=65
2026-02-17 16:36:31 +01:00
1e8fc87c3e Accepting request 1239570 from home:dimstar:Factory
- Drop rcFOO symlinks for CODE16 (PED-266).

OBS-URL: https://build.opensuse.org/request/show/1239570
OBS-URL: https://build.opensuse.org/package/show/Base:System/gpm?expand=0&rev=63
2026-02-17 16:36:31 +01:00
4 changed files with 28 additions and 17 deletions

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Tue Feb 17 15:42:46 UTC 2026 - Adam Majer <adam.majer@suse.de>
- Make the package installable on atomically updatable systems
(jsc#PED-14720)
- Use env variables when starting service instead of hardcoded
- Remove GPM_REPEAT as it's unused
-------------------------------------------------------------------
Fri Mar 21 12:29:13 UTC 2025 - Richard Biener <rguenther@suse.com>
- 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 <dimstar@opensuse.org>
- Drop rcFOO symlinks for CODE16 (PED-266).
-------------------------------------------------------------------
Tue Feb 27 11:10:41 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -16,9 +16,9 @@ ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictRealtime=true
# end of automatic additions
# end of automatic additions
EnvironmentFile=-/etc/sysconfig/mouse
ExecStart=/usr/sbin/gpm -m /dev/input/mice -t exps2
ExecStart=/usr/sbin/gpm -m $MOUSEDEVICE -t $MOUSETYPE $GPM_PARAM
Type=forking
PIDFile=/run/gpm.pid

View File

@@ -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
@@ -182,8 +184,6 @@ fi
# Do not package static library
rm -fv %{buildroot}/%{_libdir}/libgpm.a
mkdir -p %{buildroot}/run
touch %{buildroot}/run/gpm.pid
%pre
%service_add_pre gpm.service
@@ -217,7 +217,6 @@ touch %{buildroot}/run/gpm.pid
%{_bindir}/*
%{_sbindir}/*
%{_fillupdir}/*
%ghost /run/gpm.pid
%files -n %lname
%defattr(-,root,root)

View File

@@ -23,15 +23,8 @@ MOUSETYPE="imps2"
## Default: ""
#
# You can define your own options to start gpm here. If the variable is empty
# then the gpm will start with the option "-m $MOUSEDEVICE -t $MOUSETYPE"
# then the gpm will start with the option "-m $MOUSEDEVICE -t $MOUSETYPE" otherwise
# GPM_PARAM is appended to the parameter list.
#
GPM_PARAM=""
## Type: string(raw,imps2,ms,ms3,msc,mman,ps2,syn,synps2)
## Default: ""
#
# Define type of repeating for gpm. This is usually needed when you want to
# use gpm together with XFree. All mouse data will be repeated in fifo
# /dev/gpmdata. Use "raw" for repeating same data as received by gpm.
#
GPM_REPEAT=""