Accepting request 491884 from home:jengelh:branches:system:install:head

- Compact %install routine; replace old RPM shell vars by macros.

OBS-URL: https://build.opensuse.org/request/show/491884
OBS-URL: https://build.opensuse.org/package/show/system:install:head/patterns-base?expand=0&rev=10
This commit is contained in:
Ludwig Nussel 2017-05-04 09:48:01 +00:00 committed by Git OBS Bridge
parent f185b3c9a0
commit 78d41e36ac
2 changed files with 12 additions and 16 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 28 16:03:43 UTC 2017 - jengelh@inai.de
- Compact %install routine; replace old RPM shell vars by macros.
-------------------------------------------------------------------
Fri Apr 28 09:55:11 UTC 2017 - dleuenberger@suse.com

View File

@ -893,21 +893,12 @@ This will install the 32-bit variant of all selected patterns. This allows to ex
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/
echo 'This file marks the pattern 32bit to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/32bit.txt
echo 'This file marks the pattern 64bit to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/64bit.txt
echo 'This file marks the pattern apparmor to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/apparmor.txt
echo 'This file marks the pattern apparmor_opt to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/apparmor_opt.txt
echo 'This file marks the pattern base to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/base.txt
echo 'This file marks the pattern console to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/console.txt
echo 'This file marks the pattern enhanced_base to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/enhanced_base.txt
echo 'This file marks the pattern enhanced_base_opt to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/enhanced_base_opt.txt
echo 'This file marks the pattern minimal_base to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/minimal_base.txt
echo 'This file marks the pattern minimal_base-conflicts to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/minimal_base-conflicts.txt
echo 'This file marks the pattern sw_management to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/sw_management.txt
echo 'This file marks the pattern update_test to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/update_test.txt
echo 'This file marks the pattern x11 to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/x11.txt
echo 'This file marks the pattern x11_opt to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/x11_opt.txt
echo 'This file marks the pattern x86 to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/x86.txt
mkdir -p %{buildroot}/usr/share/doc/packages/patterns
for i in 32bit 64bit apparmor apparmor_opt base console enhanced_base \
enhanced_base_opt minimal_base minimal_base-conflicts sw_management \
update_test x11 x11_opt x86; do
echo "This file marks the pattern $i to be installed." \
>"%{buildroot}/usr/share/doc/packages/patterns/$i.txt"
done
%changelog