diff --git a/patterns-server.changes b/patterns-server.changes index e346b67..78d5567 100644 --- a/patterns-server.changes +++ b/patterns-server.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. + ------------------------------------------------------------------- Thu Mar 16 06:15:40 UTC 2017 - sflees@suse.de diff --git a/patterns-server.spec b/patterns-server.spec index e108903..58b9831 100644 --- a/patterns-server.spec +++ b/patterns-server.spec @@ -364,15 +364,9 @@ Software to set up a server for configuring, managing, and monitoring virtual ma %build %install -mkdir -p $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/ -echo 'This file marks the pattern dhcp_dns_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/dhcp_dns_server.txt -echo 'This file marks the pattern directory_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/directory_server.txt -echo 'This file marks the pattern file_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/file_server.txt -echo 'This file marks the pattern gateway_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/gateway_server.txt -echo 'This file marks the pattern kvm_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/kvm_server.txt -echo 'This file marks the pattern lamp_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/lamp_server.txt -echo 'This file marks the pattern mail_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/mail_server.txt -echo 'This file marks the pattern print_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/print_server.txt -echo 'This file marks the pattern xen_server to be installed.' > $RPM_BUILD_ROOT/usr/share/doc/packages/patterns/xen_server.txt - -%changelog +mkdir -p "%{buildroot}/usr/share/doc/packages/patterns" +for i in dhcp_dns_server directory_server file_server gateway_server \ + kvm_server lamp_server mail_server print_server xen_server; do + echo "This file marks the pattern $i to be installed." \ + >"%{buildroot}/usr/share/doc/packages/patterns/$i.txt" +done