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