]>
Commit | Line | Data |
---|---|---|
ae8f43dd | 1 | Summary: A C++ interface for the GTK+ (a GUI library for X) - cross Mingw32 version |
db814cdf | 2 | Summary(pl.UTF-8): Wrapper C++ dla GTK+ - skrośna wersja Mingw32 |
ab9cdddd JB |
3 | %define realname gtkmm |
4 | Name: crossmingw32-%{realname} | |
153995fe | 5 | Version: 2.12.1 |
ae8f43dd | 6 | Release: 1 |
ab9cdddd | 7 | License: LGPL v2+ |
db814cdf | 8 | Group: Development/Libraries |
451c49f1 | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.12/%{realname}-%{version}.tar.bz2 |
153995fe | 10 | # Source0-md5: b2dbd8c9d69062c51dfd2835faef9cf1 |
451c49f1 | 11 | Patch0: gtkmm-gtkprint.patch |
ae8f43dd | 12 | URL: http://gtkmm.sourceforge.net/ |
13 | BuildRequires: autoconf >= 2.59 | |
14 | BuildRequires: automake >= 1:1.9 | |
451c49f1 JB |
15 | BuildRequires: crossmingw32-atk >= 1.20.0 |
16 | BuildRequires: crossmingw32-cairomm >= 1.4.4 | |
db814cdf | 17 | BuildRequires: crossmingw32-gcc-c++ >= 3.3.1 |
153995fe | 18 | BuildRequires: crossmingw32-glibmm >= 2.14.1 |
451c49f1 JB |
19 | BuildRequires: crossmingw32-gtk+2 >= 2.12.0 |
20 | BuildRequires: crossmingw32-pango >= 1.18.1 | |
db814cdf | 21 | BuildRequires: libtool >= 2:1.5 |
ae8f43dd | 22 | BuildRequires: perl-base >= 1:5.6.0 |
3ce7b5a9 | 23 | BuildRequires: pkgconfig >= 1:0.15 |
ae8f43dd | 24 | Requires: %{name}-atk = %{version}-%{release} |
25 | Requires: %{name}-pango = %{version}-%{release} | |
451c49f1 | 26 | Requires: crossmingw32-gtk+2 >= 2.12.0 |
ae8f43dd | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %define no_install_post_strip 1 | |
30 | ||
31 | %define target i386-mingw32 | |
32 | %define target_platform i386-pc-mingw32 | |
ae8f43dd | 33 | |
34 | %define _sysprefix /usr | |
35 | %define _prefix %{_sysprefix}/%{target} | |
36 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
db814cdf | 37 | %define _dlldir /usr/share/wine/windows/system |
ae8f43dd | 38 | %define __cc %{target}-gcc |
39 | %define __cxx %{target}-g++ | |
40 | ||
41 | %description | |
42 | This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI | |
43 | library. The interface provides a convenient interface for C++ | |
44 | programmers to create GUIs with GTK+'s flexible object-oriented | |
45 | framework. Features include type safe callbacks, widgets that are | |
46 | extensible using inheritance and over 110 classes that can be freely | |
47 | combined to quickly create complex user interfaces. | |
48 | ||
db814cdf JB |
49 | This package contains the cross version for Win32. |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | GTK-- jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką | |
53 | służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się | |
54 | także biblioteka GDK-- - wrapper C++ dla GDK (General Drawing Kit). | |
55 | ||
56 | Ten pakiet zawiera wersję skrośną dla Win32. | |
57 | ||
58 | %package static | |
59 | Summary: Static gtkmm libraries (cross mingw32 version) | |
60 | Summary(pl.UTF-8): Statyczne biblioteki gtkmm (wersja skrośna mingw32) | |
61 | Group: Development/Libraries | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static gtkmm libraries (cross mingw32 version). | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczne biblioteki gtkmm (wersja skrośna mingw32). | |
69 | ||
70 | %package dll | |
71 | Summary: DLL gtkmm libraries for Windows | |
72 | Summary(pl.UTF-8): Biblioteki DLL gtkmm dla Windows | |
73 | Group: Applications/Emulators | |
74 | Requires: %{name}-atk-dll = %{version}-%{release} | |
75 | Requires: %{name}-pango-dll = %{version}-%{release} | |
451c49f1 | 76 | Requires: crossmingw32-gtk+2-dll >= 2.12.0 |
db814cdf JB |
77 | Requires: wine |
78 | ||
79 | %description dll | |
80 | DLL gtkmm libraries for Windows. | |
81 | ||
82 | %description dll -l pl.UTF-8 | |
83 | Biblioteki DLL gtkmm dla Windows. | |
ae8f43dd | 84 | |
85 | %package atk | |
db814cdf JB |
86 | Summary: A C++ interface for atk library (cross mingw32 version) |
87 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki atk (wersja skrośna mingw32) | |
88 | Group: Development/Libraries | |
451c49f1 | 89 | Requires: crossmingw32-atk >= 1.20.0 |
153995fe | 90 | Requires: crossmingw32-glibmm >= 2.14.1 |
ae8f43dd | 91 | |
92 | %description atk | |
db814cdf JB |
93 | A C++ interface for atk library (cross mingw32 version). |
94 | ||
95 | %description atk -l pl.UTF-8 | |
96 | Interfejs C++ dla biblioteki atk (wersja skrośna mingw32). | |
ae8f43dd | 97 | |
db814cdf JB |
98 | %package atk-static |
99 | Summary: Static atkmm library (cross mingw32 version) | |
100 | Summary(pl.UTF-8): Statyczna biblioteka atkmm (wersja skrośna mingw32) | |
101 | Group: Development/Libraries | |
102 | Requires: %{name}-atk = %{version}-%{release} | |
103 | ||
104 | %description atk-static | |
105 | Static atkmm library (cross mingw32 version). | |
106 | ||
107 | %description atk-static -l pl.UTF-8 | |
108 | Statyczna biblioteka atkmm (wersja skrośna mingw32). | |
109 | ||
110 | %package atk-dll | |
111 | Summary: DLL atkmm library for Windows | |
112 | Summary(pl.UTF-8): Biblioteka DLL atkmm dla Windows | |
113 | Group: Applications/Emulators | |
451c49f1 | 114 | Requires: crossmingw32-atk-dll >= 1.20.0 |
153995fe | 115 | Requires: crossmingw32-glibmm-dll >= 2.14.1 |
db814cdf JB |
116 | Requires: wine |
117 | ||
118 | %description atk-dll | |
119 | DLL atkmm library for Windows. | |
120 | ||
121 | %description atk-dll -l pl.UTF-8 | |
122 | Biblioteka DLL atkmm dla Windows. | |
ae8f43dd | 123 | |
124 | %package pango | |
db814cdf JB |
125 | Summary: A C++ interface for pango library (cross mingw32 version) |
126 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki pango (wersja skrośna mingw32) | |
127 | Group: Development/Libraries | |
451c49f1 | 128 | Requires: crossmingw32-cairomm >= 1.4.4 |
153995fe | 129 | Requires: crossmingw32-glibmm >= 2.14.1 |
451c49f1 | 130 | Requires: crossmingw32-pango >= 1.18.1 |
ae8f43dd | 131 | |
132 | %description pango | |
db814cdf JB |
133 | A C++ interface for pango library (cross mingw32 version). |
134 | ||
135 | %description pango -l pl.UTF-8 | |
136 | Interfejs C++ dla biblioteki pango (wersja skrośna mingw32). | |
137 | ||
138 | %package pango-static | |
139 | Summary: Static pangomm library (cross mingw32 version) | |
140 | Summary(pl.UTF-8): Statyczna biblioteka pangomm (wersja skrośna mingw32) | |
141 | Group: Development/Libraries | |
142 | Requires: %{name}-pango = %{version}-%{release} | |
ae8f43dd | 143 | |
db814cdf JB |
144 | %description pango-static |
145 | Static pangomm library (cross mingw32 version). | |
146 | ||
147 | %description pango-static -l pl.UTF-8 | |
148 | Statyczna biblioteka pangomm (wersja skrośna mingw32). | |
149 | ||
150 | %package pango-dll | |
151 | Summary: DLL pangomm library for Windows | |
152 | Summary(pl.UTF-8): Biblioteka DLL pangomm dla Windows | |
153 | Group: Applications/Emulators | |
451c49f1 | 154 | Requires: crossmingw32-cairomm-dll >= 1.4.4 |
153995fe | 155 | Requires: crossmingw32-glibmm-dll >= 2.14.1 |
451c49f1 | 156 | Requires: crossmingw32-pango-dll >= 1.18.1 |
db814cdf JB |
157 | Requires: wine |
158 | ||
159 | %description pango-dll | |
160 | DLL pangomm library for Windows. | |
161 | ||
162 | %description pango-dll -l pl.UTF-8 | |
163 | Biblioteka DLL pangomm dla Windows. | |
ae8f43dd | 164 | |
165 | %prep | |
ab9cdddd | 166 | %setup -q -n %{realname}-%{version} |
451c49f1 | 167 | %patch0 -p1 |
ae8f43dd | 168 | |
169 | %build | |
3ce7b5a9 | 170 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
ae8f43dd | 171 | %{__libtoolize} |
172 | %{__aclocal} -I scripts | |
173 | %{__autoconf} | |
174 | %{__automake} | |
ae8f43dd | 175 | %configure \ |
176 | --targe=%{target} \ | |
177 | --host=%{target} \ | |
178 | --disable-demos \ | |
179 | --disable-docs \ | |
180 | --disable-examples \ | |
181 | --enable-static | |
182 | ||
183 | %{__make} | |
184 | ||
185 | %install | |
186 | rm -rf $RPM_BUILD_ROOT | |
ae8f43dd | 187 | |
188 | %{__make} install \ | |
db814cdf JB |
189 | DESTDIR=$RPM_BUILD_ROOT |
190 | ||
191 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
192 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
193 | ||
194 | %if 0%{!?debug:1} | |
195 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
196 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
197 | %endif | |
198 | ||
199 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc | |
200 | rm -rf $RPM_BUILD_ROOT%{_libdir}/gtkmm-2.4/proc | |
ae8f43dd | 201 | |
202 | %clean | |
203 | rm -rf $RPM_BUILD_ROOT | |
204 | ||
205 | %files | |
206 | %defattr(644,root,root,755) | |
207 | %doc AUTHORS ChangeLog CHANGES NEWS PORTING README | |
db814cdf JB |
208 | %{_libdir}/libg[dt]kmm-2.4.dll.a |
209 | %{_libdir}/libg[dt]kmm-2.4.la | |
ae8f43dd | 210 | %{_libdir}/g[dt]kmm-2.4 |
ae8f43dd | 211 | %{_includedir}/g[dt]kmm-2.4 |
db814cdf JB |
212 | %{_pkgconfigdir}/g[dt]kmm-2.4.pc |
213 | ||
214 | %files static | |
215 | %defattr(644,root,root,755) | |
216 | %{_libdir}/libg[dt]kmm-2.4.a | |
217 | ||
218 | %files dll | |
219 | %defattr(644,root,root,755) | |
220 | %{_dlldir}/libg[dt]kmm-2.4-*.dll | |
ae8f43dd | 221 | |
222 | %files atk | |
223 | %defattr(644,root,root,755) | |
db814cdf JB |
224 | %{_libdir}/libatkmm-1.6.dll.a |
225 | %{_libdir}/libatkmm-1.6.la | |
ae8f43dd | 226 | %{_includedir}/atkmm-1.6 |
db814cdf JB |
227 | %{_pkgconfigdir}/atkmm-1.6.pc |
228 | ||
229 | %files atk-static | |
230 | %defattr(644,root,root,755) | |
231 | %{_libdir}/libatkmm-1.6.a | |
232 | ||
233 | %files atk-dll | |
234 | %defattr(644,root,root,755) | |
235 | %{_dlldir}/libatkmm-1.6-*.dll | |
ae8f43dd | 236 | |
237 | %files pango | |
238 | %defattr(644,root,root,755) | |
db814cdf JB |
239 | %{_libdir}/libpangomm-1.4.dll.a |
240 | %{_libdir}/libpangomm-1.4.la | |
ae8f43dd | 241 | %{_includedir}/pangomm-1.4 |
db814cdf JB |
242 | %{_pkgconfigdir}/pangomm-1.4.pc |
243 | ||
244 | %files pango-static | |
245 | %defattr(644,root,root,755) | |
246 | %{_libdir}/libpangomm-1.4.a | |
247 | ||
248 | %files pango-dll | |
249 | %defattr(644,root,root,755) | |
250 | %{_dlldir}/libpangomm-1.4-*.dll |