]>
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} | |
d8511f0c | 5 | Version: 2.24.5 |
c16ab63a | 6 | Release: 3 |
ab9cdddd | 7 | License: LGPL v2+ |
db814cdf | 8 | Group: Development/Libraries |
0b8f4ca7 | 9 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.24/%{realname}-%{version}.tar.xz |
d8511f0c | 10 | # Source0-md5: 6c59ae8bbff48fad9132f23af347acf1 |
d8680ab8 | 11 | URL: http://www.gtkmm.org/ |
ae8f43dd | 12 | BuildRequires: autoconf >= 2.59 |
13 | BuildRequires: automake >= 1:1.9 | |
13047e48 | 14 | BuildRequires: crossmingw32-atkmm >= 2.22.2 |
f155b15f | 15 | BuildRequires: crossmingw32-cairomm >= 1.6.3 |
db814cdf | 16 | BuildRequires: crossmingw32-gcc-c++ >= 3.3.1 |
13047e48 | 17 | BuildRequires: crossmingw32-glibmm >= 2.28.0 |
b456b73a | 18 | BuildRequires: crossmingw32-gtk+2 >= 2.20.0 |
2c2b6ad3 | 19 | BuildRequires: crossmingw32-pangomm >= 2.28.0 |
db814cdf | 20 | BuildRequires: libtool >= 2:1.5 |
d8511f0c | 21 | BuildRequires: mm-common >= 0.9.8 |
ae8f43dd | 22 | BuildRequires: perl-base >= 1:5.6.0 |
3ce7b5a9 | 23 | BuildRequires: pkgconfig >= 1:0.15 |
2c2b6ad3 | 24 | BuildRequires: rpmbuild(macros) >= 1.446 |
0b8f4ca7 JB |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
13047e48 | 27 | Requires: crossmingw32-atkmm >= 2.22.2 |
f155b15f | 28 | Requires: crossmingw32-cairomm >= 1.6.3 |
b456b73a | 29 | Requires: crossmingw32-gtk+2 >= 2.20.0 |
2c2b6ad3 | 30 | Requires: crossmingw32-pangomm >= 2.28.0 |
ae8f43dd | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %define no_install_post_strip 1 | |
34 | ||
35 | %define target i386-mingw32 | |
36 | %define target_platform i386-pc-mingw32 | |
ae8f43dd | 37 | |
38 | %define _sysprefix /usr | |
39 | %define _prefix %{_sysprefix}/%{target} | |
eeaae6c1 | 40 | %define _libdir %{_prefix}/lib |
ae8f43dd | 41 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
db814cdf | 42 | %define _dlldir /usr/share/wine/windows/system |
ae8f43dd | 43 | %define __cc %{target}-gcc |
44 | %define __cxx %{target}-g++ | |
f775ba4d | 45 | %define __pkgconfig_provides %{nil} |
423b563e | 46 | %define __pkgconfig_requires %{nil} |
ae8f43dd | 47 | |
f155b15f JB |
48 | %ifnarch %{ix86} |
49 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
50 | %define optflags -O2 | |
51 | %endif | |
27422a4b | 52 | # -z options are invalid for mingw linker, most of -f options are Linux-specific |
f155b15f | 53 | %define filterout_ld -Wl,-z,.* |
27422a4b JB |
54 | %define filterout_c -f[-a-z0-9=]* |
55 | %define filterout_cxx -f[-a-z0-9=]* | |
f155b15f | 56 | |
ae8f43dd | 57 | %description |
58 | This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI | |
59 | library. The interface provides a convenient interface for C++ | |
60 | programmers to create GUIs with GTK+'s flexible object-oriented | |
61 | framework. Features include type safe callbacks, widgets that are | |
62 | extensible using inheritance and over 110 classes that can be freely | |
63 | combined to quickly create complex user interfaces. | |
64 | ||
db814cdf JB |
65 | This package contains the cross version for Win32. |
66 | ||
67 | %description -l pl.UTF-8 | |
f155b15f | 68 | gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką |
db814cdf | 69 | służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się |
f155b15f | 70 | także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit). |
db814cdf JB |
71 | |
72 | Ten pakiet zawiera wersję skrośną dla Win32. | |
73 | ||
74 | %package static | |
b456b73a JB |
75 | Summary: Static gtkmm libraries (cross MinGW32 version) |
76 | Summary(pl.UTF-8): Statyczne biblioteki gtkmm (wersja skrośna MinGW32) | |
db814cdf JB |
77 | Group: Development/Libraries |
78 | Requires: %{name} = %{version}-%{release} | |
79 | ||
80 | %description static | |
b456b73a | 81 | Static gtkmm libraries (cross MinGW32 version). |
db814cdf JB |
82 | |
83 | %description static -l pl.UTF-8 | |
b456b73a | 84 | Statyczne biblioteki gtkmm (wersja skrośna MinGW32). |
db814cdf JB |
85 | |
86 | %package dll | |
87 | Summary: DLL gtkmm libraries for Windows | |
88 | Summary(pl.UTF-8): Biblioteki DLL gtkmm dla Windows | |
89 | Group: Applications/Emulators | |
13047e48 | 90 | Requires: crossmingw32-atkmm-dll >= 2.22.2 |
f155b15f | 91 | Requires: crossmingw32-cairomm-dll >= 1.6.3 |
13047e48 | 92 | Requires: crossmingw32-glibmm-dll >= 2.28.0 |
b456b73a | 93 | Requires: crossmingw32-gtk+2-dll >= 2.20.0 |
2c2b6ad3 | 94 | Requires: crossmingw32-pangomm-dll >= 2.28.0 |
db814cdf JB |
95 | Requires: wine |
96 | ||
97 | %description dll | |
98 | DLL gtkmm libraries for Windows. | |
99 | ||
100 | %description dll -l pl.UTF-8 | |
101 | Biblioteki DLL gtkmm dla Windows. | |
ae8f43dd | 102 | |
ae8f43dd | 103 | %prep |
ab9cdddd | 104 | %setup -q -n %{realname}-%{version} |
ae8f43dd | 105 | |
106 | %build | |
2c2b6ad3 | 107 | export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig:%{_npkgconfigdir} |
ae8f43dd | 108 | %{__libtoolize} |
b456b73a | 109 | %{__aclocal} -I build |
ae8f43dd | 110 | %{__autoconf} |
b456b73a | 111 | %{__autoheader} |
ae8f43dd | 112 | %{__automake} |
c16ab63a JB |
113 | # std-threads required by glibmm requires at least WinXP API |
114 | CPPFLAGS="%{rpmcppflags} -DWINVER=0x0501" | |
ae8f43dd | 115 | %configure \ |
116 | --targe=%{target} \ | |
117 | --host=%{target} \ | |
b456b73a | 118 | --disable-documentation \ |
ae8f43dd | 119 | --enable-static |
120 | ||
121 | %{__make} | |
122 | ||
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
ae8f43dd | 125 | |
126 | %{__make} install \ | |
db814cdf JB |
127 | DESTDIR=$RPM_BUILD_ROOT |
128 | ||
129 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
c16ab63a | 130 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
db814cdf JB |
131 | |
132 | %if 0%{!?debug:1} | |
133 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
134 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
135 | %endif | |
136 | ||
ae8f43dd | 137 | %clean |
138 | rm -rf $RPM_BUILD_ROOT | |
139 | ||
140 | %files | |
141 | %defattr(644,root,root,755) | |
b456b73a | 142 | %doc AUTHORS ChangeLog NEWS PORTING README |
ecea4436 JB |
143 | %{_libdir}/libgdkmm-2.4.dll.a |
144 | %{_libdir}/libgtkmm-2.4.dll.a | |
145 | %{_libdir}/libgdkmm-2.4.la | |
146 | %{_libdir}/libgtkmm-2.4.la | |
147 | %{_libdir}/gdkmm-2.4 | |
148 | %{_libdir}/gtkmm-2.4 | |
149 | %{_includedir}/gdkmm-2.4 | |
150 | %{_includedir}/gtkmm-2.4 | |
151 | %{_pkgconfigdir}/gdkmm-2.4.pc | |
152 | %{_pkgconfigdir}/gtkmm-2.4.pc | |
db814cdf JB |
153 | |
154 | %files static | |
155 | %defattr(644,root,root,755) | |
ecea4436 JB |
156 | %{_libdir}/libgdkmm-2.4.a |
157 | %{_libdir}/libgtkmm-2.4.a | |
db814cdf JB |
158 | |
159 | %files dll | |
160 | %defattr(644,root,root,755) | |
ecea4436 JB |
161 | %{_dlldir}/libgdkmm-2.4-*.dll |
162 | %{_dlldir}/libgtkmm-2.4-*.dll |