From 78d41e36ac114e7c7fb6668a8d17e6a4df31ab673b957197853005a47d9f28b3 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 4 May 2017 09:48:01 +0000 Subject: [PATCH] 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 --- patterns-base.changes | 5 +++++ patterns-base.spec | 23 +++++++---------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/patterns-base.changes b/patterns-base.changes index d25fbda..32bfc9a 100644 --- a/patterns-base.changes +++ b/patterns-base.changes @@ -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 diff --git a/patterns-base.spec b/patterns-base.spec index 2953b88..49af87f 100644 --- a/patterns-base.spec +++ b/patterns-base.spec @@ -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