-%define pref %{_prefix}
-%define python @PYTHON@
-%define pyver @PYVER@
-%define port @PORT@
-%define lcport @LCPORT@
-%define unicode @UNICODE@
-%define tarname @TARNAME@
-%define version @VERSION@
-%define ver2 @VER2@
-%define release 1
-%define wxprefbase %{pref}/lib/wxPython
-%define wxpref %{wxprefbase}-%{version}
-%define name wxPython%{port}-py%{pyver}
+#----------------------------------------------------------------------
+# Name: wxPython.spec
+# Purpose: RPM Build and packaging instructions
+#
+# Author: Robin Dunn
+#
+# RCS-ID: $Id$
+# Copyright: (c) 2004 by Total Control Software
+# Licence: wxWindows license
+#----------------------------------------------------------------------
+
+
+# The following values can be set on the rpmbuild command line with
+# --define 'name VALUE' If no value is set on the command line then
+# the default value set here will be used instead.
+
+
+# Which version of Python to build with. Used to assemble python
+# binary name so use '2.3', '2.4', etc.
+%if %{?pyver:0}%{!?pyver:1}
+%define pyver 2.4
+%endif
+
+
+# Which wxWidgets port to build and use. Current acceptable values
+# are 'gtk' and 'gtk2'.
+%if %{?port:0}%{!?port:1}
+%define port gtk2
+%endif
+
+
+# Build in unicode mode? Can only be used if port is gtk2, acceptable
+# values are '0' and '1'
+%if %{?unicode:0}%{!?unicode:1}
+%define unicode 1
+%endif