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