Accepting request 227601 from home:jengelh:branches:Base:System
- Implement shlib packaging guidelines: new libgpm2 subpackage - Add missing %pre scriptlet OBS-URL: https://build.opensuse.org/request/show/227601 OBS-URL: https://build.opensuse.org/package/show/Base:System/gpm?expand=0&rev=34
This commit is contained in:
parent
414c5e1f68
commit
871853db94
@ -1 +1 @@
|
||||
gpm
|
||||
libgpm2
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
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
|
||||
|
||||
|
22
gpm.spec
22
gpm.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,6 +17,7 @@
|
||||
|
||||
|
||||
Name: gpm
|
||||
%define lname libgpm2
|
||||
Version: 1.20.7
|
||||
Release: 0
|
||||
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
|
||||
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
|
||||
Requires: %{name} = %{version}
|
||||
Summary: Development files for gpm (Console Mouse Support)
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %lname = %version
|
||||
|
||||
%description devel
|
||||
Development files for the gpm (general purpose mouse) package.
|
||||
@ -157,6 +167,9 @@ rm -fv $RPM_BUILD_ROOT/%{_libdir}/libgpm.a
|
||||
mkdir -p %{buildroot}/run
|
||||
touch %{buildroot}/run/gpm.pid
|
||||
|
||||
%pre
|
||||
%service_add_pre gpm.service
|
||||
|
||||
%preun
|
||||
%service_del_preun gpm.service
|
||||
|
||||
@ -183,10 +196,13 @@ touch %{buildroot}/run/gpm.pid
|
||||
%{_unitdir}/gpm.service
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%{_libdir}/libgpm.so.*
|
||||
/var/adm/fillup-templates/*
|
||||
%ghost /run/gpm.pid
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
%_libdir/libgpm.so.2*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/gpm.h
|
||||
|
Loading…
Reference in New Issue
Block a user