Author: goetz
Date: Fri Feb 16 13:14:39 2007
New Revision: 121674
Modified:
packages/cooker/wxgtk2.8/current/SPECS/wxgtk2.8.spec
Log:
- add more docs
- add the demos
- make the samples build easier
Modified: packages/cooker/wxgtk2.8/current/SPECS/wxgtk2.8.spec
==============================================================================
--- packages/cooker/wxgtk2.8/current/SPECS/wxgtk2.8.spec (original)
+++ packages/cooker/wxgtk2.8/current/SPECS/wxgtk2.8.spec Fri Feb 16
13:14:39 2007
@@ -4,7 +4,7 @@
%define name wxgtk%majorminor
%define version 2.8.0
%define major %majorminor
-%define release %mkrel 1
+%define release %mkrel 2
%define libname %mklibname wxgtk %{major}
%define libgl %mklibname wxgtkgl %{major}
@@ -23,7 +23,6 @@
URL: http://www.wxwindows.org
# http://wxwindows.sourceforge.net/snapshots/wx-cvs-20030817.tar.bz2
Source:
http://prdownloads.sourceforge.net/wxwindows/%fname-%version.tar.bz2
-#Patch1: wxWidgets-2.7.0-locale_to_utf8.patch.bz2
Patch8: wxWidgets-2.7.0-multiarch-includes.patch
Buildrequires: libpng-devel
Buildrequires: zlib-devel
@@ -127,11 +126,12 @@
%prep
%setup -q -n %oname-%version -a 0
-#%patch1 -p1 -b .locale_to_utf8
%patch8 -p1 -b .multiarch
cd %oname-%version
%patch8 -p1
+find samples demos -name .cvsignore -exec rm {} \;
+
%build
export LDFLAGS=-L%_prefix/X11R6/%_lib
%configure2_5x \
@@ -164,7 +164,17 @@
cd contrib
%make
cd ..
-find samples -name .cvsignore -exec rm {} \;
+#gw prepare samples
+cd demos
+make clean
+rm -f makefile* demos.bkl
+cd ../samples
+make clean
+rm -f makefile* samples.bkl
+cd ..
+find demos samples -name Makefile|xargs perl -pi -e 's^CXXC =.*^CXXC=\$(CXX)
`wx-config --cflags`^'
+find demos samples -name Makefile|xargs perl -pi -e 's^EXTRALIBS
=.*^EXTRALIBS=^'
+find demos samples -name Makefile|xargs perl -pi -e 's^SAMPLES_RPATH_FLAG
=.*^SAMPLES_RPATH_FLAG=^'
cd %oname-%version
%configure2_5x --enable-unicode \
@@ -305,7 +315,9 @@
%files -n %{libname}-devel
%defattr(-,root,root,-)
-%doc samples/*
+%doc samples/
+%doc docs/
+%doc demos/
%{_bindir}/wx-config-ansi
%{_bindir}/wxrc-*ansi
%if %mdkversion >= 1020
@@ -349,7 +361,9 @@
%files -n %{libnameu}-devel
%defattr(-,root,root,-)
-%doc samples/*
+%doc samples/
+%doc docs/
+%doc demos/
%{_bindir}/wx-config-unicode
%{_bindir}/wxrc-*unicode
%if %mdkversion >= 1020