3 %bcond_without examples # don't build examples
4 %bcond_without static_libs # don't build static libraries
6 %include /usr/lib/rpm/macros.perl
7 Summary: A C++ interface for the GTK+ (a GUI library for X)
8 Summary(pl): Wrapper C++ dla GTK+
14 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/2.9/%{name}-%{version}.tar.bz2
15 # Source0-md5: 2ba6fc9065a89cd752fdc40551314519
16 URL: http://gtkmm.sourceforge.net/
17 BuildRequires: atk-devel >= 1.12.1
18 BuildRequires: autoconf >= 2.59
19 BuildRequires: automake >= 1:1.9
20 BuildRequires: cairomm-devel >= 1.1.10
21 BuildRequires: glibmm-devel >= 2.10.4
22 BuildRequires: gtk+2-devel >= 2:2.10.0
23 BuildRequires: libstdc++-devel >= 5:3.3.1
24 BuildRequires: libtool >= 2:1.4d-3
25 BuildRequires: pango-devel >= 1:1.13.3
26 BuildRequires: perl-base >= 1:5.6.0
27 BuildRequires: pkgconfig
28 BuildRequires: rpm-perlprov >= 3.0.3-16
29 Requires: %{name}-atk = %{version}-%{release}
30 Requires: %{name}-pango = %{version}-%{release}
32 Requires: gtk+2 >= 2:2.10.0
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
38 library. The interface provides a convenient interface for C++
39 programmers to create GUIs with GTK+'s flexible object-oriented
40 framework. Features include type safe callbacks, widgets that are
41 extensible using inheritance and over 110 classes that can be freely
42 combined to quickly create complex user interfaces.
45 GTK-- jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest bibliotek±
46 s³u¿±c± do tworzenia graficznych interfejsów. W pakiecie znajduje siê
47 tak¿e biblioteka GDK-- - wrapper C++ dla GDK (General Drawing Kit).
50 Summary: GTK-- and GDK-- header files, development documentation
51 Summary(pl): Pliki nag³ówkowe GTK-- i GDK--, dokumentacja dla programistów
52 Group: X11/Development/Libraries
53 Requires: %{name} = %{version}-%{release}
54 Requires: %{name}-atk-devel = %{version}-%{release}
55 Requires: %{name}-pango-devel = %{version}-%{release}
56 Requires: gtk+2-devel >= 2:2.10.0
59 Header files and development documentation for GTK-- library.
61 %description devel -l pl
62 Pliki nag³ówkowe i dokumentacja dla programistów do biblioteki GTK--.
65 Summary: Reference documentation and examples for GTK-- and GDK--
66 Summary(pl): Szczegó³owa dokumentacja i przyk³ady dla GTK-- i GDK--
71 Reference documentation and examples for GTK-- and GDK--.
73 %description doc -l pl
74 Szczegó³owa dokumentacja i przyk³ady dla GTK-- i GDK--.
77 Summary: GTK-- and GDK-- static libraries
78 Summary(pl): Biblioteki statyczne GTK-- i GDK--
79 Group: X11/Development/Libraries
80 Requires: %{name}-devel = %{version}-%{release}
83 GTK-- and GDK-- static libraries.
85 %description static -l pl
86 Biblioteki statyczne GTK-- i GDK--.
89 Summary: A C++ interface for atk library
90 Summary(pl): Interfejs C++ dla biblioteki atk
91 Group: X11/Development/Libraries
92 Requires: atk >= 1.11.4
93 Requires: glibmm >= 2.10.4
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.12.1
107 Requires: glibmm-devel >= 2.10.4
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.10.4
132 Requires: pango >= 1:1.13.3
135 A C++ interface for pango library.
137 %description pango -l pl
138 Interfejs C++ dla biblioteki pango.
141 Summary: A C++ interface for pango library - header files
142 Summary(pl): Interfejs C++ dla biblioteki pango - pliki nag³ówkowe
143 Group: X11/Development/Libraries
144 Requires: %{name}-pango = %{version}-%{release}
145 Requires: glibmm-devel >= 2.10.4
146 Requires: pango-devel >= 1:1.13.3
148 %description pango-devel
149 A C++ interface for pango library - header files.
151 %description pango-devel -l pl
152 Interfejs C++ dla biblioteki pango - pliki nag³ówkowe.
154 %package pango-static
155 Summary: A C++ interface for pango library - static version
156 Summary(pl): Interfejs C++ dla biblioteki pango - wersja statyczna
157 Group: X11/Development/Libraries
158 Requires: %{name}-pango-devel = %{version}-%{release}
160 %description pango-static
161 A C++ interface for pango library - static version.
163 %description pango-static -l pl
164 Interfejs C++ dla biblioteki pango - wersja statyczna.
171 %{__aclocal} -I scripts
174 LDFLAGS="%{rpmldflags} -Wl,--as-needed"
175 # exceptions and rtti are used in this package --misiek
178 %{!?with_examples:--disable-examples} \
179 %{?with_static_libs:--enable-static}
184 rm -rf $RPM_BUILD_ROOT
185 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
188 DESTDIR=$RPM_BUILD_ROOT \
189 pkgconfigdir=%{_pkgconfigdir}
191 mv -f $RPM_BUILD_ROOT%{_docdir}/gtkmm-2.4/{examples,tests} \
192 $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
195 rm -rf $RPM_BUILD_ROOT
197 %post -p /sbin/ldconfig
198 %postun -p /sbin/ldconfig
200 %post atk -p /sbin/ldconfig
201 %postun atk -p /sbin/ldconfig
203 %post pango -p /sbin/ldconfig
204 %postun pango -p /sbin/ldconfig
207 %defattr(644,root,root,755)
208 %doc AUTHORS ChangeLog CHANGES NEWS PORTING README
209 %attr(755,root,root) %{_libdir}/libg[dt]kmm*.so.*.*
212 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/libg[dt]kmm*.so
214 %{_libdir}/libg[dt]kmm*.la
215 %{_libdir}/g[dt]kmm-2.4
216 %{_includedir}/g[dt]kmm-2.4
217 %{_pkgconfigdir}/g[dt]kmm*.pc
220 %defattr(644,root,root,755)
221 %doc %{_docdir}/gtkmm-2.4
222 %{?with_examples:%{_examplesdir}/%{name}-%{version}}
223 %doc %{_datadir}/devhelp/books/gtkmm-2.4
225 %if %{with static_libs}
227 %defattr(644,root,root,755)
228 %{_libdir}/libg[dt]kmm*.a
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/libatkmm*.so.*.*
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_libdir}/libatkmm*.so
238 %{_libdir}/libatkmm*.la
239 %{_pkgconfigdir}/atkmm*.pc
240 %{_includedir}/atkmm-1.6
242 %if %{with static_libs}
244 %defattr(644,root,root,755)
245 %{_libdir}/libatkmm*.a
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_libdir}/libpangomm*.so.*.*
253 %defattr(644,root,root,755)
254 %attr(755,root,root) %{_libdir}/libpangomm*.so
255 %{_libdir}/libpangomm*.la
256 %{_pkgconfigdir}/pangomm*.pc
257 %{_includedir}/pangomm-1.4
259 %if %{with static_libs}
261 %defattr(644,root,root,755)
262 %{_libdir}/libpangomm*.a