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