Switched back to "PyCrust.ico" because Windows explorer can apparently
only associate one "py.ico" at a time, even if they are located in different directories. Also added Linux /usr/lib/menu entries for the Py apps and XRCed when building the RPMs. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,7 +96,7 @@ Source: "wxPython\lib\colourchooser\*.py"; DestDir: "{app}\wxPython\lib\colourc
|
|||||||
Source: "wxPython\py\*.py"; DestDir: "{app}\wxPython\py"; Components: core
|
Source: "wxPython\py\*.py"; DestDir: "{app}\wxPython\py"; Components: core
|
||||||
Source: "wxPython\py\*.txt"; DestDir: "{app}\wxPython\py"; Components: core
|
Source: "wxPython\py\*.txt"; DestDir: "{app}\wxPython\py"; Components: core
|
||||||
Source: "wxPython\py\*.ico"; DestDir: "{app}\wxPython\py"; Components: core
|
Source: "wxPython\py\*.ico"; DestDir: "{app}\wxPython\py"; Components: core
|
||||||
Source: "wxPython\py\Py.ico"; DestDir: "{app}\wxPython\py"; DestName: "PyCrust.ico"; Components: core
|
Source: "wxPython\py\PyCrust.ico"; DestDir: "{app}\wxPython\py"; Components: core
|
||||||
Source: "wxPython\py\tests\*.py"; DestDir: "{app}\wxPython\py\tests"; Components: core
|
Source: "wxPython\py\tests\*.py"; DestDir: "{app}\wxPython\py\tests"; Components: core
|
||||||
Source: "wxPython\py\wxd\*.py"; DestDir: "{app}\wxPython\py\wxd"; Components: core
|
Source: "wxPython\py\wxd\*.py"; DestDir: "{app}\wxPython\py\wxd"; Components: core
|
||||||
|
|
||||||
|
@@ -47,7 +47,6 @@ Packager: Robin Dunn <robin@alldunn.com>
|
|||||||
Group: Development/Python
|
Group: Development/Python
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||||
Prefix: %{pref}
|
Prefix: %{pref}
|
||||||
#BuildRequires: %{python}
|
|
||||||
|
|
||||||
Provides: wxPython = %{version}
|
Provides: wxPython = %{version}
|
||||||
Provides: wxPython%{port} = %{version}
|
Provides: wxPython%{port} = %{version}
|
||||||
@@ -58,7 +57,6 @@ Provides: libwx_%{lcport}%{uniflg}%{dbgflg}_gl-%{ver2}.so
|
|||||||
Provides: libwx_%{lcport}%{uniflg}%{dbgflg}_gl-%{ver2}.so(WX%{port}%{UNIFLG}%{DBGFLG}_%{ver2})
|
Provides: libwx_%{lcport}%{uniflg}%{dbgflg}_gl-%{ver2}.so(WX%{port}%{UNIFLG}%{DBGFLG}_%{ver2})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# old wxPython packages
|
# old wxPython packages
|
||||||
Obsoletes: wxPython wxPython%{port}
|
Obsoletes: wxPython wxPython%{port}
|
||||||
|
|
||||||
@@ -138,8 +136,6 @@ cd $WXDIR/wxPython
|
|||||||
WX_CONFIG="$WXDIR/build/wx-config --prefix=$WXDIR --exec-prefix=$WXDIR/build" \
|
WX_CONFIG="$WXDIR/build/wx-config --prefix=$WXDIR --exec-prefix=$WXDIR/build" \
|
||||||
build
|
build
|
||||||
|
|
||||||
## WX_CONFIG="$WXDIR/build/wx-config --inplace --prefix=$RPM_BUILD_ROOT%{wxpref}" \
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Build wxrc (XRC resource tool) but don't use the makefiles since they expect
|
# Build wxrc (XRC resource tool) but don't use the makefiles since they expect
|
||||||
@@ -149,7 +145,7 @@ WX_CONFIG="$WXDIR/build/wx-config --prefix=$WXDIR --exec-prefix=$WXDIR/build"
|
|||||||
wCC=`$WX_CONFIG --cc`
|
wCC=`$WX_CONFIG --cc`
|
||||||
wCXX=`$WX_CONFIG --cxx`
|
wCXX=`$WX_CONFIG --cxx`
|
||||||
|
|
||||||
for f in wxrc.cpp ../../src/xrc/*.cpp; do
|
for f in wxrc.cpp ../../src/xrc/xml.cpp ../../src/xrc/xmlres.cpp; do
|
||||||
echo $f
|
echo $f
|
||||||
$wCXX `$WX_CONFIG --cxxflags` -I ../../include -I ../../src/xrc/expat/xmlparse -I ../../src/xrc/expat/xmltok -c $f
|
$wCXX `$WX_CONFIG --cxxflags` -I ../../include -I ../../src/xrc/expat/xmlparse -I ../../src/xrc/expat/xmltok -c $f
|
||||||
done
|
done
|
||||||
@@ -158,9 +154,6 @@ for f in ../../src/xrc/expat/xmlparse/xmlparse.c ../../src/xrc/expat/xmltok/xmlr
|
|||||||
$wCC `$WX_CONFIG --cxxflags` -I ../../include -I ../../src/xrc/expat/xmlparse -I ../../src/xrc/expat/xmltok -c $f
|
$wCC `$WX_CONFIG --cxxflags` -I ../../include -I ../../src/xrc/expat/xmlparse -I ../../src/xrc/expat/xmltok -c $f
|
||||||
done
|
done
|
||||||
|
|
||||||
# the handlers are not needed
|
|
||||||
rm xh_*.o xmlrsall.o
|
|
||||||
|
|
||||||
$wCXX `$WX_CONFIG --libs` *.o -o wxrc
|
$wCXX `$WX_CONFIG --libs` *.o -o wxrc
|
||||||
strip wxrc
|
strip wxrc
|
||||||
|
|
||||||
@@ -214,6 +207,35 @@ done
|
|||||||
cp $WXDIR/contrib/utils/wxrc/wxrc $RPM_BUILD_ROOT/%{pref}/bin
|
cp $WXDIR/contrib/utils/wxrc/wxrc $RPM_BUILD_ROOT/%{pref}/bin
|
||||||
|
|
||||||
|
|
||||||
|
# Copy icons and make menu entries
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_iconsdir}
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_miconsdir}
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_menudir}
|
||||||
|
install -p -m 644 $WXDIR/wxPython/wxPython/py/PyCrust_32.png $RPM_BUILD_ROOT/%{_iconsdir}/PyCrust.png
|
||||||
|
install -p -m 644 $WXDIR/wxPython/wxPython/py/PyCrust_16.png $RPM_BUILD_ROOT/%{_miconsdir}/PyCrust.png
|
||||||
|
install -p -m 644 $WXDIR/wxPython/wxPython/tools/XRCed/XRCed_32.png $RPM_BUILD_ROOT/%{_iconsdir}/XRCed.png
|
||||||
|
install -p -m 644 $WXDIR/wxPython/wxPython/tools/XRCed/XRCed_16.png $RPM_BUILD_ROOT/%{_miconsdir}/XRCed.png
|
||||||
|
|
||||||
|
cat > $RPM_BUILD_ROOT/%{_menudir}/%{name} <<EOF
|
||||||
|
?package(%{name}): command="%_bindir/pyshell" needs="X11" \
|
||||||
|
icon="PyCrust.png" section="Applications/Development" \
|
||||||
|
title="PyShell" longtitle="Python Shell"
|
||||||
|
|
||||||
|
?package(%{name}): command="%_bindir/pycrust" needs="X11" \
|
||||||
|
icon="PyCrust.png" section="Applications/Development" \
|
||||||
|
title="PyCrust" longtitle="Python Shell with Filling"
|
||||||
|
|
||||||
|
?package(%{name}): command="%_bindir/pyalamode" needs="X11" \
|
||||||
|
icon="PyCrust.png" section="Applications/Development" \
|
||||||
|
title="PyAlaMode" longtitle="Python Shell with Filling and editor windows"
|
||||||
|
|
||||||
|
?package(%{name}): command="%_bindir/xrced" needs="X11" \
|
||||||
|
icon="XRCed.png" section="Applications/Development" \
|
||||||
|
title="XRCed" longtitle="wxPython XRC resource editor"
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
# Generate the filelists. For some reason the %defattr below is still
|
# Generate the filelists. For some reason the %defattr below is still
|
||||||
# resulting in many (but not all) files not owned by root when just
|
# resulting in many (but not all) files not owned by root when just
|
||||||
# specifying directories and wildcards to be included in each package.
|
# specifying directories and wildcards to be included in each package.
|
||||||
@@ -231,6 +253,8 @@ $GFL $RPM_BUILD_ROOT %{wxpref} >> FILELIST
|
|||||||
$GFL $RPM_BUILD_ROOT %{wxpref}/lib >> FILELIST
|
$GFL $RPM_BUILD_ROOT %{wxpref}/lib >> FILELIST
|
||||||
$GFL $RPM_BUILD_ROOT "%{wxpref}/lib/libwx*" >> FILELIST
|
$GFL $RPM_BUILD_ROOT "%{wxpref}/lib/libwx*" >> FILELIST
|
||||||
$GFL -r $RPM_BUILD_ROOT %{wxpref}/share >> FILELIST
|
$GFL -r $RPM_BUILD_ROOT %{wxpref}/share >> FILELIST
|
||||||
|
#GFL -r $RPM_BUILD_ROOT %{_iconsdir} >> FILELIST
|
||||||
|
$GFL -r $RPM_BUILD_ROOT %{_menudir} >> FILELIST
|
||||||
|
|
||||||
$GFL $RPM_BUILD_ROOT %{wxpref}/include > DEVELLIST
|
$GFL $RPM_BUILD_ROOT %{wxpref}/include > DEVELLIST
|
||||||
$GFL -r $RPM_BUILD_ROOT %{wxpref}/include/wx >> DEVELLIST
|
$GFL -r $RPM_BUILD_ROOT %{wxpref}/include/wx >> DEVELLIST
|
||||||
@@ -239,6 +263,13 @@ $GFL $RPM_BUILD_ROOT %{wxconfigname} >> DEVELLIST
|
|||||||
$GFL $RPM_BUILD_ROOT %{wxpref}/bin/wx-config >> DEVELLIST
|
$GFL $RPM_BUILD_ROOT %{wxpref}/bin/wx-config >> DEVELLIST
|
||||||
|
|
||||||
|
|
||||||
|
#----------------------------------------------------------------
|
||||||
|
%post
|
||||||
|
%{update_menus}
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%{clean_menus}
|
||||||
|
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
%clean
|
%clean
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
BIN
wxPython/wxPython/py/PyCrust.ico
Normal file
BIN
wxPython/wxPython/py/PyCrust.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
BIN
wxPython/wxPython/py/PyCrust_16.png
Normal file
BIN
wxPython/wxPython/py/PyCrust_16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 706 B |
BIN
wxPython/wxPython/py/PyCrust_32.png
Normal file
BIN
wxPython/wxPython/py/PyCrust_32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
wxPython/wxPython/tools/XRCed/XRCed_16.png
Normal file
BIN
wxPython/wxPython/tools/XRCed/XRCed_16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 542 B |
BIN
wxPython/wxPython/tools/XRCed/XRCed_32.png
Normal file
BIN
wxPython/wxPython/tools/XRCed/XRCed_32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 677 B |
Reference in New Issue
Block a user