forked from pool/gtksourceview5
Accepting request 916857 from GNOME:Next
New pack, needed in near future, so might as well start moving it into TW OBS-URL: https://build.opensuse.org/request/show/916857 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gtksourceview5?expand=0&rev=1
This commit is contained in:
commit
776aec9da9
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
78
changes.lang
Normal file
78
changes.lang
Normal file
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
|
||||
This file is not part of GtkSourceView.
|
||||
|
||||
Author: Luciano Santos
|
||||
Copyright (C) 2018 Luciano Santos <luc14n0@linuxmail.org>
|
||||
|
||||
This Language Definiton file is free; you can redistribute it
|
||||
and/or modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This Language Definiton file is distributed in the hope that it
|
||||
will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
See the GNU Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
-->
|
||||
<language id="changes" name="Changes" version="2.0" _section="Other">
|
||||
|
||||
<metadata>
|
||||
<property name="mimetypes">text/plain</property>
|
||||
<property name="globs">*changes</property>
|
||||
</metadata>
|
||||
|
||||
<styles>
|
||||
<style id="horizontal-rule" name="Horizontal Rule" map-to="def:type"/>
|
||||
<style id="date" name="Date" map-to="def:number"/>
|
||||
<style id="email" name="E-mail address" map-to="def:identifier"/>
|
||||
<style id="bullet" name="Bullet" map-to="def:type"/>
|
||||
</styles>
|
||||
|
||||
<definitions>
|
||||
<define-regex id="weekday">Mon|Tue|Wed|Thu|Fri|Sat|Sun</define-regex>
|
||||
<define-regex id="month">Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec</define-regex>
|
||||
|
||||
<define-regex id="date" extended="true">
|
||||
\%{weekday}\s+\%{month}\s+\d{1,2}\s+\d{1,2}:\d{1,2}:\d{1,2}\s+\w{3,4}\s+\d{4}
|
||||
</define-regex>
|
||||
|
||||
<context id="changes">
|
||||
<include>
|
||||
|
||||
<context id="horizontal-rule" style-ref="horizontal-rule" class="no-spell-check">
|
||||
<match>^-{67}$</match>
|
||||
</context>
|
||||
|
||||
<context id="date-email" class="no-spell-check">
|
||||
<match extended="true">
|
||||
^(?P<date>\%{date})\s-\s
|
||||
(?P<email>.*@.*\.\w{2,3})$
|
||||
</match>
|
||||
<include>
|
||||
<context sub-pattern="date" style-ref="date"/>
|
||||
<context sub-pattern="email" style-ref="email"/>
|
||||
</include>
|
||||
</context>
|
||||
<context id="bullet" style-ref="bullet">
|
||||
<match extended="true">
|
||||
(
|
||||
^-\s |
|
||||
^[ ]{2}(\*|\+)\s |
|
||||
^[ ]{4}-\s |
|
||||
^[ ]{6}\.\s
|
||||
)
|
||||
</match>
|
||||
</context>
|
||||
|
||||
</include>
|
||||
</context>
|
||||
</definitions>
|
||||
|
||||
</language>
|
3
gtksourceview-5.2.0.tar.xz
Normal file
3
gtksourceview-5.2.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c9b34fa02654f56ce22fa08827d89db4ba81631b2e6d7d31ea65d13c729430e9
|
||||
size 1206200
|
16
gtksourceview5.changes
Normal file
16
gtksourceview5.changes
Normal file
@ -0,0 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 3 19:38:43 UTC 2021 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Update to version 5.2.0:
|
||||
+ Add support for drawing a highlight line between the gutter and
|
||||
text area. kate.xml uses this to more closely match Kate.
|
||||
+ Python 3 is now preferred over Python 2.
|
||||
+ Fixes for moving words.
|
||||
+ A new scheduler API to help with background buffer work
|
||||
+ Improvements to YARA syntax.
|
||||
+ Updated translations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 1 16:53:10 UTC 2021 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Initial package for openSUSE, version 5.1.0.
|
130
gtksourceview5.spec
Normal file
130
gtksourceview5.spec
Normal file
@ -0,0 +1,130 @@
|
||||
#
|
||||
# spec file for package gtksourceview5
|
||||
#
|
||||
# Copyright (c) 2021 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
|
||||
Version: 5.2.0
|
||||
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.2/%{_name}-%{version}.tar.xz
|
||||
Source1: changes.lang
|
||||
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: meson
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: vala
|
||||
BuildRequires: valgrind
|
||||
BuildRequires: pkgconfig(fribidi)
|
||||
BuildRequires: pkgconfig(gio-2.0) >= 2.66
|
||||
BuildRequires: pkgconfig(glib-2.0) >= 2.66
|
||||
BuildRequires: pkgconfig(gtk4) >= 4.2
|
||||
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: %{name} = %{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}/gir-1.0/GtkSource-5.gir
|
||||
%{_datadir}/gtk-doc/html/gtksourceview-5.0/
|
||||
%dir %{_datadir}/vala/vapi
|
||||
%{_datadir}/vala/vapi/gtksourceview-5.*
|
||||
|
||||
%files lang -f %{_name}-5.lang
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user