3 %bcond_without static_libs # don't build static libraries
5 %define atkmm_ver 2.24.2
6 %define glibmm_ver 2.54.0
7 %define gtk3_ver 3.24.0
8 %define pangomm_ver 2.38.2
9 Summary: A C++ interface for the GTK+ (a GUI library for X)
10 Summary(pl.UTF-8): Wrapper C++ dla GTK+
16 Source0: https://download.gnome.org/sources/gtkmm/3.24/gtkmm-%{version}.tar.xz
17 # Source0-md5: f55ed05e1f04f3d7bb11f185774acb45
18 URL: https://www.gtkmm.org/
19 BuildRequires: atkmm-devel >= %{atkmm_ver}
20 BuildRequires: autoconf >= 2.59
21 BuildRequires: automake >= 1:1.11
22 BuildRequires: cairomm-devel >= 1.12.0
23 BuildRequires: doxygen >= 1:1.8.9
24 BuildRequires: gdk-pixbuf2-devel >= 2.36.0
25 BuildRequires: glibmm-devel >= %{glibmm_ver}
26 BuildRequires: graphviz
27 BuildRequires: gtk+3-devel >= %{gtk3_ver}
28 BuildRequires: libepoxy-devel >= 1.2
29 BuildRequires: libsigc++-devel
30 BuildRequires: libstdc++-devel >= 6:4.7
31 BuildRequires: libtool >= 2:2.0
32 BuildRequires: libxslt-progs
33 BuildRequires: mm-common >= 0.9.10
34 BuildRequires: pangomm-devel >= %{pangomm_ver}
35 BuildRequires: perl-base >= 1:5.6.0
36 BuildRequires: pkgconfig
37 BuildRequires: rpm-build >= 4.6
38 BuildRequires: rpmbuild(macros) >= 1.752
39 BuildRequires: tar >= 1:1.22
41 Requires: atkmm >= %{atkmm_ver}
42 Requires: cairomm >= 1.12.0
43 Requires: gdk-pixbuf2 >= 2.36.0
44 Requires: glibmm >= %{glibmm_ver}
45 Requires: gtk+3 >= %{gtk3_ver}
46 Requires: pangomm >= %{pangomm_ver}
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
51 library. The interface provides a convenient interface for C++
52 programmers to create GUIs with GTK+'s flexible object-oriented
53 framework. Features include type safe callbacks, widgets that are
54 extensible using inheritance and over 110 classes that can be freely
55 combined to quickly create complex user interfaces.
57 %description -l pl.UTF-8
58 gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką
59 służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się
60 także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit).
63 Summary: gtkmm and gdkmm header files
64 Summary(pl.UTF-8): Pliki nagłówkowe gtkmm i gdkmm
65 Group: X11/Development/Libraries
66 Requires: %{name} = %{version}-%{release}
67 Requires: atkmm-devel >= %{atkmm_ver}
68 Requires: cairomm-devel >= 1.12.0
69 Requires: gdk-pixbuf2-devel >= 2.36.0
70 Requires: glibmm-devel >= %{glibmm_ver}
71 Requires: gtk+3-devel >= %{gtk3_ver}
72 Requires: libstdc++-devel >= 6:4.6
73 Requires: pangomm-devel >= %{pangomm_ver}
76 Header files for gtkmm library.
78 %description devel -l pl.UTF-8
79 Pliki nagłówkowe biblioteki gtkmm.
82 Summary: gtkmm and gdkmm static libraries
83 Summary(pl.UTF-8): Biblioteki statyczne gtkmm i gdkmm
84 Group: X11/Development/Libraries
85 Requires: %{name}-devel = %{version}-%{release}
88 gtkmm and gdkmm static libraries.
90 %description static -l pl.UTF-8
91 Biblioteki statyczne gtkmm i gdkmm.
94 Summary: Reference documentation for gtkmm and gdkmm
95 Summary(pl.UTF-8): Szczegółowa dokumentacja gtkmm i gdkmm
101 Reference documentation for gtkmm and gdkmm.
103 %description apidocs -l pl.UTF-8
104 Szczegółowa dokumentacja gtkmm i gdkmm.
107 %setup -q -n gtkmm-%{version}
109 # missing in release tarball, not needed for Linux
110 mkdir win32_installer
111 touch win32_installer/filelist.am \
112 win32_installer/gtkmm-installer.nsi.in
115 mm-common-prepare --copy --force
117 %{__aclocal} -I build
122 --enable-maintainer-mode \
123 --disable-silent-rules \
124 %{?with_static_libs:--enable-static}
129 rm -rf $RPM_BUILD_ROOT
132 DESTDIR=$RPM_BUILD_ROOT
134 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
137 rm -rf $RPM_BUILD_ROOT
139 %post -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
143 %defattr(644,root,root,755)
144 %doc ChangeLog NEWS README.md
145 %attr(755,root,root) %{_libdir}/libgdkmm-3.0.so.*.*.*
146 %attr(755,root,root) %ghost %{_libdir}/libgdkmm-3.0.so.1
147 %attr(755,root,root) %{_libdir}/libgtkmm-3.0.so.*.*.*
148 %attr(755,root,root) %ghost %{_libdir}/libgtkmm-3.0.so.1
151 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_libdir}/libgdkmm-3.0.so
153 %attr(755,root,root) %{_libdir}/libgtkmm-3.0.so
156 %{_includedir}/gdkmm-3.0
157 %{_includedir}/gtkmm-3.0
158 %{_pkgconfigdir}/gdkmm-3.0.pc
159 %{_pkgconfigdir}/gtkmm-3.0.pc
161 %if %{with static_libs}
163 %defattr(644,root,root,755)
164 %{_libdir}/libgdkmm-3.0.a
165 %{_libdir}/libgtkmm-3.0.a
169 %defattr(644,root,root,755)
171 %{_datadir}/devhelp/books/gtkmm-3.0