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