]> git.pld-linux.org Git - packages/wxWidgets.git/blobdiff - wxWidgets.spec
- added format patch to allow build with -Werror=format-security
[packages/wxWidgets.git] / wxWidgets.spec
index 2881cace023a73a9d86eeddc18c91213a039fb13..aa844f304584816f2ec77ec39f50214a2970adb0 100644 (file)
 Summary:       wxWidgets library
 Summary(pl.UTF-8):     Biblioteka wxWidgets
 Name:          wxWidgets
-Version:       2.8.8
-Release:       1
+Version:       2.8.12
+Release:       4
 License:       wxWindows Library Licence 3.1 (LGPL v2+ with exception)
 Group:         X11/Libraries
 Source0:       http://ftp.wxwidgets.org/pub/%{version}/%{name}-%{version}.tar.bz2
-# Source0-md5: 647b94f636db8f3e6ba7170d0d691eb6
+# Source0-md5: 4103e37e277abeb8aee607b990c215c4
 Patch0:                %{name}-samples.patch
 Patch1:                %{name}-ogl.patch
 Patch2:                %{name}-ac.patch
 Patch3:                %{name}-x11unicode.patch
 Patch4:                %{name}-gcc4.patch
+Patch5:                wxGTK-2.8.10.1-odbc-defines.patch
+Patch6:                %{name}-cairo.patch
+Patch7:                %{name}-format.patch
 URL:           http://www.wxWidgets.org/
 BuildRequires: OpenGL-GLU-devel
 #BuildRequires:        SDL-devel
 BuildRequires: autoconf >= 2.59-9
 BuildRequires: automake
-#BuildRequires:        bakefile >= 0.2.1
-BuildRequires: cppunit-devel
-BuildRequires: esound-devel
+# for m4 files
+BuildRequires: bakefile >= 0.2.9
+BuildRequires: cairo-devel
+BuildRequires: cppunit-devel >= 1.8.0
 BuildRequires: expat-devel
-BuildRequires: flex
 BuildRequires: gettext-devel
 BuildRequires: gtk+2-devel >= 2.0.0
 %{?with_gnomeprint:BuildRequires:      libgnomeprintui-devel >= 2.8.0}
 BuildRequires: libjpeg-devel
-BuildRequires: libmng-devel
 BuildRequires: libmspack-devel
 BuildRequires: libpng-devel
 BuildRequires: libstdc++-devel
 BuildRequires: libtiff-devel
 BuildRequires: libtool
 BuildRequires: pkgconfig
+%{?with_odbc:BuildRequires:    unixODBC-devel}
 %{?with_x11:BuildRequires:     xorg-lib-libXext-devel}
+%{?with_x11:BuildRequires:     xorg-lib-libXt-devel}
 # these are not supported by wxWidgets
 Obsoletes:     LDAPExplorerTool <= 0.6-1
 Obsoletes:     abridge <= 0.4.0-1
@@ -466,10 +470,16 @@ obsługą UNICODE.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
+# is this still needed?
+#%patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+
+%{__rm} build/aclocal/bakefile*.m4
 
 %build
 # if bakefiles rebuild is needed:
@@ -482,17 +492,19 @@ cp -f /usr/share/automake/config.sub .
 %{__aclocal} -I build/aclocal
 %{__autoconf}
 
-CPPFLAGS="%{rpmcflags} -I`pwd`/include"; export CPPFLAGS
+CPPFLAGS="%{rpmcppflags} %{rpmcflags} -fPIC -I`pwd`/include"; export CPPFLAGS
 # avoid adding -s to LDFLAGS
 LDFLAGS=" "; export LDFLAGS
 args="%{?with_debug:--enable-debug}%{!?with_debug:--disable-debug} \
+       ac_cv_lib_iodbc_SQLAllocEnv=no \
+       ac_cv_lib_unixodbc_SQLAllocEnv=no \
+       --enable-calendar \
+       --enable-controls \
        --enable-plugins \
        --enable-std_iostreams \
+       --enable-tabdialog \
        --without-sdl \
-       --with-opengl \
-       --enable-calendar \
-       --enable-controls \
-       --enable-tabdialog"
+       --with-opengl"
 
 gui='--with-gtk'
 for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
@@ -503,6 +515,7 @@ for unicode in %{?with_ansi:'--disable-unicode %{?with_odbc:--with-odbc}'} \
        ../%configure \
                ${args} \
                ${gui} \
+               --enable-graphics_ctx \
                --disable-universal \
                ${unicode} \
                %{!?with_gnomeprint:--without-gnomeprint}
This page took 0.047072 seconds and 4 git commands to generate.