pangomm2.48/pangomm2.48.spec

94 lines
2.4 KiB
RPMSpec
Raw Normal View History

%define apiver 2.48
# first two digits of version
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
%global glibmm_version 2.68.0
%global cairomm_version 1.15.1
2021-12-07 12:26:00 +00:00
%global pango_version 1.49.4
Name: pangomm2.48
Version: 2.50.2
Release: %autorelease
Summary: C++ interface for Pango
License: LGPL-2.1-or-later
URL: https://www.gtkmm.org/
Source0: https://download.gnome.org/sources/pangomm/%{release_version}/pangomm-%{version}.tar.xz
BuildRequires: pkgconfig(cairomm-1.16) >= %{cairomm_version}
BuildRequires: pkgconfig(glibmm-2.68) >= %{glibmm_version}
BuildRequires: pkgconfig(pangocairo) >= %{pango_version}
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libxslt
BuildRequires: m4
BuildRequires: meson
BuildRequires: mm-common
Requires: glibmm2.68%{?_isa} >= %{glibmm_version}
Requires: cairomm1.16%{?_isa} >= %{cairomm_version}
Requires: pango%{?_isa} >= %{pango_version}
%description
pangomm provides a C++ interface to the Pango 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: Headers for developing programs that will use %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains the libraries and header files needed for
developing pangomm applications.
%package doc
Summary: Developer's documentation for the pangomm library
BuildArch: noarch
Requires: %{name} = %{version}-%{release}
Requires: libsigc++30-doc
Requires: glibmm2.68-doc
%description doc
This package contains developer's documentation for the pangomm
library. Pangomm is the C++ API for the Pango font layout library.
The documentation can be viewed either through the devhelp
documentation browser or through a web browser.
%prep
%autosetup -p1 -n pangomm-%{version}
%build
%meson -Dbuild-documentation=true
%meson_build
%install
%meson_install
%files
%license COPYING
%doc NEWS README.md
%{_libdir}/libpangomm-%{apiver}.so.1*
%files devel
%{_includedir}/pangomm-%{apiver}
%{_libdir}/libpangomm-%{apiver}.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/pangomm-%{apiver}
%files doc
%doc %{_docdir}/pangomm-%{apiver}/
%{_datadir}/devhelp/
%changelog
%autochangelog