-mkdir i386
-strip /usr/lib/python1.5/site-packages/wxPython/wxcmodule.so
+strip /usr/lib/python1.5/site-packages/wxPython/*.so
+strip /usr/lib/libwxPyHelpers.so
cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec
-rpm --rcfile .rpmrc -bb --clean wxPython.spec
-mv i386/*.rpm .
-rm -rf i386
+mkdir /usr/doc/wxPython-$1
+cp ../README.txt /usr/doc/wxPython-$1
+cp ../../../docs/preamble.txt /usr/doc/wxPython-$1
+cp ../../../docs/licence.txt /usr/doc/wxPython-$1
+cp ../../../docs/licendoc.txt /usr/doc/wxPython-$1
+cp ../../../docs/lgpl.txt /usr/doc/wxPython-$1
+cp ../../../docs/gpl.txt /usr/doc/wxPython-$1
+
+rpm -bb wxPython.spec
+
+mv /usr/src/redhat/RPMS/*/wxPython*.rpm .
+chown rd:users wxPython*.rpm
+
+rm -r /usr/doc/wxPython-$1
\ No newline at end of file