# Initialization
distdir=`pwd`/dist
-builddir=`pwd`/build_rpm
+builddir=`pwd`/_build_rpm
rpmtop=${builddir}/rpmtop
cvsroot=:pserver:anoncvs@cvs.wxwindows.org:/home/wxcvs
pythonbin=/usr/bin/python
port=GTK
lcport=gtk
-tarname=wxPythonFull
+tarname=wxPythonSrc
debug=0
pyver=$3
shift;shift;shift
+tarver=${tarname}-${version}
+
python=${pythonbin}${pyver}
if [ ! -e ${python} ]; then
| sed s:@PORT@:${port}:g \
| sed s:@LCPORT@:${lcport}:g \
| sed s:@TARNAME@:${tarname}:g \
+ | sed s:@VERSION@:${version}:g \
> ${distdir}/wxPython${port}.spec
}
done
-tarver=${tarname}-${version}
-
#----------------------------------------------------------------------
# Setup build dirs
#----------------------------------------------------------------------
-# Make the spec file and copy to ${builddir}/${tarver}
+# Make the spec file and copy to ${builddir}/${tarver} so it will be
+# in the tar file when it's built
-#if [ -z "${skiptar}" ]; then
- makespec
- cp ${distdir}/wxPython${port}.spec ${builddir}/${tarver}/wxPython${port}.spec
-#fi
+makespec
+cp ${distdir}/wxPython${port}.spec ${builddir}/${tarver}/wxPython${port}.spec
#----------------------------------------------------------------------
echo "*** RPM failure, exiting."
exit 1
else
+ echo "*** Moving RPMs to ${distdir}"
mv -f `find ${rpmtop} -name "wxPython*.rpm"` ${distdir}
fi
fi
-%define pref %{_prefix}
-%define python @PYTHON@
-%define pyver @PYVER@
-%define debug @DEBUG@
-%define port @PORT@
-%define lcport @LCPORT@
+%define pref %{_prefix}
+%define python @PYTHON@
+%define pyver @PYVER@
+%define debug @DEBUG@
+%define port @PORT@
+%define lcport @LCPORT@
%define tarname @TARNAME@
+%define version @VERSION@
+%define release 1
%if %{debug}
- %define name wxPython%{port}_py%{pyver}_dbg
+ %define name wxPython%{port}-py%{pyver}-dbg
+ %define othername wxPython%{port}-py%{pyver}
%else
- %define name wxPython%{port}_py%{pyver}
+ %define name wxPython%{port}-py%{pyver}
+ %define othername wxPython%{port}-py%{pyver}-dbg
%endif
-%define version 2.3.3pre5
-%define release 1
Summary: Cross platform GUI toolkit for Python using wx%{port}
Prefix: %{pref}
-# They conflict with each other
-%if %{debug}
-Conflicts: wxPython%{port}_py%{pyver}
-%else
-Conflicts: wxPython%{port}_py%{pyver}_dbg
-%endif
-
Provides: wxwin
Provides: wx%{port} = %{version}
Provides: wxPython = %{version}
-# ?? Obsoletes: wx%{port}, wxPython
-# Some funky mandrake names
-Conflicts: wxGTK2.3, wxGTK6
+# They conflict with each other, so let them replace each other
+Obsoletes: %{othername}
+# old wx and wxPython packages
+Obsoletes: wx%{port}, wxPython
+# and some funky mandrake names
+Obsoletes: wxGTK2.3, wxGTK6
%description
%prep
-%setup -n %{tarname}-%{version}
+%setup -q -n %{tarname}-%{version}
%build
--with-libtiff=builtin \
--with-zlib=builtin \
+## --enable-debug_flag \
+
# Build wxWindows
$MAKE
%clean
-##[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
+#[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post