]> git.pld-linux.org Git - packages/crossmingw32-gtk+2.git/blobdiff - crossmingw32-gtk+2.spec
- updated to 2.24.28
[packages/crossmingw32-gtk+2.git] / crossmingw32-gtk+2.spec
index 3999a3c88b8cf83812532014d536f85cdd2795bd..fe6b3fcc3169d67dc8f8d377c18782e610e4d227 100644 (file)
@@ -1,16 +1,17 @@
 Summary:       The GIMP Toolkit - MinGW32 cross version
 Summary(pl.UTF-8):     GIMP Toolkit - wersja skrośna dla MinGW32
 Name:          crossmingw32-gtk+2
-Version:       2.24.14
+Version:       2.24.28
 Release:       1
 License:       LGPL v2+
 Group:         Development/Libraries
 Source0:       http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.24/gtk+-%{version}.tar.xz
-# Source0-md5: e2c16f119ed624893ecfc3775930ae4c
+# Source0-md5: bfacf87b2ea67e4e5c7866a9003e6526
 URL:           http://www.gtk.org/
 BuildRequires: autoconf >= 2.62
 BuildRequires: automake >= 1:1.7
 BuildRequires: crossmingw32-atk >= 1.30.0
+BuildRequires: crossmingw32-cairo >= 1.6
 BuildRequires: crossmingw32-gcc
 BuildRequires: crossmingw32-gdk-pixbuf2 >= 2.22.0
 BuildRequires: crossmingw32-glib2 >= 2.28.0
@@ -21,6 +22,7 @@ BuildRequires:        pkgconfig >= 1:0.15
 BuildRequires: tar >= 1:1.22
 BuildRequires: xz
 Requires:      crossmingw32-atk >= 1.30.0
+Requires:      crossmingw32-cairo >= 1.6
 Requires:      crossmingw32-gdk-pixbuf2 >= 2.22.0
 Requires:      crossmingw32-glib2 >= 2.28.0
 Requires:      crossmingw32-pango >= 1.28.0
@@ -40,7 +42,10 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                _dlldir                 /usr/share/wine/windows/system
 %define                __cc                    %{target}-gcc
 %define                __cxx                   %{target}-g++
+%define                __pkgconfig_provides    %{nil}
+%define                __pkgconfig_requires    %{nil}
 
+%define                _ssp_cflags             %{nil}
 %ifnarch %{ix86}
 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
 %define                optflags        -O2
@@ -77,6 +82,7 @@ Summary:      DLL GTK+ libraries for Windows
 Summary(pl.UTF-8):     Biblioteki DLL GTK+ dla Windows
 Group:         Applications/Emulators
 Requires:      crossmingw32-atk-dll >= 1.30.0
+Requires:      crossmingw32-cairo-dll >= 1.6
 Requires:      crossmingw32-gdk-pixbuf2-dll >= 2.22.0
 Requires:      crossmingw32-glib2-dll >= 2.28.0
 Requires:      crossmingw32-pango-dll >= 1.28.0
@@ -91,9 +97,17 @@ Biblioteki DLL GTK+ dla Windows.
 %prep
 %setup -q -n gtk+-%{version}
 
+# avoid rebuilding builtin stock icons cache
+# (requires native gtk-update-icon-cache >= 2.24.24 < 3.0)
+touch gtk/stamp-icons gtk/gtkbuiltincache.h
+
+# -Wl, makes recent libtools pass it as linker flag before any objects,
+# which is incompatible with as-needed; use plain -luuid with pass_all
+# hack below
+%{__sed} -i -e 's@-Wl,-luuid@-luuid@' configure.ac
+
 %build
 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
-%{__gtkdocize}
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
@@ -112,6 +126,11 @@ CPPFLAGS="%{rpmcppflags} -DWINVER=0x0500"
        --without-x \
        --without-xinput
 
+# by default mingw32 libtool doesn't allow to embed static libraries
+# in shared libraries (only import libraries are allowed); override this
+# to allow static libuuid
+%{__sed} -i -e 's/^\(deplibs_check_method\)=.*/\1="pass_all"/' libtool
+
 %{__make}
 
 %install
@@ -130,7 +149,7 @@ mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
 %endif
 
 # remove unsupported locale scheme
-%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,gtk-2.0,gtk-doc,locale,man,themes}
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,gtk-2.0,gtk-doc,locale,themes}
 # shut up check-files (static modules and *.la for modules)
 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/modules/*.{a,la}
 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/2.*/*/*.{a,la}
This page took 0.035613 seconds and 4 git commands to generate.