Some slight cleanup and reorganization
Added support for making RPM distribution git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
6
utils/wxPython/distrib/.cvsignore
Normal file
6
utils/wxPython/distrib/.cvsignore
Normal file
@@ -0,0 +1,6 @@
|
||||
*.gz
|
||||
*.rpm
|
||||
*.zip
|
||||
filelist
|
||||
wxPython.spec
|
||||
wxp2.wse
|
5
utils/wxPython/distrib/.rpmrc
Normal file
5
utils/wxPython/distrib/.rpmrc
Normal file
@@ -0,0 +1,5 @@
|
||||
sourcedir : .
|
||||
builddir : .
|
||||
rpmdir : .
|
||||
srcrpmdir : .
|
||||
|
22
utils/wxPython/distrib/makerpm
Executable file
22
utils/wxPython/distrib/makerpm
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z $1 ]; then
|
||||
echo "Please specify a version number on the command line."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f wxPython.spec.in ]; then
|
||||
echo "Please run this script from the directory containing the wxPython.spec.in file."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
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 --clean wxPython.spec
|
||||
|
||||
mv i386/*.rpm .
|
||||
rm -rf i386
|
36
utils/wxPython/distrib/maketgz
Executable file
36
utils/wxPython/distrib/maketgz
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
#----------------------------------------------------------------------
|
||||
# Make a source distribution as a tar.gz file. This script should be
|
||||
# run from the directory that holds the wxPython dir (../..) and be
|
||||
# given a version number as an parameter. The best way to do this is
|
||||
# run "make dist" in the wxPython/src/ directory.
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
if [ -z $1 ]; then
|
||||
echo "Please specify a version number on the command line."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d wxPython ]; then
|
||||
echo "Please run this script from the directory containing the wxPython sources."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
rm -f wxPython/distrib/filelist
|
||||
for x in `cat wxPython/distrib/wxPython.rsp`; do
|
||||
ls $x >> wxPython/distrib/filelist
|
||||
done
|
||||
|
||||
|
||||
tar cf wxPython/distrib/dist-temp.tar -T wxPython/distrib/filelist
|
||||
cd wxPython/distrib
|
||||
tar xf dist-temp.tar
|
||||
rm dist-temp.tar
|
||||
mv wxPython wxPython-$1
|
||||
|
||||
tar cvf wxPython-$1.tar wxPython-$1
|
||||
gzip wxPython-$1.tar
|
||||
|
||||
rm -rf wxPython-$1
|
||||
|
@@ -1,38 +1,44 @@
|
||||
wxPython\*.txt
|
||||
wxPython/*.txt
|
||||
|
||||
wxPython\demo\*.py
|
||||
wxPython\demo\bitmaps\*.bmp
|
||||
wxPython\demo\bitmaps\*.ico
|
||||
wxPython\demo\README.txt
|
||||
wxPython/demo/*.py
|
||||
wxPython/demo/bitmaps/*.bmp
|
||||
wxPython/demo/bitmaps/*.ico
|
||||
wxPython/demo/bitmaps/*.gif
|
||||
wxPython/demo/bitmaps/*.png
|
||||
wxPython/demo/bitmaps/*.jpg
|
||||
wxPython/demo/README.txt
|
||||
|
||||
wxPython/lib/*.py
|
||||
wxPython/lib/*.txt
|
||||
|
||||
|
||||
wxPython\src\*.i
|
||||
wxPython\src\*.py
|
||||
wxPython\src\*.cpp
|
||||
wxPython\src\*.h
|
||||
wxPython\src\*.ico
|
||||
wxPython\src\*.def
|
||||
wxPython\src\*.rc
|
||||
wxPython\src\makefile.*
|
||||
wxPython\src\Makefile.pre.in
|
||||
wxPython\src\Setup.*
|
||||
wxPython/src/*.i
|
||||
wxPython/src/*.py
|
||||
wxPython/src/*.cpp
|
||||
wxPython/src/*.h
|
||||
wxPython/src/*.ico
|
||||
wxPython/src/*.def
|
||||
wxPython/src/*.rc
|
||||
wxPython/src/makefile.*
|
||||
wxPython/src/Makefile.pre.in
|
||||
wxPython/src/Setup.*
|
||||
|
||||
wxPython\src\msw\*.cpp
|
||||
wxPython\src\msw\*.h
|
||||
wxPython\src\msw\*.py
|
||||
wxPython/src/msw/*.cpp
|
||||
wxPython/src/msw/*.h
|
||||
wxPython/src/msw/*.py
|
||||
|
||||
wxPython\src\gtk\*.cpp
|
||||
wxPython\src\gtk\*.h
|
||||
wxPython\src\gtk\*.py
|
||||
wxPython/src/gtk/*.cpp
|
||||
wxPython/src/gtk/*.h
|
||||
wxPython/src/gtk/*.py
|
||||
|
||||
wxPython\src\motif\*.cpp
|
||||
wxPython\src\motif\*.h
|
||||
wxPython\src\motif\*.py
|
||||
wxPython/src/motif/*.cpp
|
||||
wxPython/src/motif/*.h
|
||||
wxPython/src/motif/*.py
|
||||
|
||||
wxPython\src\qt\*.cpp
|
||||
wxPython\src\qt\*.h
|
||||
wxPython\src\qt\*.py
|
||||
wxPython/src/qt/*.cpp
|
||||
wxPython/src/qt/*.h
|
||||
wxPython/src/qt/*.py
|
||||
|
||||
wxPython\SWIG.patches\*.patch
|
||||
wxPython/SWIG.patches/*.patch
|
||||
|
||||
|
||||
|
44
utils/wxPython/distrib/wxPython.spec.in
Normal file
44
utils/wxPython/distrib/wxPython.spec.in
Normal file
@@ -0,0 +1,44 @@
|
||||
Summary: Cross platform GUI toolkit for use with the Python language.
|
||||
Name: wxPython
|
||||
Version: __VERSION__
|
||||
Release: 2
|
||||
Copyright: wxWindows
|
||||
Group: Development/Languages/Python
|
||||
Source: http://alldunn.com/wxPython/wxPython-__VERSION__.tar.gz
|
||||
Packager: Robin Dunn <robin@alldunn.com>
|
||||
Vendor: Total Control Software
|
||||
|
||||
|
||||
%description
|
||||
|
||||
This Python package consists of an extension module that wraps around the
|
||||
wxWindows C++ class library and provides a cross platform GUI toolkit for
|
||||
use with Python. Currently supported platforms are Win32 and Unix/GTK/X.
|
||||
|
||||
Python is an interpreted, interactive, object-oriented programming language.
|
||||
Python combines remarkable power with very clear syntax. It has modules,
|
||||
classes, exceptions, very high level dynamic data types, and dynamic typing.
|
||||
There are interfaces to many system calls and libraries, and new built-in
|
||||
modules are easily written in C or C++. Python is also usable as an
|
||||
extension language for applications that need a programmable interface.
|
||||
|
||||
#%prep
|
||||
#%setup
|
||||
#cd wxPython-__VERSION__
|
||||
#make -f Makefile.pre.in boot
|
||||
#
|
||||
#%build
|
||||
#make OPT=-O2
|
||||
#
|
||||
#
|
||||
#%install
|
||||
#make install
|
||||
|
||||
%files
|
||||
%doc ../README.txt
|
||||
/usr/lib/python1.5/site-packages/wxPython
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user