]>
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} | |
c8a2d12a | 5 | Version: 2.16.0 |
ae8f43dd | 6 | Release: 1 |
ab9cdddd | 7 | License: LGPL v2+ |
db814cdf | 8 | Group: Development/Libraries |
c8a2d12a JB |
9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.16/%{realname}-%{version}.tar.bz2 |
10 | # Source0-md5: a82e3b5b93008421ff67df16d1e51ec2 | |
d8680ab8 | 11 | URL: http://www.gtkmm.org/ |
ae8f43dd | 12 | BuildRequires: autoconf >= 2.59 |
13 | BuildRequires: automake >= 1:1.9 | |
f155b15f JB |
14 | BuildRequires: crossmingw32-atk >= 1.24.0 |
15 | BuildRequires: crossmingw32-cairomm >= 1.6.3 | |
db814cdf | 16 | BuildRequires: crossmingw32-gcc-c++ >= 3.3.1 |
f155b15f | 17 | BuildRequires: crossmingw32-glibmm >= 2.18.0 |
c8a2d12a | 18 | BuildRequires: crossmingw32-gtk+2 >= 2.16.0 |
f155b15f | 19 | BuildRequires: crossmingw32-pangomm >= 2.14.0 |
db814cdf | 20 | BuildRequires: libtool >= 2:1.5 |
ae8f43dd | 21 | BuildRequires: perl-base >= 1:5.6.0 |
3ce7b5a9 | 22 | BuildRequires: pkgconfig >= 1:0.15 |
ae8f43dd | 23 | Requires: %{name}-atk = %{version}-%{release} |
f155b15f | 24 | Requires: crossmingw32-cairomm >= 1.6.3 |
c8a2d12a | 25 | Requires: crossmingw32-gtk+2 >= 2.16.0 |
f155b15f | 26 | Requires: crossmingw32-pangomm >= 2.14.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 | ||
f155b15f JB |
42 | %ifnarch %{ix86} |
43 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
44 | %define optflags -O2 | |
45 | %endif | |
46 | # -z options are invalid for mingw linker | |
47 | %define filterout_ld -Wl,-z,.* | |
48 | ||
ae8f43dd | 49 | %description |
50 | This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI | |
51 | library. The interface provides a convenient interface for C++ | |
52 | programmers to create GUIs with GTK+'s flexible object-oriented | |
53 | framework. Features include type safe callbacks, widgets that are | |
54 | extensible using inheritance and over 110 classes that can be freely | |
55 | combined to quickly create complex user interfaces. | |
56 | ||
db814cdf JB |
57 | This package contains the cross version for Win32. |
58 | ||
59 | %description -l pl.UTF-8 | |
f155b15f | 60 | gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką |
db814cdf | 61 | służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się |
f155b15f | 62 | także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit). |
db814cdf JB |
63 | |
64 | Ten pakiet zawiera wersję skrośną dla Win32. | |
65 | ||
66 | %package static | |
67 | Summary: Static gtkmm libraries (cross mingw32 version) | |
68 | Summary(pl.UTF-8): Statyczne biblioteki gtkmm (wersja skrośna mingw32) | |
69 | Group: Development/Libraries | |
70 | Requires: %{name} = %{version}-%{release} | |
71 | ||
72 | %description static | |
73 | Static gtkmm libraries (cross mingw32 version). | |
74 | ||
75 | %description static -l pl.UTF-8 | |
76 | Statyczne biblioteki gtkmm (wersja skrośna mingw32). | |
77 | ||
78 | %package dll | |
79 | Summary: DLL gtkmm libraries for Windows | |
80 | Summary(pl.UTF-8): Biblioteki DLL gtkmm dla Windows | |
81 | Group: Applications/Emulators | |
82 | Requires: %{name}-atk-dll = %{version}-%{release} | |
f155b15f | 83 | Requires: crossmingw32-cairomm-dll >= 1.6.3 |
c8a2d12a | 84 | Requires: crossmingw32-gtk+2-dll >= 2.16.0 |
f155b15f | 85 | Requires: crossmingw32-pangomm-dll >= 2.14.0 |
db814cdf JB |
86 | Requires: wine |
87 | ||
88 | %description dll | |
89 | DLL gtkmm libraries for Windows. | |
90 | ||
91 | %description dll -l pl.UTF-8 | |
92 | Biblioteki DLL gtkmm dla Windows. | |
ae8f43dd | 93 | |
94 | %package atk | |
db814cdf JB |
95 | Summary: A C++ interface for atk library (cross mingw32 version) |
96 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki atk (wersja skrośna mingw32) | |
97 | Group: Development/Libraries | |
f155b15f JB |
98 | Requires: crossmingw32-atk >= 1.24.0 |
99 | Requires: crossmingw32-glibmm >= 2.18.0 | |
ae8f43dd | 100 | |
101 | %description atk | |
db814cdf JB |
102 | A C++ interface for atk library (cross mingw32 version). |
103 | ||
104 | %description atk -l pl.UTF-8 | |
105 | Interfejs C++ dla biblioteki atk (wersja skrośna mingw32). | |
ae8f43dd | 106 | |
db814cdf JB |
107 | %package atk-static |
108 | Summary: Static atkmm library (cross mingw32 version) | |
109 | Summary(pl.UTF-8): Statyczna biblioteka atkmm (wersja skrośna mingw32) | |
110 | Group: Development/Libraries | |
111 | Requires: %{name}-atk = %{version}-%{release} | |
112 | ||
113 | %description atk-static | |
114 | Static atkmm library (cross mingw32 version). | |
115 | ||
116 | %description atk-static -l pl.UTF-8 | |
117 | Statyczna biblioteka atkmm (wersja skrośna mingw32). | |
118 | ||
119 | %package atk-dll | |
120 | Summary: DLL atkmm library for Windows | |
121 | Summary(pl.UTF-8): Biblioteka DLL atkmm dla Windows | |
122 | Group: Applications/Emulators | |
f155b15f JB |
123 | Requires: crossmingw32-atk-dll >= 1.24.0 |
124 | Requires: crossmingw32-glibmm-dll >= 2.18.0 | |
db814cdf JB |
125 | Requires: wine |
126 | ||
127 | %description atk-dll | |
128 | DLL atkmm library for Windows. | |
129 | ||
130 | %description atk-dll -l pl.UTF-8 | |
131 | Biblioteka DLL atkmm dla Windows. | |
ae8f43dd | 132 | |
ae8f43dd | 133 | %prep |
ab9cdddd | 134 | %setup -q -n %{realname}-%{version} |
ae8f43dd | 135 | |
136 | %build | |
3ce7b5a9 | 137 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
ae8f43dd | 138 | %{__libtoolize} |
139 | %{__aclocal} -I scripts | |
140 | %{__autoconf} | |
141 | %{__automake} | |
ae8f43dd | 142 | %configure \ |
143 | --targe=%{target} \ | |
144 | --host=%{target} \ | |
145 | --disable-demos \ | |
146 | --disable-docs \ | |
147 | --disable-examples \ | |
148 | --enable-static | |
149 | ||
150 | %{__make} | |
151 | ||
152 | %install | |
153 | rm -rf $RPM_BUILD_ROOT | |
ae8f43dd | 154 | |
155 | %{__make} install \ | |
db814cdf JB |
156 | DESTDIR=$RPM_BUILD_ROOT |
157 | ||
158 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
159 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
160 | ||
161 | %if 0%{!?debug:1} | |
162 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
163 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
164 | %endif | |
165 | ||
166 | rm -rf $RPM_BUILD_ROOT%{_datadir}/doc | |
167 | rm -rf $RPM_BUILD_ROOT%{_libdir}/gtkmm-2.4/proc | |
ae8f43dd | 168 | |
169 | %clean | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
172 | %files | |
173 | %defattr(644,root,root,755) | |
174 | %doc AUTHORS ChangeLog CHANGES NEWS PORTING README | |
ecea4436 JB |
175 | %{_libdir}/libgdkmm-2.4.dll.a |
176 | %{_libdir}/libgtkmm-2.4.dll.a | |
177 | %{_libdir}/libgdkmm-2.4.la | |
178 | %{_libdir}/libgtkmm-2.4.la | |
179 | %{_libdir}/gdkmm-2.4 | |
180 | %{_libdir}/gtkmm-2.4 | |
181 | %{_includedir}/gdkmm-2.4 | |
182 | %{_includedir}/gtkmm-2.4 | |
183 | %{_pkgconfigdir}/gdkmm-2.4.pc | |
184 | %{_pkgconfigdir}/gtkmm-2.4.pc | |
db814cdf JB |
185 | |
186 | %files static | |
187 | %defattr(644,root,root,755) | |
ecea4436 JB |
188 | %{_libdir}/libgdkmm-2.4.a |
189 | %{_libdir}/libgtkmm-2.4.a | |
db814cdf JB |
190 | |
191 | %files dll | |
192 | %defattr(644,root,root,755) | |
ecea4436 JB |
193 | %{_dlldir}/libgdkmm-2.4-*.dll |
194 | %{_dlldir}/libgtkmm-2.4-*.dll | |
ae8f43dd | 195 | |
196 | %files atk | |
197 | %defattr(644,root,root,755) | |
db814cdf JB |
198 | %{_libdir}/libatkmm-1.6.dll.a |
199 | %{_libdir}/libatkmm-1.6.la | |
ae8f43dd | 200 | %{_includedir}/atkmm-1.6 |
db814cdf JB |
201 | %{_pkgconfigdir}/atkmm-1.6.pc |
202 | ||
203 | %files atk-static | |
204 | %defattr(644,root,root,755) | |
205 | %{_libdir}/libatkmm-1.6.a | |
206 | ||
207 | %files atk-dll | |
208 | %defattr(644,root,root,755) | |
209 | %{_dlldir}/libatkmm-1.6-*.dll |