File text-engine.spec of Package text-engine
#
# spec file for package text-engine
#
# Copyright (c) 2023 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/
#
Name: text-engine
Version: 0.1.1
Release: 0
Summary: A lightweight rich text framework for GTK
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: MPL-2.0 OR LGPL-2.1-or-later
URL: https://github.com/mjakeman/text-engine
Source: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: meson
BuildRequires: json-glib-devel
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(libadwaita-1)
%description
Text Engine is a rich-text editing framework for GTK 4.
The primary user of this library is bluetype but it can be used wherever rich text display and editing is needed.
%package -n lib%{name}-devel
Summary: Development files for %{name}
Requires: text-engine = %{version}
%description -n lib%{name}-devel
%{summary}.
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%files
%license COPYING
%doc README.md
%{_bindir}/text-engine-demo
%{_libdir}/*.so.*
%files -n lib%{name}-devel
%{_includedir}/text-engine/
%{_libdir}/*.so
%{_libdir}/pkgconfig/text-engine-0.1.pc
%changelog