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