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