Just whitespace changes.
[fedora-mingw.git] / gtk2 / mingw-gtk2.spec
1 %define __strip %{_mingw_strip}
2 %define __objdump %{_mingw_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw_findrequires}
5 %define __find_provides %{_mingw_findprovides}
6
7 Name:           mingw-gtk2
8 Version:        2.14.0
9 Release:        4%{?dist}
10 Summary:        MinGW Windows Gtk2 library
11
12 License:        LGPLv2+
13 Group:          Development/Libraries
14 URL:            http://www.gtk.org
15 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.14/gtk+-%{version}.tar.bz2
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 BuildArch:      noarch
19
20 BuildRequires:  mingw-filesystem >= 23
21 BuildRequires:  mingw-gcc
22 BuildRequires:  mingw-binutils
23 BuildRequires:  mingw-iconv
24 BuildRequires:  mingw-gettext
25 BuildRequires:  mingw-glib2
26 BuildRequires:  mingw-cairo
27 BuildRequires:  mingw-jasper
28 BuildRequires:  mingw-libpng
29 BuildRequires:  mingw-libjpeg
30 BuildRequires:  mingw-pango
31 BuildRequires:  mingw-atk
32 BuildRequires:  pkgconfig
33 # Native one for msgfmt
34 BuildRequires:  gettext
35 # Native one for glib-genmarsjal
36 BuildRequires:  glib2-devel
37 # Native one for gtk-update-icon-cache
38 BuildRequires:  gtk2
39 # Native one for gdk-pixbuf-csource
40 BuildRequires:  gtk2-devel
41
42 Requires(post): wine
43
44
45 %description
46 MinGW Windows Gtk2 library.
47
48
49 %prep
50 %setup -q -n gtk+-%{version}
51
52
53 %build
54 # Need to run the correct version of glib-mkenums.
55 PATH=%{_mingw_bindir}:$PATH
56
57 %{_mingw_configure}
58 make
59
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63
64 make DESTDIR=$RPM_BUILD_ROOT install
65
66 rm -f $RPM_BUILD_ROOT/%{_mingw_libdir}/charset.alias
67
68 %clean
69 rm -rf $RPM_BUILD_ROOT
70
71
72 %post
73 wine %{_mingw_bindir}/gdk-pixbuf-query-loaders.exe \
74   > %{_mingw_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
75
76 %preun
77 rm -f %{_mingw_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
78
79
80 %files
81 %defattr(-,root,root)
82 %{_mingw_datadir}/gtk-doc/html/gail-libgail-util
83 %{_mingw_datadir}/gtk-doc/html/gdk-pixbuf
84 %{_mingw_datadir}/gtk-doc/html/gdk
85 %{_mingw_datadir}/gtk-doc/html/gtk
86 %{_mingw_datadir}/locale/*/LC_MESSAGES/gtk20-properties.mo
87 %{_mingw_datadir}/locale/*/LC_MESSAGES/gtk20.mo
88 %{_mingw_datadir}/themes/*
89 %{_mingw_bindir}/gdk-pixbuf-csource.exe
90 %{_mingw_bindir}/gdk-pixbuf-query-loaders.exe
91 %{_mingw_bindir}/gtk-builder-convert
92 %{_mingw_bindir}/gtk-demo.exe
93 %{_mingw_bindir}/gtk-query-immodules-2.0.exe
94 %{_mingw_bindir}/gtk-update-icon-cache.exe
95 %{_mingw_bindir}/libgailutil-18.dll
96 %{_mingw_bindir}/libgdk-win32-2.0-0.dll
97 %{_mingw_bindir}/libgdk_pixbuf-2.0-0.dll
98 %{_mingw_bindir}/libgtk-win32-2.0-0.dll
99 %{_mingw_libdir}/gtk-2.0/
100 %{_mingw_libdir}/libgailutil.dll.a
101 %{_mingw_libdir}/libgailutil.la
102 %{_mingw_libdir}/libgdk-win32-2.0.dll.a
103 %{_mingw_libdir}/libgdk-win32-2.0.la
104 %{_mingw_libdir}/libgdk_pixbuf-2.0.dll.a
105 %{_mingw_libdir}/libgdk_pixbuf-2.0.la
106 %{_mingw_libdir}/libgtk-win32-2.0.dll.a
107 %{_mingw_libdir}/libgtk-win32-2.0.la
108 %{_mingw_libdir}/gdk_pixbuf-2.0.def
109 %{_mingw_libdir}/gdk-win32-2.0.def
110 %{_mingw_libdir}/gtk-win32-2.0.def
111 %{_mingw_libdir}/pkgconfig/gail.pc
112 %{_mingw_libdir}/pkgconfig/gdk-2.0.pc
113 %{_mingw_libdir}/pkgconfig/gdk-win32-2.0.pc
114 %{_mingw_libdir}/pkgconfig/gdk-pixbuf-2.0.pc
115 %{_mingw_libdir}/pkgconfig/gtk+-2.0.pc
116 %{_mingw_libdir}/pkgconfig/gtk+-win32-2.0.pc
117 %{_mingw_includedir}/gtk-2.0/
118 %{_mingw_includedir}/gail-1.0/
119 %{_mingw_sysconfdir}/gtk-2.0/
120 %{_mingw_datadir}/aclocal/gtk-2.0.m4
121 %{_mingw_datadir}/gtk-2.0/
122 %{_mingw_mandir}/man1/gdk-pixbuf-csource.1*
123 %{_mingw_mandir}/man1/gdk-pixbuf-query-loaders.1*
124 %{_mingw_mandir}/man1/gtk-builder-convert.1*
125 %{_mingw_mandir}/man1/gtk-query-immodules-2.0.1*
126 %{_mingw_mandir}/man1/gtk-update-icon-cache.1*
127
128
129 %changelog
130 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.14.0-4
131 - Added dep on pkgconfig, gettext and glib2 (native)
132
133 * Thu Sep 11 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-3
134 - post/preun scripts to update the gdk-pixbuf.loaders list.
135
136 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 2.14.0-2
137 - Jasper DLLs now fixed.
138 - Fix source URL.
139 - Run the correct glib-mkenums.
140
141 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.14.0-1
142 - Initial RPM release