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