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