%define pref /usr
-%define ver 2.7.0
-%define ver2 2.7
+%define ver 2.9.1
+%define ver2 2.9
%define rel 1
# Configurable settings (use --with(out) unicode on rpmbuild command line):
%if %{unicode}
--enable-unicode
%else
- --with-odbc
+ --disable-unicode \
%endif
$MAKE
cd ..
%if %{unicode}
--enable-unicode
%else
- --with-odbc
+ --disable-unicode \
%endif
$MAKE
cd ..
make -C obj-static DESTDIR=$RPM_BUILD_ROOT prefix=%{pref} install
make -C obj-shared DESTDIR=$RPM_BUILD_ROOT prefix=%{pref} install
+# we need to modify the absolute wx-config link to be relative or rpm complains
+# (and our package wouldn't be relocatable)
+ln -sf ../lib/wx/config/%{wxconfig} $RPM_BUILD_ROOT/%{pref}/bin/wx-config
+
%find_lang wxstd
%clean