-%define pref /opt/gnome
+%define _prefix /opt/gnome
%define ver 2.6.0
%define ver2 2.6
%define rel 1
%if %{unicode}
%define buildname gtk2u
%else
- %define buildname gtk2u
+ %define buildname gtk2
%endif
%else
%define gtkver 1.2
Source: wxGTK-%{ver}.tar.gz
URL: http://www.wxwidgets.org
Packager: Vadim Zeitlin <vadim@wxwindows.org>
-Prefix: %{pref}
+Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-root
Requires: %{wxbasename} = %{ver}
%if %{portname} == gtk2
mkdir obj-shared-no-gui
cd obj-shared-no-gui
-../configure --prefix=%{pref} \
+../configure --prefix=%{_prefix} \
--disable-gui \
- --disable-optimise \
%if %{unicode}
--enable-unicode
%else
mkdir obj-shared
cd obj-shared
-../configure --prefix=%{pref} \
+../configure --prefix=%{_prefix} \
%if ! %{gtk2}
- --with-gtk1 \
+ --disable-gtk2 \
%else
- --with-gtk2 \
+ --enable-gtk2 \
%endif
- --disable-optimise \
%if %{unicode}
--enable-unicode \
%else
mkdir obj-static-no-gui
cd obj-static-no-gui
-../configure --prefix=%{pref} \
+../configure --prefix=%{_prefix} \
--disable-gui \
--disable-shared \
- --disable-optimise \
%if %{unicode}
--enable-unicode
%else
mkdir obj-static
cd obj-static
-../configure --prefix=%{pref} \
+../configure --prefix=%{_prefix} \
%if ! %{gtk2}
- --with-gtk1 \
+ --disable-gtk2 \
%else
- --with-gtk2 \
+ --enable-gtk2 \
%endif
--disable-shared \
- --disable-optimise \
%if %{unicode}
--enable-unicode \
%else
%install
rm -rf $RPM_BUILD_ROOT
-(cd obj-static-no-gui; make prefix=$RPM_BUILD_ROOT/usr install)
-(cd obj-static; make prefix=$RPM_BUILD_ROOT/usr install)
-(cd obj-shared-no-gui; make prefix=$RPM_BUILD_ROOT/usr install)
-(cd obj-shared; make prefix=$RPM_BUILD_ROOT/usr install)
+(cd obj-static-no-gui; make DESTDIR=$RPM_BUILD_ROOT install)
+(cd obj-static; make DESTDIR=$RPM_BUILD_ROOT install)
+(cd obj-shared-no-gui; make DESTDIR=$RPM_BUILD_ROOT install)
+(cd obj-shared; make DESTDIR=$RPM_BUILD_ROOT install)
# --- wxBase headers list begins here ---
cat <<EOF >wxbase-headers.files
wx/db.h
wx/dbkeyg.h
wx/dbtable.h
+wx/unix/apptbase.h
+wx/unix/apptrait.h
+wx/unix/execute.h
+wx/unix/gsockunx.h
+wx/unix/mimetype.h
+wx/unix/pipe.h
+wx/unix/stackwalk.h
+wx/unix/stdpaths.h
EOF
# --- wxBase headers list ends here ---
cat <<EOF >wxbase-headers.paths
%{_includedir}/wx-%{ver2}/wx/db.h
%{_includedir}/wx-%{ver2}/wx/dbkeyg.h
%{_includedir}/wx-%{ver2}/wx/dbtable.h
+%{_includedir}/wx-%{ver2}/wx/unix/apptbase.h
+%{_includedir}/wx-%{ver2}/wx/unix/apptrait.h
+%{_includedir}/wx-%{ver2}/wx/unix/execute.h
+%{_includedir}/wx-%{ver2}/wx/unix/gsockunx.h
+%{_includedir}/wx-%{ver2}/wx/unix/mimetype.h
+%{_includedir}/wx-%{ver2}/wx/unix/pipe.h
+%{_includedir}/wx-%{ver2}/wx/unix/stackwalk.h
+%{_includedir}/wx-%{ver2}/wx/unix/stdpaths.h
EOF
# --- wxBase headers list ends here ---
rm -rf $RPM_BUILD_ROOT/_save_dir
# contrib stuff:
-(cd obj-shared/contrib/src; make prefix=$RPM_BUILD_ROOT/usr install)
-(cd obj-shared/utils/wxrc; make prefix=$RPM_BUILD_ROOT/usr install)
+(cd obj-shared/contrib/src; make DESTDIR=$RPM_BUILD_ROOT install)
+(cd obj-shared/utils/wxrc; make DESTDIR=$RPM_BUILD_ROOT install)
%clean
rm -rf $RPM_BUILD_ROOT