%global apiver 2.36 # first two digits of version %define release_version %(echo %{version} | awk -F. '{print $1"."$2}') %global glibmm_version 2.68.0 Name: atkmm2.36 Version: 2.36.2 Release: %autorelease Summary: C++ interface for the ATK library License: LGPLv2+ URL: https://www.gtkmm.org/ Source0: https://download.gnome.org/sources/atkmm/%{release_version}/atkmm-%{version}.tar.xz BuildRequires: atk-devel BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: glibmm2.68-devel >= %{glibmm_version} BuildRequires: libxslt BuildRequires: m4 BuildRequires: meson BuildRequires: mm-common Requires: glibmm2.68%{?_isa} >= %{glibmm_version} %description atkmm provides a C++ interface for the ATK library. Highlights include typesafe callbacks, widgets extensible via inheritance and a comprehensive set of widget classes that can be freely combined to quickly create complex user interfaces. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Developer's documentation for the atkmm library BuildArch: noarch Requires: %{name} = %{version}-%{release} Requires: glibmm2.68-doc %description doc This package contains developer's documentation for the atkmm library. Atkmm is the C++ API for the ATK accessibility toolkit library. The documentation can be viewed either through the devhelp documentation browser or through a web browser. %prep %autosetup -p1 -n atkmm-%{version} %build %meson -Dbuild-documentation=true %meson_build %install %meson_install %files %license COPYING %doc AUTHORS NEWS README.md %{_libdir}/libatkmm-%{apiver}.so.1* %files devel %{_includedir}/atkmm-%{apiver}/ %{_libdir}/libatkmm-%{apiver}.so %{_libdir}/pkgconfig/*.pc %{_libdir}/atkmm-%{apiver}/ %files doc %doc %{_docdir}/atkmm-%{apiver}/ %doc %{_datadir}/devhelp/ %changelog %autochangelog