]>
Commit | Line | Data |
---|---|---|
8469de34 | 1 | Summary: Useful routines for 'C' programming - MinGW32 cross version |
ab514c36 ER |
2 | Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy |
3 | Summary(da.UTF-8): Nyttige biblioteksfunktioner | |
4 | Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen | |
5 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias | |
6 | Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita | |
7 | Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires | |
8 | Summary(ja.UTF-8): 便利なユーティリティ関数のライブラリ | |
8469de34 | 9 | Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C - wersja skrośna dla MinGW32 |
ab514c36 ER |
10 | Summary(pt_BR.UTF-8): Conjunto de funções gráficas utilitárias |
11 | Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı | |
12 | Summary(zh_CN.UTF-8): 实用工具函数库 | |
e528a0cc | 13 | %define realname glib |
1bf6ca42 | 14 | Name: crossmingw32-glib2 |
eb8940d5 | 15 | Version: 2.32.4 |
71b3d73c | 16 | Release: 1 |
745caf87 | 17 | License: LGPL v2+ |
794b98a7 | 18 | Group: Development/Libraries |
8478f86d | 19 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.32/glib-%{version}.tar.xz |
eb8940d5 | 20 | # Source0-md5: bf84fefd9c1a5b5a7a38736f4ddd674a |
328832ab | 21 | Patch0: %{name}-stacktest.patch |
ad9f918e | 22 | Patch1: glib2-cross.patch |
eb8940d5 | 23 | Patch2: glib2-win32.patch |
c6b9b5e4 | 24 | URL: http://www.gtk.org/ |
405204bb | 25 | BuildRequires: autoconf >= 2.62 |
aeb9b581 | 26 | BuildRequires: automake >= 1:1.11 |
34e8fb8f | 27 | BuildRequires: crossmingw32-gcc |
c9a1f2ad | 28 | BuildRequires: crossmingw32-gettext |
aeb9b581 | 29 | BuildRequires: crossmingw32-libffi >= 3.0.0 |
34e8fb8f | 30 | BuildRequires: crossmingw32-libiconv |
038713af | 31 | BuildRequires: crossmingw32-pcre >= 8.11 |
f334d6d2 | 32 | BuildRequires: crossmingw32-zlib |
405204bb | 33 | # host glib-genmarshall and glib-compile-schemas are needed for cross-compiling |
8478f86d | 34 | BuildRequires: glib2 >= 1:2.32.0 |
f334d6d2 | 35 | BuildRequires: gtk-doc >= 1.15 |
405204bb | 36 | BuildRequires: libtool >= 2:2.2 |
038713af | 37 | BuildRequires: pkgconfig >= 1:0.16 |
aeb9b581 JB |
38 | BuildRequires: python >= 1:2.5 |
39 | BuildRequires: tar >= 1:1.22 | |
40 | BuildRequires: xz | |
794b98a7 | 41 | Requires: crossmingw32-gettext |
038713af | 42 | Requires: crossmingw32-pcre >= 8.11 |
7b00e9c6 | 43 | ExcludeArch: i386 |
07551a26 | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c6b9b5e4 | 45 | |
46 | %define no_install_post_strip 1 | |
47 | ||
48 | %define target i386-mingw32 | |
c9a1f2ad | 49 | %define host %{target} |
50 | %define target_platform %{target} | |
c6b9b5e4 | 51 | |
328832ab | 52 | %define _sysprefix /usr |
53 | %define _prefix %{_sysprefix}/%{target} | |
26297d4f | 54 | %define _libdir %{_prefix}/lib |
328832ab | 55 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
794b98a7 | 56 | %define _dlldir /usr/share/wine/windows/system |
c6b9b5e4 | 57 | %define __cc %{target}-gcc |
58 | %define __cxx %{target}-g++ | |
59 | ||
e6c8cfe5 | 60 | %ifnarch %{ix86} |
7b00e9c6 JB |
61 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc. |
62 | # now at least i486 is required for atomic operations | |
63 | %define optflags -O2 -march=i486 | |
e6c8cfe5 JB |
64 | %endif |
65 | # -z options are invalid for mingw linker | |
66 | %define filterout_ld -Wl,-z,.* | |
67 | ||
c6b9b5e4 | 68 | %description |
69 | GLib, is a library which includes support routines for C such as | |
d2690a19 | 70 | lists, trees, hashes, memory allocation, and many other things. GLib |
c6b9b5e4 | 71 | includes also generally useful data structures used by GIMP and many |
72 | other. | |
73 | ||
9bd01504 | 74 | This package contains the cross version for Win32. |
75 | ||
411499f2 JR |
76 | %description -l cs.UTF-8 |
77 | Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a | |
78 | hlavičky jsou v balíčku glib-devel. | |
c6b9b5e4 | 79 | |
411499f2 | 80 | %description -l da.UTF-8 |
c6b9b5e4 | 81 | Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker |
82 | og headerfiler er i glib-devel pakken. | |
83 | ||
411499f2 JR |
84 | %description -l de.UTF-8 |
85 | Eine nützliche Library von Dienstprogramm-Funktionen. | |
c6b9b5e4 | 86 | Entwicklungs-Libraries und Header befinden sich in glib-devel. |
87 | ||
411499f2 | 88 | %description -l es.UTF-8 |
c6b9b5e4 | 89 | Conjunto de funciones utilitarias. Bibliotecas de desarrollo y |
411499f2 | 90 | archivos de inclusión están en glib-devel. |
c6b9b5e4 | 91 | |
411499f2 JR |
92 | %description -l fi.UTF-8 |
93 | Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja | |
c6b9b5e4 | 94 | header-tiedostot ovat glib-devel-paketissa. |
95 | ||
411499f2 | 96 | %description -l ja.UTF-8 |
411499f2 JR |
97 | GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、 |
98 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい | |
99 | 関数を提供します。 | |
c6b9b5e4 | 100 | |
411499f2 JR |
101 | GLibはGDK, |
102 | GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション | |
103 | 等のためにこのglibパッケージをインストールしてください。 | |
c6b9b5e4 | 104 | |
411499f2 | 105 | %description -l pl.UTF-8 |
d2690a19 | 106 | GLib jest zestawem bibliotek zawierających funkcje do obsługi list i |
411499f2 JR |
107 | drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych |
108 | podstawowych funkcji i różnych struktur danych używanych przez program | |
c6b9b5e4 | 109 | GIMP i wiele innych. |
110 | ||
411499f2 | 111 | Ten pakiet zawiera wersję skrośną dla Win32. |
9bd01504 | 112 | |
411499f2 JR |
113 | %description -l pt_BR.UTF-8 |
114 | Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e | |
115 | arquivos de inclusão estão em glib-devel. | |
c6b9b5e4 | 116 | |
411499f2 JR |
117 | %description -l tr.UTF-8 |
118 | Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık | |
119 | dosyaları glib-devel paketinde yer almaktadır. | |
c6b9b5e4 | 120 | |
794b98a7 JB |
121 | %package dll |
122 | Summary: DLL glib2 libraries for Windows | |
123 | Summary(pl.UTF-8): Biblioteki DLL glib2 dla Windows | |
124 | Group: Applications/Emulators | |
125 | Requires: crossmingw32-gettext-dll | |
aeb9b581 | 126 | Requires: crossmingw32-libffi-dll >= 3.0.0 |
038713af | 127 | Requires: crossmingw32-pcre-dll >= 8.11 |
794b98a7 JB |
128 | Requires: wine |
129 | ||
130 | %description dll | |
131 | DLL glib2 libraries for Windows. | |
132 | ||
133 | %description dll -l pl.UTF-8 | |
134 | Biblioteki DLL glib2 dla Windows. | |
135 | ||
c6b9b5e4 | 136 | %prep |
e528a0cc | 137 | %setup -q -n %{realname}-%{version} |
328832ab | 138 | %patch0 -p1 |
40ecfdd4 | 139 | %patch1 -p1 |
eb8940d5 | 140 | %patch2 -p1 |
328832ab | 141 | |
142 | %build | |
2ff0a90e | 143 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
2fc8917c | 144 | %{__gtkdocize} |
328832ab | 145 | %{__libtoolize} |
2fc8917c | 146 | %{__aclocal} -I m4macros |
328832ab | 147 | %{__autoconf} |
2fc8917c ŁK |
148 | %{__autoheader} |
149 | %{__automake} | |
328832ab | 150 | %configure \ |
c9a1f2ad | 151 | --target=%{target} \ |
152 | --host=%{target} \ | |
153 | --disable-gtk-doc \ | |
038713af | 154 | --disable-silent-rules \ |
fdf96f32 JB |
155 | --enable-shared \ |
156 | --with-pcre=system | |
328832ab | 157 | |
158 | %{__make} | |
c6b9b5e4 | 159 | |
160 | %install | |
161 | rm -rf $RPM_BUILD_ROOT | |
34e8fb8f | 162 | |
328832ab | 163 | %{__make} install \ |
164 | DESTDIR=$RPM_BUILD_ROOT | |
c6b9b5e4 | 165 | |
794b98a7 JB |
166 | install -d $RPM_BUILD_ROOT%{_dlldir} |
167 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
b6da3f2c | 168 | |
ce3c9485 JB |
169 | %if 0%{!?debug:1} |
170 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
171 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
172 | %endif | |
173 | ||
405204bb | 174 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/charset.alias |
794b98a7 | 175 | # use system glib2-devel instead |
eb8940d5 JB |
176 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{aclocal,bash-completion,gdb,glib-2.0,gtk-doc,man} \ |
177 | $RPM_BUILD_ROOT%{_libdir}/gdbus-2.0/codegen | |
794b98a7 | 178 | # runtime |
405204bb | 179 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale |
c6b9b5e4 | 180 | |
181 | %clean | |
182 | rm -rf $RPM_BUILD_ROOT | |
183 | ||
794b98a7 | 184 | %files |
37a1690c | 185 | %defattr(644,root,root,755) |
706c24a3 | 186 | %{_libdir}/libgio-2.0.dll.a |
794b98a7 JB |
187 | %{_libdir}/libglib-2.0.dll.a |
188 | %{_libdir}/libgmodule-2.0.dll.a | |
189 | %{_libdir}/libgobject-2.0.dll.a | |
190 | %{_libdir}/libgthread-2.0.dll.a | |
706c24a3 | 191 | %{_libdir}/libgio-2.0.la |
794b98a7 JB |
192 | %{_libdir}/libglib-2.0.la |
193 | %{_libdir}/libgmodule-2.0.la | |
194 | %{_libdir}/libgobject-2.0.la | |
195 | %{_libdir}/libgthread-2.0.la | |
d81a5388 | 196 | %{_libdir}/gio-2.0.def |
794b98a7 JB |
197 | %{_libdir}/glib-2.0.def |
198 | %{_libdir}/gmodule-2.0.def | |
199 | %{_libdir}/gobject-2.0.def | |
200 | %{_libdir}/gthread-2.0.def | |
405204bb | 201 | %{_includedir}/gio-win32-2.0 |
328832ab | 202 | %{_includedir}/glib-2.0 |
794b98a7 | 203 | %dir %{_libdir}/glib-2.0 |
328832ab | 204 | %dir %{_libdir}/glib-2.0/include |
205 | %{_libdir}/glib-2.0/include/glibconfig.h | |
706c24a3 | 206 | %{_pkgconfigdir}/gio-2.0.pc |
405204bb | 207 | %{_pkgconfigdir}/gio-windows-2.0.pc |
26297d4f JB |
208 | %{_pkgconfigdir}/glib-2.0.pc |
209 | %{_pkgconfigdir}/gmodule-2.0.pc | |
210 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
211 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
212 | %{_pkgconfigdir}/gobject-2.0.pc | |
213 | %{_pkgconfigdir}/gthread-2.0.pc | |
794b98a7 JB |
214 | |
215 | %files dll | |
216 | %defattr(644,root,root,755) | |
706c24a3 | 217 | %{_dlldir}/libgio-2.0-*.dll |
794b98a7 JB |
218 | %{_dlldir}/libglib-2.0-*.dll |
219 | %{_dlldir}/libgmodule-2.0-*.dll | |
220 | %{_dlldir}/libgobject-2.0-*.dll | |
221 | %{_dlldir}/libgthread-2.0-*.dll |