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: 9a9a00bcd634e3eca0b101809f2eae02
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: gtk+3-devel >= %{gtk3_ver}
27 BuildRequires: libepoxy-devel >= 1.2
28 BuildRequires: libsigc++-devel
29 BuildRequires: libstdc++-devel >= 6:4.7
30 BuildRequires: libtool >= 2:2.0
31 BuildRequires: mm-common >= 0.9.10
32 BuildRequires: pangomm-devel >= %{pangomm_ver}
33 BuildRequires: perl-base >= 1:5.6.0
34 BuildRequires: pkgconfig
35 BuildRequires: rpmbuild(macros) >= 1.752
36 BuildRequires: tar >= 1:1.22
38 Requires: atkmm >= %{atkmm_ver}
39 Requires: cairomm >= 1.12.0
40 Requires: gdk-pixbuf2 >= 2.36.0
41 Requires: glibmm >= %{glibmm_ver}
42 Requires: gtk+3 >= %{gtk3_ver}
43 Requires: pangomm >= %{pangomm_ver}
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 This package provides a C++ interface for GTK+ (the Gimp ToolKit) GUI
48 library. The interface provides a convenient interface for C++
49 programmers to create GUIs with GTK+'s flexible object-oriented
50 framework. Features include type safe callbacks, widgets that are
51 extensible using inheritance and over 110 classes that can be freely
52 combined to quickly create complex user interfaces.
54 %description -l pl.UTF-8
55 gtkmm jest wrapperem C++ dla Gimp ToolKit (GTK). GTK+ jest biblioteką
56 służącą do tworzenia graficznych interfejsów. W pakiecie znajduje się
57 także biblioteka gdkmm - wrapper C++ dla GDK (General Drawing Kit).
60 Summary: gtkmm and gdkmm header files
61 Summary(pl.UTF-8): Pliki nagłówkowe gtkmm i gdkmm
62 Group: X11/Development/Libraries
63 Requires: %{name} = %{version}-%{release}
64 Requires: atkmm-devel >= %{atkmm_ver}
65 Requires: cairomm-devel >= 1.12.0
66 Requires: gdk-pixbuf2-devel >= 2.36.0
67 Requires: glibmm-devel >= %{glibmm_ver}
68 Requires: gtk+3-devel >= %{gtk3_ver}
69 Requires: libstdc++-devel >= 6:4.6
70 Requires: pangomm-devel >= %{pangomm_ver}
73 Header files for gtkmm library.
75 %description devel -l pl.UTF-8
76 Pliki nagłówkowe biblioteki gtkmm.
79 Summary: gtkmm and gdkmm static libraries
80 Summary(pl.UTF-8): Biblioteki statyczne gtkmm i gdkmm
81 Group: X11/Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
85 gtkmm and gdkmm static libraries.
87 %description static -l pl.UTF-8
88 Biblioteki statyczne gtkmm i gdkmm.
91 Summary: Reference documentation for gtkmm and gdkmm
92 Summary(pl.UTF-8): Szczegółowa dokumentacja gtkmm i gdkmm
98 Reference documentation for gtkmm and gdkmm.
100 %description apidocs -l pl.UTF-8
101 Szczegółowa dokumentacja gtkmm i gdkmm.
104 %setup -q -n gtkmm-%{version}
106 # missing in release tarball, not needed for Linux
107 mkdir win32_installer
108 touch win32_installer/filelist.am \
109 win32_installer/gtkmm-installer.nsi.in
112 mm-common-prepare --copy --force
114 %{__aclocal} -I build
119 --enable-maintainer-mode \
120 --disable-silent-rules \
121 %{?with_static_libs:--enable-static}
126 rm -rf $RPM_BUILD_ROOT
129 DESTDIR=$RPM_BUILD_ROOT
131 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
134 rm -rf $RPM_BUILD_ROOT
136 %post -p /sbin/ldconfig
137 %postun -p /sbin/ldconfig
140 %defattr(644,root,root,755)
141 %doc AUTHORS ChangeLog NEWS README
142 %attr(755,root,root) %{_libdir}/libgdkmm-3.0.so.*.*.*
143 %attr(755,root,root) %ghost %{_libdir}/libgdkmm-3.0.so.1
144 %attr(755,root,root) %{_libdir}/libgtkmm-3.0.so.*.*.*
145 %attr(755,root,root) %ghost %{_libdir}/libgtkmm-3.0.so.1
148 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_libdir}/libgdkmm-3.0.so
150 %attr(755,root,root) %{_libdir}/libgtkmm-3.0.so
153 %{_includedir}/gdkmm-3.0
154 %{_includedir}/gtkmm-3.0
155 %{_pkgconfigdir}/gdkmm-3.0.pc
156 %{_pkgconfigdir}/gtkmm-3.0.pc
158 %if %{with static_libs}
160 %defattr(644,root,root,755)
161 %{_libdir}/libgdkmm-3.0.a
162 %{_libdir}/libgtkmm-3.0.a
166 %defattr(644,root,root,755)
168 %{_datadir}/devhelp/books/gtkmm-3.0