3 %bcond_without static_libs # don't build static libraries
5 %include /usr/lib/rpm/macros.perl
6 Summary: A C++ interface for the GTK+ (a GUI library for X)
7 Summary(pl): Wrapper C++ dla GTK+
13 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.8/%{name}-%{version}.tar.bz2
14 # Source0-md5: b7efc6a6a257a044d6e4bca97595a653
15 URL: http://gtkmm.sourceforge.net/
16 BuildRequires: atk-devel >= 1.9.1
17 BuildRequires: autoconf >= 2.59
18 BuildRequires: automake
19 BuildRequires: glibmm-devel >= 2.8.0
20 BuildRequires: gtk+2-devel >= 2:2.6.4
21 BuildRequires: libsigc++-devel >= 1:2.0.10
22 BuildRequires: libstdc++-devel >= 5:3.3.1
23 BuildRequires: libtool >= 2:1.4d-3
24 BuildRequires: pango-devel >= 1:1.8.1
25 BuildRequires: perl-base >= 1:5.6.0
26 BuildRequires: pkgconfig
27 BuildRequires: rpm-perlprov >= 3.0.3-16
28 Requires: %{name}-atk = %{version}-%{release}
29 Requires: %{name}-pango = %{version}-%{release}
31 Requires: glibmm >= 2.8.0
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
37 library. The interface provides a convenient interface for C++
38 programmers to create GUIs with GTK+'s flexible object-oriented
39 framework. Features include type safe callbacks, widgets that are
40 extensible using inheritance and over 110 classes that can be freely
41 combined to quickly create complex user interfaces.
44 GTK-- jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest bibliotek±
45 s³u¿±c± do tworzenia graficznych interfejsów. W pakiecie znajduje siê
46 tak¿e biblioteka GDK-- - wrapper C++ dla GDK (General Drawing Kit).
49 Summary: GTK-- and GDK-- header files, development documentation
50 Summary(pl): Pliki nag³ówkowe GTK-- i GDK--, dokumentacja dla programistów
51 Group: X11/Development/Libraries
52 Requires: %{name} = %{version}-%{release}
53 Requires: %{name}-atk-devel = %{version}-%{release}
54 Requires: %{name}-pango-devel = %{version}-%{release}
55 Requires: glibmm-devel >= 2.6.0
56 Requires: gtk+2-devel >= 2:2.6.4
57 Requires: libsigc++-devel >= 1:2.0.10
60 Header files and development documentation for GTK-- library.
62 %description devel -l pl
63 Pliki nag³ówkowe i dokumentacja dla programistów do biblioteki GTK--.
66 Summary: Reference documentation and examples for GTK-- and GDK--
67 Summary(pl): Szczegó³owa dokumentacja i przyk³ady dla GTK-- i GDK--
72 Reference documentation and examples for GTK-- and GDK--.
74 %description doc -l pl
75 Szczegó³owa dokumentacja i przyk³ady dla GTK-- i GDK--.
78 Summary: GTK-- and GDK-- static libraries
79 Summary(pl): Biblioteki statyczne GTK-- i GDK--
80 Group: X11/Development/Libraries
81 Requires: %{name}-devel = %{version}-%{release}
84 GTK-- and GDK-- static libraries.
86 %description static -l pl
87 Biblioteki statyczne GTK-- i GDK--.
90 Summary: A C++ interface for atk library
91 Summary(pl): Interfejs C++ dla biblioteki atk
92 Group: X11/Development/Libraries
93 Requires: glibmm >= 2.6.0
96 A C++ interface for atk library.
98 %description atk -l pl
99 Interfejs C++ dla biblioteki atk.
102 Summary: A C++ interface for atk library - header files
103 Summary(pl): Interfejs C++ dla biblioteki atk - pliki nag³ówkowe
104 Group: X11/Development/Libraries
105 Requires: %{name}-atk = %{version}-%{release}
106 Requires: atk-devel >= 1.9.1
107 Requires: glibmm-devel >= 2.6.0
109 %description atk-devel
110 A C++ interface for atk library - header files.
112 %description atk-devel -l pl
113 Interfejs C++ dla biblioteki atk - pliki nag³ówkowe.
116 Summary: A C++ interface for atk library - static version
117 Summary(pl): Interfejs C++ dla biblioteki atk - wersja statyczna
118 Group: X11/Development/Libraries
119 Requires: %{name}-atk-devel = %{version}-%{release}
121 %description atk-static
122 A C++ interface for atk library - static version.
124 %description atk-static -l pl
125 Interfejs C++ dla biblioteki atk - wersja statyczna.
128 Summary: A C++ interface for pango library
129 Summary(pl): Interfejs C++ dla biblioteki pango
130 Group: X11/Development/Libraries
131 Requires: glibmm >= 2.6.0
134 A C++ interface for pango library.
136 %description pango -l pl
137 Interfejs C++ dla biblioteki pango.
140 Summary: A C++ interface for pango library - header files
141 Summary(pl): Interfejs C++ dla biblioteki pango - pliki nag³ówkowe
142 Group: X11/Development/Libraries
143 Requires: %{name}-pango = %{version}-%{release}
144 Requires: glibmm-devel >= 2.6.0
145 Requires: pango-devel >= 1:1.8.1
147 %description pango-devel
148 A C++ interface for pango library - header files.
150 %description pango-devel -l pl
151 Interfejs C++ dla biblioteki pango - pliki nag³ówkowe.
153 %package pango-static
154 Summary: A C++ interface for pango library - static version
155 Summary(pl): Interfejs C++ dla biblioteki pango - wersja statyczna
156 Group: X11/Development/Libraries
157 Requires: %{name}-pango-devel = %{version}-%{release}
159 %description pango-static
160 A C++ interface for pango library - static version.
162 %description pango-static -l pl
163 Interfejs C++ dla biblioteki pango - wersja statyczna.
170 %{__aclocal} -I scripts
173 # exceptions and rtti are used in this package --misiek
175 --enable-static=yes \
177 %{!?with_static_libs:--disable-static}
181 rm -rf $RPM_BUILD_ROOT
182 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
185 DESTDIR=$RPM_BUILD_ROOT \
186 pkgconfigdir=%{_pkgconfigdir}
188 mv -f $RPM_BUILD_ROOT%{_docdir}/gtkmm-2.4/{examples,tests} \
189 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
192 rm -rf $RPM_BUILD_ROOT
194 %post -p /sbin/ldconfig
195 %postun -p /sbin/ldconfig
197 %post atk -p /sbin/ldconfig
198 %postun atk -p /sbin/ldconfig
200 %post pango -p /sbin/ldconfig
201 %postun pango -p /sbin/ldconfig
204 %defattr(644,root,root,755)
205 %doc AUTHORS ChangeLog CHANGES NEWS PORTING README
206 %attr(755,root,root) %{_libdir}/libg[dt]kmm*.so.*.*
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/libg[dt]kmm*.so
211 %{_libdir}/libg[dt]kmm*.la
212 %{_libdir}/g[dt]kmm-2.4
213 %{_includedir}/g[dt]kmm-2.4
214 %{_pkgconfigdir}/g[dt]kmm*.pc
217 %defattr(644,root,root,755)
218 %doc %{_docdir}/gtkmm-2.4
219 %{_examplesdir}/%{name}-%{version}
220 %doc %{_datadir}/devhelp/books/gtkmm-2.4
222 %if %{with static_libs}
224 %defattr(644,root,root,755)
225 %{_libdir}/libg[dt]kmm*.a
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_libdir}/libatkmm*.so.*.*
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/libatkmm*.so
235 %{_libdir}/libatkmm*.la
236 %{_pkgconfigdir}/atkmm*.pc
237 %{_includedir}/atkmm-1.6
239 %if %{with static_libs}
241 %defattr(644,root,root,755)
242 %{_libdir}/libatkmm*.a
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/libpangomm*.so.*.*
250 %defattr(644,root,root,755)
251 %attr(755,root,root) %{_libdir}/libpangomm*.so
252 %{_libdir}/libpangomm*.la
253 %{_pkgconfigdir}/pangomm*.pc
254 %{_includedir}/pangomm-1.4
256 %if %{with static_libs}
258 %defattr(644,root,root,755)
259 %{_libdir}/libpangomm*.a