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.15/gtk+-%{version}.tar.bz2
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19 # If you want to rebuild this, do:
20 # wine %{_mingw32_bindir}/gdk-pixbuf-query-loaders.exe > gdk-pixbuf.loaders
21 Source1: gdk-pixbuf.loaders
25 BuildRequires: mingw32-filesystem >= 40
26 BuildRequires: mingw32-gcc
27 BuildRequires: mingw32-binutils
28 BuildRequires: mingw32-iconv
29 BuildRequires: mingw32-gettext
30 BuildRequires: mingw32-glib2 >= 2.17.7
31 BuildRequires: mingw32-cairo >= 1.8.0
32 BuildRequires: mingw32-jasper
33 BuildRequires: mingw32-libpng >= 1.2.2
34 BuildRequires: mingw32-libjpeg
35 BuildRequires: mingw32-pango >= 1.20.0
36 BuildRequires: mingw32-atk >= 1.13.0
37 BuildRequires: pkgconfig
38 # Native one for msgfmt
39 BuildRequires: gettext
40 # Native one for glib-genmarsjal
41 BuildRequires: glib2-devel
42 # Native one for gtk-update-icon-cache
44 # Native one for gdk-pixbuf-csource
45 BuildRequires: gtk2-devel
49 MinGW Windows Gtk2 library.
53 %setup -q -n gtk+-%{version}
57 # Need to run the correct version of glib-mkenums.
58 PATH=%{_mingw32_bindir}:$PATH
60 %{_mingw32_configure} --disable-cups --disable-static
65 rm -rf $RPM_BUILD_ROOT
67 make DESTDIR=$RPM_BUILD_ROOT install
69 rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
71 # Remove manpages which duplicate those in Fedora native.
72 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
74 # Install gdk-pixbuf.loaders.
75 mkdir -p $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/gtk-2.0/
76 install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/gtk-2.0/
78 %find_lang %{name} --all-name
82 rm -rf $RPM_BUILD_ROOT
85 %files -f %{name}.lang
87 %{_mingw32_datadir}/gtk-doc/html/gail-libgail-util
88 %{_mingw32_datadir}/gtk-doc/html/gdk-pixbuf
89 %{_mingw32_datadir}/gtk-doc/html/gdk
90 %{_mingw32_datadir}/gtk-doc/html/gtk
91 %{_mingw32_datadir}/themes/*
92 %{_mingw32_bindir}/gdk-pixbuf-csource.exe
93 %{_mingw32_bindir}/gdk-pixbuf-query-loaders.exe
94 %{_mingw32_bindir}/gtk-builder-convert
95 %{_mingw32_bindir}/gtk-demo.exe
96 %{_mingw32_bindir}/gtk-query-immodules-2.0.exe
97 %{_mingw32_bindir}/gtk-update-icon-cache.exe
98 %{_mingw32_bindir}/libgailutil-18.dll
99 %{_mingw32_bindir}/libgdk-win32-2.0-0.dll
100 %{_mingw32_bindir}/libgdk_pixbuf-2.0-0.dll
101 %{_mingw32_bindir}/libgtk-win32-2.0-0.dll
102 %{_mingw32_libdir}/gtk-2.0/
103 %{_mingw32_libdir}/libgailutil.dll.a
104 %{_mingw32_libdir}/libgailutil.la
105 %{_mingw32_libdir}/libgdk-win32-2.0.dll.a
106 %{_mingw32_libdir}/libgdk-win32-2.0.la
107 %{_mingw32_libdir}/libgdk_pixbuf-2.0.dll.a
108 %{_mingw32_libdir}/libgdk_pixbuf-2.0.la
109 %{_mingw32_libdir}/libgtk-win32-2.0.dll.a
110 %{_mingw32_libdir}/libgtk-win32-2.0.la
111 %{_mingw32_libdir}/gdk_pixbuf-2.0.def
112 %{_mingw32_libdir}/gdk-win32-2.0.def
113 %{_mingw32_libdir}/gtk-win32-2.0.def
114 %{_mingw32_libdir}/pkgconfig/gail.pc
115 %{_mingw32_libdir}/pkgconfig/gdk-2.0.pc
116 %{_mingw32_libdir}/pkgconfig/gdk-win32-2.0.pc
117 %{_mingw32_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
118 %{_mingw32_libdir}/pkgconfig/gtk+-2.0.pc
119 %{_mingw32_libdir}/pkgconfig/gtk+-win32-2.0.pc
120 %{_mingw32_includedir}/gtk-2.0/
121 %{_mingw32_includedir}/gail-1.0/
122 %{_mingw32_sysconfdir}/gtk-2.0/
123 %{_mingw32_datadir}/aclocal/gtk-2.0.m4
124 %{_mingw32_datadir}/gtk-2.0/
128 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.15.0-1
129 - Rebase to Fedora native version 2.15.0.
130 - Disable static libraries.
132 - Use find_lang macro.
134 * Mon Oct 27 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.4-3
135 - Remove preun script, no longer used.
137 * Fri Oct 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.4-1
138 - New upstream version 2.14.4.
139 - Require cairo >= 1.8.0 because of important fixes.
140 - Remove a couple of patches which are now upstream.
142 * Fri Oct 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.2-3
143 - Remove the requirement for Wine at build or install time.
144 - Conflicts with (native) cups-devel.
146 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.2-2
147 - Rename mingw -> mingw32.
149 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 2.14.2-1
150 - Update to 2.14.2 release
152 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-5
153 - Remove manpages duplicating those in Fedora native packages.
155 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.14.0-4
156 - Added dep on pkgconfig, gettext and glib2 (native)
158 * Thu Sep 11 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-3
159 - post/preun scripts to update the gdk-pixbuf.loaders list.
161 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-2
162 - Jasper DLLs now fixed.
164 - Run the correct glib-mkenums.
166 * Tue Sep 9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.14.0-1
167 - Initial RPM release