gtksourceview5/gtksourceview5.spec

131 lines
3.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gtksourceview5
#
# Copyright (c) 2022 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 _name gtksourceview
Name: gtksourceview5
Accepting request 983489 from GNOME:Next - Update to version 5.4.2: + Updated languages: c.lang, perl.lang. + Updated style-schemes: Adwaita-dark, solarized-light, solarized-dark. + Gutter renderers are now provided a prelight quark for lines when the pointer is over the gutter. + Hover assistants now avoid synthesized motion which is used much more often in GTK 4 when dealing with crossing-events. + Hover assistants will now dismiss themselves when the cursor moves. + GtkSourceMap has reduced how often it needs to do allocation by ignoring spurious notify::upper and value-changed signals from GtkTextView's vertical GtkAdjustment. + The testsuite has gained some correctness improvements. + The Vim emulation's register implementation is now shared between buffers as it would be expected in Vim. + Snippets have gained some robustness improvements including the ability to simplify results from the snippet parser, more defensive behavior, and being lazier when possible. + Tabbing through focus-positions in snippets will now immediately jump to the new position if scrolling is required instead of animating as it results in better placement of tooltip assistants. + Assistants including completion, hover, and interactive tooltips now reduce how often they request presentation and position calculation from GDK and ultimately display servers such as Wayland. + Completion windows now take the size of the gutter into account when calculating their position relative to the parent GtkWindow so that the typed-text column remains aligned with typed text in the source view. + Completion has gained robustness improvements to do less work when possible and avoid spinning the frame-clock which could happen in certain scenarios. + Updated translations. OBS-URL: https://build.opensuse.org/request/show/983489 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtksourceview5?expand=0&rev=7
2022-06-20 09:54:55 +02:00
Version: 5.4.2
Release: 0
Summary: GTK+ Source Editing Widget
License: LGPL-2.1-or-later
Group: System/GUI/GNOME
URL: https://wiki.gnome.org/Projects/GtkSourceView
Source0: https://download.gnome.org/sources/gtksourceview/5.4/%{_name}-%{version}.tar.xz
Source1: changes.lang
BuildRequires: gobject-introspection-devel >= 1.70
BuildRequires: meson >= 0.59.0
BuildRequires: pkgconfig
BuildRequires: python3-gi-docgen
BuildRequires: vala
BuildRequires: valgrind
BuildRequires: pkgconfig(fribidi)
BuildRequires: pkgconfig(gio-2.0) >= 2.70
BuildRequires: pkgconfig(glib-2.0) >= 2.70
BuildRequires: pkgconfig(gtk4) >= 4.4
BuildRequires: pkgconfig(libxml-2.0) >= 2.6
%description
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.
It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.
%package -n libgtksourceview-5-0
Summary: GTK+ Source Editing Widget
Group: System/Libraries
Provides: %{name} = %{version}
%description -n libgtksourceview-5-0
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.
It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.
%package -n typelib-1_0-GtkSource-5
Summary: GTK+ Source Editing Widget -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-GtkSource-5
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.
It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.
This package provides the GObject Introspection bindings for
GtkSourceView.
%package devel
Summary: GTK+ Source Editing Widget
Group: Development/Languages/C and C++
Requires: libgtksourceview-5-0 = %{version}
Requires: typelib-1_0-GtkSource-5 = %{version}
%description devel
GtkSourceView is a text widget that extends GtkTextView, the standard
GTK+ text widget.
It improves GtkTextView by implementing syntax highlighting and other
features typical of a source editor.
%lang_package
%prep
%autosetup -n %{_name}-%{version} -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%meson \
-Dgtk_doc=true \
%{nil}
%meson_build
%install
%meson_install
%find_lang %{_name}-5
# Install language definition for *.changes files:
install -m 644 %{S:1} %{buildroot}%{_datadir}/gtksourceview-5/language-specs/
%post -n libgtksourceview-5-0 -p /sbin/ldconfig
%postun -n libgtksourceview-5-0 -p /sbin/ldconfig
%files -n libgtksourceview-5-0
%license COPYING
%doc AUTHORS
%{_libdir}/libgtksourceview-5.so.*
%{_datadir}/gtksourceview-5/
%{_datadir}/icons/*/*/*/*.svg
%files -n typelib-1_0-GtkSource-5
%{_libdir}/girepository-1.0/GtkSource-5.typelib
%files devel
%{_includedir}/gtksourceview-5/
%{_libdir}/libgtksourceview-5.so
%{_libdir}/pkgconfig/gtksourceview-5.pc
%{_datadir}/doc/%{name}/
%{_datadir}/gir-1.0/GtkSource-5.gir
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/gtksourceview-5.*
%files lang -f %{_name}-5.lang
%changelog