Accepting request 229127 from Base:System

- Install gpm.service without executable bit. The service files are
  never 'started'. This silences a warning in journal:
  systemd[1]: Configuration file /usr/lib/systemd/system/gpm.service
  is marked executable. Please remove executable permission bits.
  Proceeding anyway (forwarded request 229116 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/229127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpm?expand=0&rev=42
This commit is contained in:
Stephan Kulow 2014-04-08 20:37:03 +00:00 committed by Git OBS Bridge
commit c434a1dac7
3 changed files with 36 additions and 5 deletions

View File

@ -1 +1 @@
gpm libgpm2

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sat Apr 5 18:03:49 UTC 2014 - dimstar@opensuse.org
- Install gpm.service without executable bit. The service files are
never 'started'. This silences a warning in journal:
systemd[1]: Configuration file /usr/lib/systemd/system/gpm.service
is marked executable. Please remove executable permission bits.
Proceeding anyway
-------------------------------------------------------------------
Wed Mar 26 14:03:21 UTC 2014 - jengelh@inai.de
- Implement shlib packaging guidelines: new libgpm2 subpackage
- Add missing %pre scriptlet
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 2 11:40:18 UTC 2013 - coolo@suse.com Mon Dec 2 11:40:18 UTC 2013 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package gpm # spec file for package gpm
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,6 +17,7 @@
Name: gpm Name: gpm
%define lname libgpm2
Version: 1.20.7 Version: 1.20.7
Release: 0 Release: 0
Summary: Console Mouse Support Summary: Console Mouse Support
@ -73,10 +74,19 @@ server for applications running on the Linux console. It can be used by
mc (Midnight Commander) or by w3m, the text-based Web browser. It mc (Midnight Commander) or by w3m, the text-based Web browser. It
provides console cut and paste operations. provides console cut and paste operations.
%package -n %lname
Summary: Console mouse support library
Group: System/Libraries
%description -n %lname
This package provides a library that handles mouse requests and
delivers them to applications. See the description for the "gpm"
package for more information.
%package devel %package devel
Requires: %{name} = %{version}
Summary: Development files for gpm (Console Mouse Support) Summary: Development files for gpm (Console Mouse Support)
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel %description devel
Development files for the gpm (general purpose mouse) package. Development files for the gpm (general purpose mouse) package.
@ -137,7 +147,7 @@ install -m 755 -d $RPM_BUILD_ROOT/%{_unitdir}
install -m 755 -d $RPM_BUILD_ROOT/usr/sbin install -m 755 -d $RPM_BUILD_ROOT/usr/sbin
install -m 755 inputattach %{buildroot}%{_sbindir} install -m 755 inputattach %{buildroot}%{_sbindir}
install -m 644 sysconfig.mouse-%{name} $RPM_BUILD_ROOT/var/adm/fillup-templates install -m 644 sysconfig.mouse-%{name} $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 755 %{S:2} $RPM_BUILD_ROOT/%{_unitdir}/gpm.service install -m 644 %{S:2} $RPM_BUILD_ROOT/%{_unitdir}/gpm.service
ln -sf /sbin/service $RPM_BUILD_ROOT/usr/sbin/rcgpm ln -sf /sbin/service $RPM_BUILD_ROOT/usr/sbin/rcgpm
# there were two variables with the same value GPM_PROTOCOL and MOUSETYPE # there were two variables with the same value GPM_PROTOCOL and MOUSETYPE
# in SuLi 8.2. The MOUSETYPE variable better conforms with with other # in SuLi 8.2. The MOUSETYPE variable better conforms with with other
@ -157,6 +167,9 @@ rm -fv $RPM_BUILD_ROOT/%{_libdir}/libgpm.a
mkdir -p %{buildroot}/run mkdir -p %{buildroot}/run
touch %{buildroot}/run/gpm.pid touch %{buildroot}/run/gpm.pid
%pre
%service_add_pre gpm.service
%preun %preun
%service_del_preun gpm.service %service_del_preun gpm.service
@ -183,10 +196,13 @@ touch %{buildroot}/run/gpm.pid
%{_unitdir}/gpm.service %{_unitdir}/gpm.service
%{_bindir}/* %{_bindir}/*
%{_sbindir}/* %{_sbindir}/*
%{_libdir}/libgpm.so.*
/var/adm/fillup-templates/* /var/adm/fillup-templates/*
%ghost /run/gpm.pid %ghost /run/gpm.pid
%files -n %lname
%defattr(-,root,root)
%_libdir/libgpm.so.2*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/gpm.h %{_includedir}/gpm.h