]>
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 | |
4b2b03ab | 15 | Version: 2.12.9 |
07551a26 | 16 | Release: 1 |
c6b9b5e4 | 17 | License: LGPL |
18 | Group: Libraries | |
328832ab | 19 | #Source0: ftp://ftp.gtk.org/pub/glib/2.12/win32/glib-dev-%{version}.zip |
20 | Source0: ftp://ftp.gtk.org/pub/glib/2.12/%{_realname}-%{version}.tar.bz2 | |
21 | # Source0-md5: b3f6a2a318610af6398b3445f1a2d6c6 | |
22 | Patch0: %{name}-stacktest.patch | |
c6b9b5e4 | 23 | URL: http://www.gtk.org/ |
34e8fb8f | 24 | BuildRequires: crossmingw32-gcc |
c9a1f2ad | 25 | BuildRequires: crossmingw32-gettext |
34e8fb8f | 26 | BuildRequires: crossmingw32-libiconv |
879bfd86 | 27 | BuildRequires: unzip |
07551a26 JB |
28 | Requires: crossmingw32-binutils |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
c6b9b5e4 | 30 | |
31 | %define no_install_post_strip 1 | |
32 | ||
33 | %define target i386-mingw32 | |
c9a1f2ad | 34 | %define host %{target} |
35 | %define target_platform %{target} | |
c6b9b5e4 | 36 | %define arch %{_prefix}/%{target} |
37 | %define gccarch %{_prefix}/lib/gcc-lib/%{target} | |
38 | %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} | |
39 | ||
328832ab | 40 | %define _sysprefix /usr |
41 | %define _prefix %{_sysprefix}/%{target} | |
42 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
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 |
c6b9b5e4 | 75 | |
411499f2 JR |
76 | GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、 |
77 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい | |
78 | 関数を提供します。 | |
c6b9b5e4 | 79 | |
411499f2 JR |
80 | GLibはGDK, |
81 | GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション | |
82 | 等のためにこのglibパッケージをインストールしてください。 | |
c6b9b5e4 | 83 | |
411499f2 JR |
84 | %description -l pl.UTF-8 |
85 | Glib jest zestawem bibliotek zawierających funkcje do obsługi list i | |
86 | drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych | |
87 | podstawowych funkcji i różnych struktur danych używanych przez program | |
c6b9b5e4 | 88 | GIMP i wiele innych. |
89 | ||
411499f2 | 90 | Ten pakiet zawiera wersję skrośną dla Win32. |
9bd01504 | 91 | |
411499f2 JR |
92 | %description -l pt_BR.UTF-8 |
93 | Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e | |
94 | arquivos de inclusão estão em glib-devel. | |
c6b9b5e4 | 95 | |
411499f2 JR |
96 | %description -l tr.UTF-8 |
97 | Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık | |
98 | dosyaları glib-devel paketinde yer almaktadır. | |
c6b9b5e4 | 99 | |
100 | %prep | |
328832ab | 101 | %setup -q -n %{_realname}-%{version} |
102 | %patch0 -p1 | |
103 | ||
104 | %build | |
105 | export PKG_CONFIG_PATH=%{_prefix}/lib/pkgconfig | |
328832ab | 106 | %{__libtoolize} |
107 | %{__aclocal} | |
108 | %{__automake} | |
109 | %{__autoconf} | |
110 | %configure \ | |
c9a1f2ad | 111 | --target=%{target} \ |
112 | --host=%{target} \ | |
113 | --disable-gtk-doc \ | |
114 | --enable-shared | |
328832ab | 115 | |
116 | %{__make} | |
c6b9b5e4 | 117 | |
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
34e8fb8f | 120 | |
328832ab | 121 | %{__make} install \ |
122 | DESTDIR=$RPM_BUILD_ROOT | |
c6b9b5e4 | 123 | |
328832ab | 124 | %find_lang glib20 --with-gnome |
c6b9b5e4 | 125 | |
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
328832ab | 129 | %files -f glib20.lang |
37a1690c | 130 | %defattr(644,root,root,755) |
328832ab | 131 | %dir %{_includedir}/glib-2.0 |
132 | %{_includedir}/glib-2.0 | |
133 | %{_libdir}/*.la | |
134 | %{_libdir}/*.a | |
c9a1f2ad | 135 | %{_bindir}/*.dll |
328832ab | 136 | %dir %{_libdir}/glib-2.0/include |
137 | %{_libdir}/glib-2.0/include/glibconfig.h | |
138 | %{_pkgconfigdir}/*.pc | |
139 | %{_datadir}/aclocal/glib* | |
140 | %dir %{_datadir}/glib-2.0/gettext | |
141 | %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs | |
142 | %dir %{_datadir}/glib-2.0/gettext/po | |
143 | %{_datadir}/glib-2.0/gettext/po/* |