SHA256
1
0
forked from pool/gpm

- Add %post and %postun entries for libgpm2.

- Add a current version  of GPL-2.0 with valid FSF address.
- Add gpm-fix_fsf_addess.patch to get the current FSF address into
  gpm.h.

OBS-URL: https://build.opensuse.org/package/show/Base:System/gpm?expand=0&rev=41
This commit is contained in:
Philipp Thomas
2016-01-13 13:53:14 +00:00
committed by Git OBS Bridge
parent 96eb5692e5
commit 536095bbf8
4 changed files with 395 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package gpm
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,7 @@ Source3: sysconfig.mouse-%{name}
Source4: README.SUSE
Source5: baselibs.conf
Source6: inputattach.c
Source7: gpl-2.0.txt
Patch0: gpm-DESTDIR.patch
Patch4: gpm-syn_conf.patch
Patch6: gpm-conf.patch
@@ -52,6 +53,9 @@ Patch26: gpm-weak-wgetch.patch
Patch28: gpm-dependencies.patch
#PATCH-FIX-UPSTREAM Create the symlink libgpm.so
Patch29: gpm-do_create_symlink.patch
#PATCH-FIX-UPSTREAM Copy the current licence text from gpl-2.0+ to gpm.h
Patch30: gpm-fix_fsf_addess.patch
BuildRequires: aaa_base
BuildRequires: bison
BuildRequires: libtool
BuildRequires: lzma
@@ -114,7 +118,9 @@ Development files for the gpm (general purpose mouse) package.
%patch26
%patch28
%patch29
%patch30
cp %{S:2} %{S:3} %{S:4} .
cp %{S:7} COPYING
%build
# This package failed when testing with -Wl,-as-needed being default.
@@ -187,6 +193,9 @@ touch %{buildroot}/run/gpm.pid
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%service_del_postun gpm.service
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING README README.gpm2 README.SUSE TODO