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