Don't need libgnutls-config.
[fedora-mingw.git] / glib2 / mingw32-glib2.spec
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}
6
7 Name:           mingw32-glib2
8 Version:        2.19.5
9 Release:        1%{?dist}
10 Summary:        MinGW Windows GLib2 library
11
12 License:        LGPLv2+
13 Group:          Development/Libraries
14 URL:            http://www.gtk.org
15 Source0:        http://download.gnome.org/sources/glib/2.19/glib-%{version}.tar.bz2
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18 BuildArch:      noarch
19
20 Patch0:         glib-i386-atomic.patch
21
22 BuildRequires:  mingw32-filesystem >= 23
23 BuildRequires:  mingw32-gcc
24 BuildRequires:  mingw32-binutils
25 BuildRequires:  mingw32-iconv
26 BuildRequires:  mingw32-gettext
27 BuildRequires:  pkgconfig
28 # Native version required for msgfmt use in build
29 BuildRequires:  gettext
30 # Native version required for glib-genmarshal
31 BuildRequires:  glib2-devel
32
33 # These are required for the glib-i386-atomic patch.
34 BuildRequires:  autoconf, automake, libtool, gettext-devel, gtk-doc
35
36 %description
37 MinGW Windows Glib2 library.
38
39
40 %prep
41 %setup -q -n glib-%{version}
42 %patch0 -p1 -b .i386-atomic
43
44 # Required for the glib-i386-atomic patch.
45 libtoolize --force --copy
46 autoreconf
47
48
49 %build
50 %{_mingw32_configure} --disable-static
51 make %{?_smp_mflags}
52
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 make DESTDIR=$RPM_BUILD_ROOT install
58
59 rm -f $RPM_BUILD_ROOT/%{_mingw32_libdir}/charset.alias
60
61 # Remove manpages which duplicate Fedora native.
62 rm -rf $RPM_BUILD_ROOT%{_mingw32_mandir}
63
64 %find_lang glib20
65
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70
71 %files -f glib20.lang
72 %defattr(-,root,root)
73 %{_mingw32_bindir}/glib-genmarshal.exe
74 %{_mingw32_bindir}/glib-gettextize
75 %{_mingw32_bindir}/glib-mkenums
76 %{_mingw32_bindir}/gobject-query.exe
77 %{_mingw32_bindir}/gspawn-win32-helper-console.exe
78 %{_mingw32_bindir}/gspawn-win32-helper.exe
79 %{_mingw32_bindir}/libgio-2.0-0.dll
80 %{_mingw32_bindir}/libglib-2.0-0.dll
81 %{_mingw32_bindir}/libgmodule-2.0-0.dll
82 %{_mingw32_bindir}/libgobject-2.0-0.dll
83 %{_mingw32_bindir}/libgthread-2.0-0.dll
84 %{_mingw32_includedir}/glib-2.0/
85 %{_mingw32_libdir}/gio-2.0.def
86 %{_mingw32_libdir}/glib-2.0.def
87 %{_mingw32_libdir}/glib-2.0/
88 %{_mingw32_libdir}/gmodule-2.0.def
89 %{_mingw32_libdir}/gobject-2.0.def
90 %{_mingw32_libdir}/gthread-2.0.def
91 %{_mingw32_libdir}/libgio-2.0.dll.a
92 %{_mingw32_libdir}/libgio-2.0.la
93 %{_mingw32_libdir}/libglib-2.0.dll.a
94 %{_mingw32_libdir}/libglib-2.0.la
95 %{_mingw32_libdir}/libgmodule-2.0.dll.a
96 %{_mingw32_libdir}/libgmodule-2.0.la
97 %{_mingw32_libdir}/libgobject-2.0.dll.a
98 %{_mingw32_libdir}/libgobject-2.0.la
99 %{_mingw32_libdir}/libgthread-2.0.dll.a
100 %{_mingw32_libdir}/libgthread-2.0.la
101 %{_mingw32_libdir}/pkgconfig/gio-2.0.pc
102 %{_mingw32_libdir}/pkgconfig/gio-unix-2.0.pc
103 %{_mingw32_libdir}/pkgconfig/glib-2.0.pc
104 %{_mingw32_libdir}/pkgconfig/gmodule-2.0.pc
105 %{_mingw32_libdir}/pkgconfig/gmodule-export-2.0.pc
106 %{_mingw32_libdir}/pkgconfig/gmodule-no-export-2.0.pc
107 %{_mingw32_libdir}/pkgconfig/gobject-2.0.pc
108 %{_mingw32_libdir}/pkgconfig/gthread-2.0.pc
109 %{_mingw32_datadir}/aclocal/glib-2.0.m4
110 %{_mingw32_datadir}/aclocal/glib-gettext.m4
111 %{_mingw32_datadir}/glib-2.0/
112 %{_mingw32_datadir}/gtk-doc/html/gio/
113 %{_mingw32_datadir}/gtk-doc/html/glib/
114 %{_mingw32_datadir}/gtk-doc/html/gobject/
115
116
117 %changelog
118 * Fri Jan 23 2009 Richard W.M. Jones <rjones@redhat.com> - 2.19.5-1
119 - Rebase to native Fedora version 2.19.5.
120 - Use _smp_mflags.
121 - Use find_lang.
122 - Don't build static libraries.
123
124 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 2.18.1-2
125 - Rename mingw -> mingw32.
126
127 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 2.18.1-1
128 - Update to 2.18.1 release
129
130 * Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 2.18.0-3
131 - Remove manpages which duplicate Fedora native.
132
133 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 2.18.0-2
134 - Add BR on pkgconfig, gettext and glib2 (native)
135
136 * Tue Sep  9 2008 Daniel P. Berrange <berrange@redhat.com> - 2.18.0-1
137 - Initial RPM release