]>
Commit | Line | Data |
---|---|---|
b456b73a JB |
1 | Summary: A C++ interface for the GTK+ (a GUI library for X) - cross MinGW32 version |
2 | Summary(pl.UTF-8): Wrapper C++ dla GTK+ - skrośna wersja MinGW32 | |
ab9cdddd JB |
3 | %define realname gtkmm |
4 | Name: crossmingw32-%{realname} | |
b456b73a | 5 | Version: 2.20.3 |
ae8f43dd | 6 | Release: 1 |
ab9cdddd | 7 | License: LGPL v2+ |
db814cdf | 8 | Group: Development/Libraries |
c8a2d12a | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.16/%{realname}-%{version}.tar.bz2 |
b456b73a | 10 | # Source0-md5: c35f236091b4f96fe45c53b4107400a9 |
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 |
b456b73a JB |
17 | BuildRequires: crossmingw32-glibmm >= 2.24.0 |
18 | BuildRequires: crossmingw32-gtk+2 >= 2.20.0 | |
19 | BuildRequires: crossmingw32-pangomm >= 2.26.0 | |
db814cdf | 20 | BuildRequires: libtool >= 2:1.5 |
b456b73a | 21 | BuildRequires: mm-common >= 0.8 |
ae8f43dd | 22 | BuildRequires: perl-base >= 1:5.6.0 |
3ce7b5a9 | 23 | BuildRequires: pkgconfig >= 1:0.15 |
ae8f43dd | 24 | Requires: %{name}-atk = %{version}-%{release} |
f155b15f | 25 | Requires: crossmingw32-cairomm >= 1.6.3 |
b456b73a JB |
26 | Requires: crossmingw32-gtk+2 >= 2.20.0 |
27 | Requires: crossmingw32-pangomm >= 2.26.0 | |
ae8f43dd | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %define no_install_post_strip 1 | |
31 | ||
32 | %define target i386-mingw32 | |
33 | %define target_platform i386-pc-mingw32 | |
ae8f43dd | 34 | |
35 | %define _sysprefix /usr | |
36 | %define _prefix %{_sysprefix}/%{target} | |
eeaae6c1 | 37 | %define _libdir %{_prefix}/lib |
ae8f43dd | 38 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
db814cdf | 39 | %define _dlldir /usr/share/wine/windows/system |
ae8f43dd | 40 | %define __cc %{target}-gcc |
41 | %define __cxx %{target}-g++ | |
42 | ||
f155b15f JB |
43 | %ifnarch %{ix86} |
44 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
45 | %define optflags -O2 | |
46 | %endif | |
47 | # -z options are invalid for mingw linker | |
48 | %define filterout_ld -Wl,-z,.* | |
49 | ||
ae8f43dd | 50 | %description |
51 | This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI | |
52 | library. The interface provides a convenient interface for C++ | |
53 | programmers to create GUIs with GTK+'s flexible object-oriented | |
54 | framework. Features include type safe callbacks, widgets that are | |
55 | extensible using inheritance and over 110 classes that can be freely | |
56 | combined to quickly create complex user interfaces. | |
57 | ||
db814cdf JB |
58 | This package contains the cross version for Win32. |
59 | ||
60 | %description -l pl.UTF-8 | |
f155b15f | 61 | gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką |
db814cdf | 62 | służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się |
f155b15f | 63 | także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit). |
db814cdf JB |
64 | |
65 | Ten pakiet zawiera wersję skrośną dla Win32. | |
66 | ||
67 | %package static | |
b456b73a JB |
68 | Summary: Static gtkmm libraries (cross MinGW32 version) |
69 | Summary(pl.UTF-8): Statyczne biblioteki gtkmm (wersja skrośna MinGW32) | |
db814cdf JB |
70 | Group: Development/Libraries |
71 | Requires: %{name} = %{version}-%{release} | |
72 | ||
73 | %description static | |
b456b73a | 74 | Static gtkmm libraries (cross MinGW32 version). |
db814cdf JB |
75 | |
76 | %description static -l pl.UTF-8 | |
b456b73a | 77 | Statyczne biblioteki gtkmm (wersja skrośna MinGW32). |
db814cdf JB |
78 | |
79 | %package dll | |
80 | Summary: DLL gtkmm libraries for Windows | |
81 | Summary(pl.UTF-8): Biblioteki DLL gtkmm dla Windows | |
82 | Group: Applications/Emulators | |
83 | Requires: %{name}-atk-dll = %{version}-%{release} | |
f155b15f | 84 | Requires: crossmingw32-cairomm-dll >= 1.6.3 |
b456b73a JB |
85 | Requires: crossmingw32-gtk+2-dll >= 2.20.0 |
86 | Requires: crossmingw32-pangomm-dll >= 2.26.0 | |
db814cdf JB |
87 | Requires: wine |
88 | ||
89 | %description dll | |
90 | DLL gtkmm libraries for Windows. | |
91 | ||
92 | %description dll -l pl.UTF-8 | |
93 | Biblioteki DLL gtkmm dla Windows. | |
ae8f43dd | 94 | |
95 | %package atk | |
b456b73a JB |
96 | Summary: A C++ interface for atk library (cross MinGW32 version) |
97 | Summary(pl.UTF-8): Interfejs C++ dla biblioteki atk (wersja skrośna MinGW32) | |
db814cdf | 98 | Group: Development/Libraries |
f155b15f | 99 | Requires: crossmingw32-atk >= 1.24.0 |
b456b73a | 100 | Requires: crossmingw32-glibmm >= 2.24.0 |
ae8f43dd | 101 | |
102 | %description atk | |
b456b73a | 103 | A C++ interface for atk library (cross MinGW32 version). |
db814cdf JB |
104 | |
105 | %description atk -l pl.UTF-8 | |
b456b73a | 106 | Interfejs C++ dla biblioteki atk (wersja skrośna MinGW32). |
ae8f43dd | 107 | |
db814cdf | 108 | %package atk-static |
b456b73a JB |
109 | Summary: Static atkmm library (cross MinGW32 version) |
110 | Summary(pl.UTF-8): Statyczna biblioteka atkmm (wersja skrośna MinGW32) | |
db814cdf JB |
111 | Group: Development/Libraries |
112 | Requires: %{name}-atk = %{version}-%{release} | |
113 | ||
114 | %description atk-static | |
b456b73a | 115 | Static atkmm library (cross MinGW32 version). |
db814cdf JB |
116 | |
117 | %description atk-static -l pl.UTF-8 | |
b456b73a | 118 | Statyczna biblioteka atkmm (wersja skrośna MinGW32). |
db814cdf JB |
119 | |
120 | %package atk-dll | |
121 | Summary: DLL atkmm library for Windows | |
122 | Summary(pl.UTF-8): Biblioteka DLL atkmm dla Windows | |
123 | Group: Applications/Emulators | |
f155b15f | 124 | Requires: crossmingw32-atk-dll >= 1.24.0 |
b456b73a | 125 | Requires: crossmingw32-glibmm-dll >= 2.24.0 |
db814cdf JB |
126 | Requires: wine |
127 | ||
128 | %description atk-dll | |
129 | DLL atkmm library for Windows. | |
130 | ||
131 | %description atk-dll -l pl.UTF-8 | |
132 | Biblioteka DLL atkmm dla Windows. | |
ae8f43dd | 133 | |
ae8f43dd | 134 | %prep |
ab9cdddd | 135 | %setup -q -n %{realname}-%{version} |
ae8f43dd | 136 | |
137 | %build | |
3ce7b5a9 | 138 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig |
ae8f43dd | 139 | %{__libtoolize} |
b456b73a | 140 | %{__aclocal} -I build |
ae8f43dd | 141 | %{__autoconf} |
b456b73a | 142 | %{__autoheader} |
ae8f43dd | 143 | %{__automake} |
ae8f43dd | 144 | %configure \ |
145 | --targe=%{target} \ | |
146 | --host=%{target} \ | |
b456b73a | 147 | --disable-documentation \ |
ae8f43dd | 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 | ||
b456b73a JB |
166 | # just demo |
167 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gtkmm-2.4 | |
ae8f43dd | 168 | |
169 | %clean | |
170 | rm -rf $RPM_BUILD_ROOT | |
171 | ||
172 | %files | |
173 | %defattr(644,root,root,755) | |
b456b73a | 174 | %doc AUTHORS ChangeLog 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 |