1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
10 Summary: MinGW Windows Gtk2 library
13 Group: Development/Libraries
14 URL: http://www.gtk.org
15 Source0: http://download.gnome.org/sources/gtk+/2.14/gtk+-%{version}.tar.bz2
16 Patch1: gtk+-2.11.1-set-invisible-char-to-bullet.patch
17 Patch2: gail-leaks.patch
18 Patch3: info-leak.patch
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
21 # If you want to rebuild this, do:
22 # wine %{_mingw32_bindir}/gdk-pixbuf-query-loaders.exe > gdk-pixbuf.loaders
23 Source1: gdk-pixbuf.loaders
27 BuildRequires: mingw32-filesystem >= 23
28 BuildRequires: mingw32-gcc
29 BuildRequires: mingw32-binutils
30 BuildRequires: mingw32-iconv
31 BuildRequires: mingw32-gettext
32 BuildRequires: mingw32-glib2
33 BuildRequires: mingw32-cairo
34 BuildRequires: mingw32-jasper
35 BuildRequires: mingw32-libpng
36 BuildRequires: mingw32-libjpeg
37 BuildRequires: mingw32-pango
38 BuildRequires: mingw32-atk
39 BuildRequires: pkgconfig
40 # Native one for msgfmt
41 BuildRequires: gettext
42 # Native one for glib-genmarsjal
43 BuildRequires: glib2-devel
44 # Native one for gtk-update-icon-cache
46 # Native one for gdk-pixbuf-csource
47 BuildRequires: gtk2-devel
51 MinGW Windows Gtk2 library.
55 %setup -q -n gtk+-%{version}
61 # Need to run the correct version of glib-mkenums.
62 PATH=%{_mingw32_bindir}:$PATH
64 %{_mingw32_configure} --disable-cups
69 rm -rf $RPM_BUILD_ROOT
71 make DESTDIR=$RPM_BUILD_ROOT install
73 rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
75 # Remove manpages which duplicate those in Fedora native.
76 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
78 # Install gdk-pixbuf.loaders.
79 mkdir -p $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/gtk-2.0/
80 install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/gtk-2.0/
84 rm -rf $RPM_BUILD_ROOT
88 rm -f %{_mingw32_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
93 %{_mingw32_datadir}/gtk-doc/html/gail-libgail-util
94 %{_mingw32_datadir}/gtk-doc/html/gdk-pixbuf
95 %{_mingw32_datadir}/gtk-doc/html/gdk
96 %{_mingw32_datadir}/gtk-doc/html/gtk
97 %{_mingw32_datadir}/locale/*/LC_MESSAGES/gtk20-properties.mo
98 %{_mingw32_datadir}/locale/*/LC_MESSAGES/gtk20.mo
99 %{_mingw32_datadir}/themes/*
100 %{_mingw32_bindir}/gdk-pixbuf-csource.exe
101 %{_mingw32_bindir}/gdk-pixbuf-query-loaders.exe
102 %{_mingw32_bindir}/gtk-builder-convert
103 %{_mingw32_bindir}/gtk-demo.exe
104 %{_mingw32_bindir}/gtk-query-immodules-2.0.exe
105 %{_mingw32_bindir}/gtk-update-icon-cache.exe
106 %{_mingw32_bindir}/libgailutil-18.dll
107 %{_mingw32_bindir}/libgdk-win32-2.0-0.dll
108 %{_mingw32_bindir}/libgdk_pixbuf-2.0-0.dll
109 %{_mingw32_bindir}/libgtk-win32-2.0-0.dll
110 %{_mingw32_libdir}/gtk-2.0/
111 %{_mingw32_libdir}/libgailutil.dll.a
112 %{_mingw32_libdir}/libgailutil.la
113 %{_mingw32_libdir}/libgdk-win32-2.0.dll.a
114 %{_mingw32_libdir}/libgdk-win32-2.0.la
115 %{_mingw32_libdir}/libgdk_pixbuf-2.0.dll.a
116 %{_mingw32_libdir}/libgdk_pixbuf-2.0.la
117 %{_mingw32_libdir}/libgtk-win32-2.0.dll.a
118 %{_mingw32_libdir}/libgtk-win32-2.0.la
119 %{_mingw32_libdir}/gdk_pixbuf-2.0.def
120 %{_mingw32_libdir}/gdk-win32-2.0.def
121 %{_mingw32_libdir}/gtk-win32-2.0.def
122 %{_mingw32_libdir}/pkgconfig/gail.pc
123 %{_mingw32_libdir}/pkgconfig/gdk-2.0.pc
124 %{_mingw32_libdir}/pkgconfig/gdk-win32-2.0.pc
125 %{_mingw32_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
126 %{_mingw32_libdir}/pkgconfig/gtk+-2.0.pc
127 %{_mingw32_libdir}/pkgconfig/gtk+-win32-2.0.pc
128 %{_mingw32_includedir}/gtk-2.0/
129 %{_mingw32_includedir}/gail-1.0/
130 %{_mingw32_sysconfdir}/gtk-2.0/
131 %{_mingw32_datadir}/aclocal/gtk-2.0.m4
132 %{_mingw32_datadir}/gtk-2.0/
136 * Fri Oct 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.2-3
137 - Remove the requirement for Wine at build or install time.
138 - Conflicts with (native) cups-devel.
140 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.2-2
141 - Rename mingw -> mingw32.
143 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 2.14.2-1
144 - Update to 2.14.2 release
146 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-5
147 - Remove manpages duplicating those in Fedora native packages.
149 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.14.0-4
150 - Added dep on pkgconfig, gettext and glib2 (native)
152 * Thu Sep 11 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-3
153 - post/preun scripts to update the gdk-pixbuf.loaders list.
155 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-2
156 - Jasper DLLs now fixed.
158 - Run the correct glib-mkenums.
160 * Tue Sep 9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.14.0-1
161 - Initial RPM release