diff --git a/patterns-gnome.changes b/patterns-gnome.changes index 7323b91..bddbc35 100644 --- a/patterns-gnome.changes +++ b/patterns-gnome.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 3 08:51:13 UTC 2017 - jengelh@inai.de + +- Compact %install routine; replace old RPM shell vars by macros. + ------------------------------------------------------------------- Sat Apr 29 09:33:16 UTC 2017 - dimstar@opensuse.org diff --git a/patterns-gnome.spec b/patterns-gnome.spec index d703ddc..1fcce3c 100644 --- a/patterns-gnome.spec +++ b/patterns-gnome.spec @@ -815,22 +815,11 @@ Package Management - Graphical Tools %build %install -mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/ -echo 'This file marks the pattern devel_gnome to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/devel_gnome.txt -echo 'This file marks the pattern gnome to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome.txt -echo 'This file marks the pattern gnome_admin to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_admin.txt -echo 'This file marks the pattern gnome_basis to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_basis.txt -echo 'This file marks the pattern gnome_basis_opt to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_basis_opt.txt -echo 'This file marks the pattern gnome_games to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_games.txt -echo 'This file marks the pattern gnome_ide to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_ide.txt -echo 'This file marks the pattern gnome_imaging to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_imaging.txt -echo 'This file marks the pattern gnome_imaging_opt to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_imaging_opt.txt -echo 'This file marks the pattern gnome_internet to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_internet.txt -echo 'This file marks the pattern gnome_laptop to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_laptop.txt -echo 'This file marks the pattern gnome_multimedia to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_multimedia.txt -echo 'This file marks the pattern gnome_multimedia_opt to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_multimedia_opt.txt -echo 'This file marks the pattern gnome_office to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_office.txt -echo 'This file marks the pattern gnome_office_opt to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_office_opt.txt -echo 'This file marks the pattern gnome_utilities to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_utilities.txt -echo 'This file marks the pattern gnome_yast to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gnome_yast.txt -echo 'This file marks the pattern sw_management_gnome to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/sw_management_gnome.txt +mkdir -p "%{buildroot}/usr/share/doc/packages/patterns" +for i in devel_gnome gnome gnome_admin gnome_basis gnome_basis_opt \ + gnome_games gnome_ide gnome_imaging gnome_imaging_opt gnome_internet \ + gnome_laptop gnome_multimedia gnome_multimedia_opt gnome_office \ + gnome_office_opt gnome_utilities gnome_yast sw_management_gnome; do + echo "This file marks the pattern $i to be installed." \ + >"%{buildroot}/usr/share/doc/packages/patterns/$i.txt" +done