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