pangomm/pangomm.spec
Dominique Leuenberger 0289477d6d Accepting request 856993 from GNOME:Next
- Update to version 2.48.0:
  + FontFamily, FontMap: Implement the Gio::ListModel interface
    CairoFontMap: Add get_default()
  + Attribute: Add Overline and ShowFlags enums and some create*()
    methods Renderer: Add vfuncs
  + Font, FontFace, FontFamily, FontMetrics: Add new methods
  + LayoutRun: Rename to GlyphItem
  + LayoutIter: Fix get_run() and get_line()
  + GlyphString, Item: Wrap pango_shape_with_flags()
  + Layout: Add set/get_line_spacing()
  + Build:
    - Depend on giomm (not just glibmm)
    - Use __declspec(dllexport) when building with Visual Studio
    - Meson build: Avoid some recompilations
    - Meson build: Better error message if trying to build with
      maintainer-mode=false when true is necessary
    - Meson build: Set default value of the 'warnings' option to
      'min'
    - Improve NMake support
    - Improve Visual Studio support
    - docs/reference/: Update for Doxygen >= 1.8.16
    - Meson build: Fix versioning on macOS
    - Change the ABI to pangomm-2.48
- Add meson BuildRequires and macros following upstreams port.
- Bump base_ver and libname (and in baselibs.conf) following
  upstream changes.
- Add doxygen, graphviz and xsltproc BuildRequires, needed to build
  documentation now.
- Replace pkgconfig(glibmm-2.66) with pkgconfig(giomm-2.68) and
  pkgconfig(glibmm-2.68) BuildRequires following upstream changes.
- Drop libtool and mm-common BuildRequires, no longer needed.

OBS-URL: https://build.opensuse.org/request/show/856993
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/pangomm?expand=0&rev=73
2020-12-21 10:19:46 +00:00

112 lines
3.1 KiB
RPMSpec

#
# spec file for package pangomm
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define base_ver 2.48
# Update baselibs.conf when changing the version here
%define libname lib%{name}-2_48-1
Name: pangomm
Version: 2.48.0
Release: 0
Summary: C++ interface for pango
License: LGPL-2.1-or-later AND GPL-2.0-or-later AND GPL-3.0-only
Group: Development/Libraries/C and C++
URL: https://www.gtkmm.org
Source0: https://download.gnome.org/sources/%{name}/%{base_ver}/%{name}-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: c++_compiler
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: graphviz
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: xsltproc
BuildRequires: pkgconfig(cairomm-1.16) >= 1.2.2
BuildRequires: pkgconfig(giomm-2.68)
BuildRequires: pkgconfig(glibmm-2.68)
BuildRequires: pkgconfig(pangocairo) >= 1.31.0
Recommends: %{name}-doc = %{version}
%description
pangomm provides a C++ interface to the pango library.
%package -n %{libname}
Summary: C++ interface for Pango
License: LGPL-2.1-or-later
Group: System/Libraries
%description -n %{libname}
pangomm provides a C++ interface to the pango library.
%package devel
Summary: Development files for pangomm, a C++ API for Pango
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
Requires: %{libname} >= %{version}
%description devel
pangomm provides a C++ interface to the pango library.
%package doc
Summary: Developer documentation for pangomm, a C++ interface for Pango
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Documentation/HTML
%description doc
pangomm provides a C++ interface to the pango library.
This package contains the developer documentation.
%prep
%autosetup -p1
%build
%meson \
-Dbuild-documentation=true \
%{nil}
%meson_build
%install
%meson_install
%fdupes %{buildroot}/%{_prefix}
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license COPYING
%doc NEWS
%{_libdir}/libpangomm-%{base_ver}.so.*
%files devel
%license COPYING.tools
%{_includedir}/pangomm-%{base_ver}/
%{_libdir}/libpangomm-%{base_ver}.so
%{_libdir}/pkgconfig/pangomm-%{base_ver}.pc
%{_libdir}/pangomm-%{base_ver}
%files doc
%doc AUTHORS README
%{_datadir}/devhelp/books/pangomm-%{base_ver}/
%{_datadir}/doc/pangomm-%{base_ver}/
# Avoid BuildRequires on devhelp
%dir %{_datadir}/devhelp
%dir %{_datadir}/devhelp/books
%changelog