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