3 %bcond_without static_libs # don't build static libraries
5 %define glibmm_ver 2.42.0
6 %define gtk3_ver 3.14.0
7 Summary: A C++ interface for the GTK+ (a GUI library for X)
8 Summary(pl.UTF-8): Wrapper C++ dla GTK+
14 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkmm/3.14/gtkmm-%{version}.tar.xz
15 # Source0-md5: b66c32042cfbb7e5f707237b4efff4de
16 URL: http://www.gtkmm.org/
17 BuildRequires: atkmm-devel >= 2.22.2
18 BuildRequires: autoconf >= 2.59
19 BuildRequires: automake >= 1:1.11
20 BuildRequires: cairomm-devel >= 1.9.2
21 BuildRequires: gdk-pixbuf2-devel >= 2.26.0
22 BuildRequires: glibmm-devel >= %{glibmm_ver}
23 BuildRequires: gtk+3-devel >= %{gtk3_ver}
24 BuildRequires: libsigc++-devel
25 BuildRequires: libstdc++-devel >= 5:3.3.1
26 BuildRequires: libtool >= 2:2.0
27 BuildRequires: mm-common >= 0.9.6
28 BuildRequires: pangomm-devel >= 2.28.0
29 BuildRequires: perl-base >= 1:5.6.0
30 BuildRequires: pkgconfig
31 BuildRequires: tar >= 1:1.22
33 Requires: atkmm >= 2.22.2
34 Requires: cairomm >= 1.9.2
35 Requires: gdk-pixbuf2 >= 2.26.0
36 Requires: glibmm >= %{glibmm_ver}
37 Requires: gtk+3 >= %{gtk3_ver}
38 Requires: pangomm >= 2.28.0
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
43 library. The interface provides a convenient interface for C++
44 programmers to create GUIs with GTK+'s flexible object-oriented
45 framework. Features include type safe callbacks, widgets that are
46 extensible using inheritance and over 110 classes that can be freely
47 combined to quickly create complex user interfaces.
49 %description -l pl.UTF-8
50 gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką
51 służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się
52 także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit).
55 Summary: gtkmm and gdkmm header files
56 Summary(pl.UTF-8): Pliki nagłówkowe gtkmm i gdkmm
57 Group: X11/Development/Libraries
58 Requires: %{name} = %{version}-%{release}
59 Requires: atkmm-devel >= 2.22.2
60 Requires: cairomm-devel >= 1.9.2
61 Requires: gdk-pixbuf2-devel >= 2.26.0
62 Requires: glibmm-devel >= %{glibmm_ver}
63 Requires: gtk+3-devel >= %{gtk3_ver}
64 Requires: pangomm-devel >= 2.28.0
67 Header files for gtkmm library.
69 %description devel -l pl.UTF-8
70 Pliki nagłówkowe biblioteki gtkmm.
73 Summary: gtkmm and gdkmm static libraries
74 Summary(pl.UTF-8): Biblioteki statyczne gtkmm i gdkmm
75 Group: X11/Development/Libraries
76 Requires: %{name}-devel = %{version}-%{release}
79 gtkmm and gdkmm static libraries.
81 %description static -l pl.UTF-8
82 Biblioteki statyczne gtkmm i gdkmm.
85 Summary: Reference documentation for gtkmm and gdkmm
86 Summary(pl.UTF-8): Szczegółowa dokumentacja gtkmm i gdkmm
89 %if "%{_rpmversion}" >= "5"
94 Reference documentation for gtkmm and gdkmm.
96 %description apidocs -l pl.UTF-8
97 Szczegółowa dokumentacja gtkmm i gdkmm.
100 %setup -q -n gtkmm-%{version}
104 %{__aclocal} -I build
109 %{?with_static_libs:--enable-static}
114 rm -rf $RPM_BUILD_ROOT
117 DESTDIR=$RPM_BUILD_ROOT
119 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
128 %defattr(644,root,root,755)
129 %doc AUTHORS ChangeLog NEWS PORTING README
130 %attr(755,root,root) %{_libdir}/libgdkmm-3.0.so.*.*.*
131 %attr(755,root,root) %ghost %{_libdir}/libgdkmm-3.0.so.1
132 %attr(755,root,root) %{_libdir}/libgtkmm-3.0.so.*.*.*
133 %attr(755,root,root) %ghost %{_libdir}/libgtkmm-3.0.so.1
136 %defattr(644,root,root,755)
137 %attr(755,root,root) %{_libdir}/libgdkmm-3.0.so
138 %attr(755,root,root) %{_libdir}/libgtkmm-3.0.so
141 %{_includedir}/gdkmm-3.0
142 %{_includedir}/gtkmm-3.0
143 %{_pkgconfigdir}/gdkmm-3.0.pc
144 %{_pkgconfigdir}/gtkmm-3.0.pc
146 %if %{with static_libs}
148 %defattr(644,root,root,755)
149 %{_libdir}/libgdkmm-3.0.a
150 %{_libdir}/libgtkmm-3.0.a
154 %defattr(644,root,root,755)
156 %{_datadir}/devhelp/books/gtkmm-3.0