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