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