From 2635ae4407751cc16745918114fbc1ce31eb7c4f Mon Sep 17 00:00:00 2001 From: runge Date: Wed, 8 Nov 2006 00:46:37 +0000 Subject: configure.ac -R and macosx, prepare_x11vnc_dist.sh rpm fix --- prepare_x11vnc_dist.sh | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'prepare_x11vnc_dist.sh') diff --git a/prepare_x11vnc_dist.sh b/prepare_x11vnc_dist.sh index 9e7aa0b..17a67a9 100644 --- a/prepare_x11vnc_dist.sh +++ b/prepare_x11vnc_dist.sh @@ -44,9 +44,31 @@ into a versatile and performant while still easy to use program.\ x11vnc was put together and is (actively ;-) maintained by\ Karl Runge \ \ -%prep\ -/' \ -> x11vnc.spec.in +/i' \ +> x11vnc.spec.in.tmp + +perl -e ' + $s = 0; + while (<>) { + if ($s) { + if (/^\s*$/) { + $s = 0; + } + } else { + if (/^%files\s*$/ || /^%files devel/) { + $s = 1; + } + } + next if $s; + if (/^%files x11vnc/) { + print "\%files\n"; + print "\%doc README x11vnc/ChangeLog\n"; + next; + } + print; + }' < x11vnc.spec.in.tmp > x11vnc.spec.in + +rm -f x11vnc.spec.in.tmp mv libvncserver/Makefile.am libvncserver/Makefile.am.LibVNCServer -- cgit v1.2.1