rpms/postfix/devel postfix.spec,1.51,1.52

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Jan 23 14:54:17 UTC 2007


Author: twoerner

Update of /cvs/dist/rpms/postfix/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv24786

Modified Files:
	postfix.spec 
Log Message:
[tw]
- dropped usage of ed in the install stage




Index: postfix.spec
===================================================================
RCS file: /cvs/dist/rpms/postfix/devel/postfix.spec,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- postfix.spec	23 Jan 2007 13:11:15 -0000	1.51
+++ postfix.spec	23 Jan 2007 14:54:15 -0000	1.52
@@ -259,15 +259,11 @@
   install -c -m 755 man/man1/$i.1 $RPM_BUILD_ROOT%{_mandir}/man1/
 done
 
-# RPM compresses man pages automatically.
-# - Edit postfix-files to reflect this, so post-install won't get confused
-#   when called during package installation.
-ed $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files <<EOF || exit 1
-%s/\(\/man[158]\/.*\.[158]\):/\1.gz:/
-%s/\$config_directory\/aliases:f/\#/
-w
-q
-EOF
+## RPM compresses man pages automatically.
+## - Edit postfix-files to reflect this, so post-install won't get confused
+##   when called during package installation.
+perl -i -pe "s#(/man[158]/.*.[158]):f#\1.gz:f#" $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files
+perl -i -pe 's/\$config_directory\/aliases:f/\#/' $RPM_BUILD_ROOT%{postfix_config_dir}/postfix-files
 
 perl -i -pe 's:/cyrus/bin/deliver:/usr/lib/cyrus-imapd/deliver:' $RPM_BUILD_ROOT%{postfix_config_dir}/master.cf
 
@@ -473,6 +469,7 @@
 * Tue Jan 23 2007 Thomas Woerner <twoerner at redhat.com> 2:2.3.6-1
 - new version 2.3.6
 - limiting SASL mechanisms to plain login for sasl with saslauthd (#175259)
+- dropped usage of ed in the install stage
 
 * Tue Nov  7 2006 Thomas Woerner <twoerner at redhat.com> 2:2.3.4-1
 - new version 2.3.4




More information about the fedora-cvs-commits mailing list