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