From 7a6a475ee614f69eee246d7c826edfada38c5c02ca41d2902fb306e551dbd7ca Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 27 Oct 2010 04:51:56 +0000 Subject: [PATCH] Accepting request 51406 from home:elvigia:branches:Base:System OBS-URL: https://build.opensuse.org/request/show/51406 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpm?expand=0&rev=11 --- gpm.changes | 5 +++++ gpm.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gpm.changes b/gpm.changes index 3ac97bf..36b7237 100644 --- a/gpm.changes +++ b/gpm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 26 16:44:52 UTC 2010 - cristian.rodriguez@opensuse.org + +- Own gpm pid file but %ghost it + ------------------------------------------------------------------- Wed Sep 8 19:59:58 CEST 2010 - pth@suse.de diff --git a/gpm.spec b/gpm.spec index b3aebb9..1ef2e06 100644 --- a/gpm.spec +++ b/gpm.spec @@ -112,7 +112,7 @@ cp %{S:2} %{S:3} %{S:4} . export SUSE_ASNEEDED=0 autoreconf -fi CFLAGS="$RPM_OPT_FLAGS -DQUIET_LIBGPM" \ -%configure \ +%configure --disable-static \ --sysconfdir=/etc/gpm %ifarch %arm make CC="gcc -lm" @@ -155,8 +155,9 @@ if grep "^GPM_PROTOCOL=" /etc/sysconfig/mouse 1>/dev/null 2>/dev/null ; then fi # Do not package static library -rm -f $RPM_BUILD_ROOT/%{_libdir}/libgpm.a - +rm -fv $RPM_BUILD_ROOT/%{_libdir}/libgpm.a +mkdir -p %{buildroot}%{_localstatedir}/run +touch %{buildroot}%{_localstatedir}/run/gpm.pid %preun %stop_on_removal gpm @@ -181,13 +182,14 @@ rm -rf $RPM_BUILD_ROOT %doc doc/Announce doc/FAQ doc/README* %{_infodir}/* %{_mandir}/*/* -%dir /etc/gpm +%dir %config /etc/gpm %config /etc/gpm/* %config /etc/init.d/gpm %{_bindir}/* %{_sbindir}/* %{_libdir}/libgpm.so.* /var/adm/fillup-templates/* +%ghost %{_localstatedir}/run/gpm.pid %files devel %defattr(-,root,root)