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