forked from pool/aaa_base
Repair spec file
OBS-URL: https://build.opensuse.org/package/show/Base:System/aaa_base?expand=0&rev=602
This commit is contained in:
parent
f7281202bf
commit
9ccfdcb4b2
@ -17,6 +17,11 @@
|
|||||||
# icecream 0
|
# icecream 0
|
||||||
|
|
||||||
|
|
||||||
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
|
%if ! %{defined _fillupdir}
|
||||||
|
%define _fillupdir /var/adm/fillup-templates
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: aaa_base
|
Name: aaa_base
|
||||||
Version: 84.87+git20171128.a6752e8
|
Version: 84.87+git20171128.a6752e8
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -130,9 +135,18 @@ install -d -m 755 %buildroot/usr/lib/initscripts/legacy-actions
|
|||||||
# keep as ghost for migration
|
# keep as ghost for migration
|
||||||
touch %buildroot/etc/inittab
|
touch %buildroot/etc/inittab
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_fillupdir}
|
||||||
%if "%{_fillupdir}" != "/var/adm/fillup-templates"
|
%if "%{_fillupdir}" != "/var/adm/fillup-templates"
|
||||||
mkdir -p %{buildroot}$(dirname %{_fillupdir})
|
for f in %{buildroot}/var/adm/fillup-templates/* ; do
|
||||||
mv %{buildroot}/var/adm/fillup-templates %{buildroot}%{_fillupdir}
|
mv $f %{buildroot}%{_fillupdir}/
|
||||||
|
done
|
||||||
|
rm -vrf %{buildroot}/var/adm/fillup-templates
|
||||||
|
%endif
|
||||||
|
%if "%{_fillupdir}" != "/usr/share/fillup-templates"
|
||||||
|
for f in %{buildroot}/usr/share/fillup-templates/* ; do
|
||||||
|
mv $f %{buildroot}%{_fillupdir}/
|
||||||
|
done
|
||||||
|
rm -vrf %{buildroot}/usr/share/fillup-templates
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%pre -f aaa_base.pre
|
%pre -f aaa_base.pre
|
||||||
|
Loading…
Reference in New Issue
Block a user