Accepting request 544681 from home:RBrownSUSE:branches:Base:System

Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468)

OBS-URL: https://build.opensuse.org/request/show/544681
OBS-URL: https://build.opensuse.org/package/show/Base:System/gpm?expand=0&rev=51
This commit is contained in:
Adam Majer 2017-11-24 07:03:57 +00:00 committed by Git OBS Bridge
parent 449475b664
commit 1191eed242
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 23 13:40:02 UTC 2017 - rbrown@suse.com
- Replace references to /var/adm/fillup-templates with new
%_fillupdir macro (boo#1069468)
-------------------------------------------------------------------
Mon Sep 11 18:59:26 UTC 2017 - jengelh@inai.de

View File

@ -16,6 +16,11 @@
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir /var/adm/fillup-templates
%endif
Name: gpm
%define lname libgpm2
Version: 1.20.7
@ -153,11 +158,11 @@ done
#install contrib/emacs/t-mouse.el* %%{buildroot}/usr/share/emacs/site-lisp
#
# start script
install -m 755 -d %{buildroot}/var/adm/fillup-templates
install -m 755 -d %{buildroot}%{_fillupdir}
install -m 755 -d %{buildroot}/%{_unitdir}
install -m 755 -d %{buildroot}/usr/sbin
install -m 755 inputattach %{buildroot}%{_sbindir}
install -m 644 sysconfig.mouse-%{name} %{buildroot}/var/adm/fillup-templates
install -m 644 sysconfig.mouse-%{name} %{buildroot}%{_fillupdir}
install -m 644 %{S:2} %{buildroot}/%{_unitdir}/gpm.service
ln -sf %{_sbindir}/service %{buildroot}/usr/sbin/rcgpm
# there were two variables with the same value GPM_PROTOCOL and MOUSETYPE
@ -208,7 +213,7 @@ touch %{buildroot}/run/gpm.pid
%{_unitdir}/gpm.service
%{_bindir}/*
%{_sbindir}/*
/var/adm/fillup-templates/*
%{_fillupdir}/*
%ghost /run/gpm.pid
%files -n %lname