-mkdir i386
strip /usr/lib/python1.5/site-packages/wxPython/wxcmodule.so
cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec
-rpm --rcfile .rpmrc -bb wxPython.spec
-mv i386/*.rpm .
-rm -rf i386
+mkdir /usr/doc/wxPython-$1
+cp ../README.txt /usr/doc/wxPython-$1
+
+rpm -bb wxPython.spec
+
+mv /usr/src/redhat/RPMS/*/wxPython*.rpm .
+
+rm -r /usr/doc/wxPython-$1
\ No newline at end of file
wxPython/lib/*.py
wxPython/lib/*.txt
+wxPython/lib/sizers/*.py
+wxPython/lib/sizers/*.txt
wxPython/src/*.i
wxPython/src/gtk/*.h
wxPython/src/gtk/*.py
-wxPython/src/motif/*.cpp
+wxpython/src/motif/*.cpp
wxPython/src/motif/*.h
wxPython/src/motif/*.py
wxPython/src/qt/*.py
wxPython/SWIG.patches/*.patch
-
-
Summary: Cross platform GUI toolkit for use with the Python language.
Name: wxPython
Version: __VERSION__
-Release: 3
+Release: 1
Copyright: wxWindows
Group: Development/Languages/Python
Source: http://alldunn.com/wxPython/wxPython-__VERSION__.tar.gz
#make install
%files
-%doc ../README.txt
+%doc /usr/doc/wxPython-__VERSION__/README.txt
/usr/lib/python1.5/site-packages/wxPython
-for i in $(PYMODULES); do \
cp $$i $(TARGETDIR); \
done
- if [ "$(TARGETDIR)" != ".." ]; then \
- mkdir $(TARGETDIR)/lib; \
- mkdir $(TARGETDIR)/demo; \
- cp ../lib/*.py $(TARGETDIR)/lib; \
- cp ../demo/*.py $(TARGETDIR)/demo; \
- cp ../lib/*.txt $(TARGETDIR)/lib; \
- cp ../demo/*.txt $(TARGETDIR)/demo;\
+ if [ "$(TARGETDIR)" != ".." ]; then \
+ mkdir $(TARGETDIR)/lib; \
+ mkdir $(TARGETDIR)/lib/sizers; \
+ mkdir $(TARGETDIR)/demo; \
+ mkdir $(TARGETDIR)/demo/bitmaps; \
+ cp ../lib/*.py $(TARGETDIR)/lib; \
+ cp ../lib/sizers/*.py $(TARGETDIR)/lib/sizers; \
+ cp ../demo/*.py $(TARGETDIR)/demo; \
+ cp ../lib/*.txt $(TARGETDIR)/lib; \
+ cp ../lib/sizers/*.txt $(TARGETDIR)/lib/sizers; \
+ cp ../demo/*.txt $(TARGETDIR)/demo; \
+ cp ../demo/bitmaps/[a-z]* $(TARGETDIR)/demo/bitmaps; \
fi
if [ "$(TARGETDIR)" != ".." ]; then \
python $(LIBDEST)/compileall.py $(TARGETDIR); \