]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/distrib/makerpm
Added RTLD_GLOBAL to dlopen() flags which is needed if libraries depend
[wxWidgets.git] / utils / wxPython / distrib / makerpm
CommitLineData
e6c95f27
RD
1#!/bin/bash
2
3if [ -z $1 ]; then
4 echo "Please specify a version number on the command line."
5 exit 1
6fi
7
8if [ ! -f wxPython.spec.in ]; then
9 echo "Please run this script from the directory containing the wxPython.spec.in file."
10 exit 1
11fi
12
13
14
77ed579e
RD
15strip /usr/lib/python1.5/site-packages/wxPython/*.so
16strip /usr/lib/libwxPyHelpers.so
e6c95f27
RD
17
18cat wxPython.spec.in | sed s/__VERSION__/$1/g > wxPython.spec
e6c95f27 19
2d9f5597
RD
20mkdir /usr/doc/wxPython-$1
21cp ../README.txt /usr/doc/wxPython-$1
77ed579e
RD
22cp ../../../docs/preamble.txt /usr/doc/wxPython-$1
23cp ../../../docs/licence.txt /usr/doc/wxPython-$1
24cp ../../../docs/licendoc.txt /usr/doc/wxPython-$1
25cp ../../../docs/lgpl.txt /usr/doc/wxPython-$1
26cp ../../../docs/gpl.txt /usr/doc/wxPython-$1
2d9f5597
RD
27
28rpm -bb wxPython.spec
29
30mv /usr/src/redhat/RPMS/*/wxPython*.rpm .
9b5801d6 31chown rd:users wxPython*.rpm
2d9f5597
RD
32
33rm -r /usr/doc/wxPython-$1