- added multilib-aware wrapper for wx-config

This commit is contained in:
Dan Horák 2009-11-20 12:45:25 +00:00
parent 9d30430183
commit db1199232a
2 changed files with 43 additions and 4 deletions

36
wx-config Normal file
View File

@ -0,0 +1,36 @@
#! /bin/sh
#
# Multilib-aware wrapper for the wx-config script
#
# Usage: wx-config [arch]
#
if [ $# -eq 1 ]; then
arch=$1
elif [ $# -eq 0 ]; then
arch=`uname -m`
else
echo "Usage: $0 [arch]"
exit 1
fi
case $arch in
i?86|ppc|s390|sparc|arm*|ia64)
libdir=/usr/lib
;;
x86_64|ppc64|s390x|sparc64)
libdir=/usr/lib64
;;
*)
echo "Unsupported architecture '$arch'"
exit 2
;;
esac
wxconfig=$libdir/wx/config/gtk2-unicode-release-2.8
if [ -x $wxconfig ]; then
exec $wxconfig
else
echo "wxGTK-devel isn't installed for architecture '$arch'"
exit 3
fi

View File

@ -1,11 +1,12 @@
Name: wxGTK
Version: 2.8.10
Release: 7%{?dist}
Release: 8%{?dist}
Summary: GTK2 port of the wxWidgets GUI library
License: wxWidgets
Group: System Environment/Libraries
URL: http://www.wxwidgets.org/
Source0: http://dl.sf.net/wxwindows/%{name}-%{version}.tar.bz2
Source1: wx-config
# http://trac.wxwidgets.org/ticket/10883
Patch0: %{name}-2.8.10-gsocket.patch
@ -154,10 +155,9 @@ rm -rf $RPM_BUILD_ROOT
%makeinstall -C contrib/src/svg
# this ends up being a symlink into the buildroot directly --
# not what we want!
# install our multilib-aware wrapper
rm $RPM_BUILD_ROOT%{_bindir}/wx-config
ln -s %{_libdir}/wx/config/gtk2-unicode-release-2.8 $RPM_BUILD_ROOT%{_bindir}/wx-config
install -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/wx-config
# we don't support bakefiles
rm -rf $RPM_BUILD_ROOT%{_datadir}/bakefile
@ -231,6 +231,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Nov 20 2009 Dan Horák <dan[at]danny.cz> - 2.8.10-8
- added multilib-aware wrapper for wx-config
* Tue Nov 10 2009 Dan Horák <dan[at]danny.cz> - 2.8.10-7
- added fix for html tables rendering (#534030)
- removed the long time disabled odbc subpackage