- Update to version 48.1:
+ Removed plugins: External Tools, Snippets, Python Console. + Text Size plugin: rewrite in C. + Remove the background-pattern feature (with the grid). + Fix bug on Wayland to unmaximize the window. + Code refactorings. + Fix compilation warning. + Updated translations. - Drop gedit-plugins-python-env.patch: No longer needed, nor applies. OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gedit?expand=0&rev=290
This commit is contained in:
commit
ddc7e8dca5
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
|
19
_service
Normal file
19
_service
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<services>
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://gitlab.gnome.org/World/gedit/gedit.git</param>
|
||||
<param name="revision">48.1</param>
|
||||
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
|
||||
<param name="versionrewrite-pattern">v?(.*)\+0</param>
|
||||
<param name="versionrewrite-replacement">\1</param>
|
||||
<!-- <param name="changesgenerate">enable</param> -->
|
||||
</service>
|
||||
<service name="tar" mode="buildtime"/>
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">zst</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual" />
|
||||
</services>
|
||||
|
3
gedit-46.2.obscpio
Normal file
3
gedit-46.2.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:18f0970db58e579ca03e8d4ef6fe886d9de00748373a607950ae218714f77c01
|
||||
size 24259597
|
3
gedit-48.0.obscpio
Normal file
3
gedit-48.0.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d054a5dc177381506944befde85e2b6c1534b2280ff641235815b266bc1287ec
|
||||
size 24294925
|
3
gedit-48.1.obscpio
Normal file
3
gedit-48.1.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa17d46793e0df487826371d8db7d35e0309908bb7fa017d641aec8dffc9699b
|
||||
size 23773709
|
13
gedit-desktop.patch
Normal file
13
gedit-desktop.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: gedit-43.0/data/org.gnome.gedit.desktop.in
|
||||
===================================================================
|
||||
--- gedit-43.0.orig/data/org.gnome.gedit.desktop.in
|
||||
+++ gedit-43.0/data/org.gnome.gedit.desktop.in
|
||||
@@ -5,7 +5,7 @@ Exec=gedit %U
|
||||
Terminal=false
|
||||
Type=Application
|
||||
StartupNotify=true
|
||||
-MimeType=text/plain;application/x-zerosize;
|
||||
+MimeType=application/x-awk;application/x-csh;application/x-perl;application/x-php;application/x-shellscript;text/plain;text/x-c;text/x-c++;text/x-c++hdr;text/x-chdr;text/x-c++src;text/x-csrc;text/x-fortran;text/x-java;text/x-log;text/x-makefile;text/x-moc;text/x-pascal;text/x-patch;text/x-python;text/x-readme;text/x-scheme;text/x-tcl;text/x-tex;
|
||||
Icon=org.gnome.gedit
|
||||
Categories=GNOME;GTK;Utility;TextEditor;
|
||||
Actions=new-window;new-document;
|
10
gedit-plugins-python-env.patch
Normal file
10
gedit-plugins-python-env.patch
Normal file
@ -0,0 +1,10 @@
|
||||
Index: gedit-3.27.92/plugins/externaltools/data/send-to-fpaste.tool.in
|
||||
===================================================================
|
||||
--- gedit-3.27.92.orig/plugins/externaltools/data/send-to-fpaste.tool.in 2018-02-01 14:58:38.000000000 +0100
|
||||
+++ gedit-3.27.92/plugins/externaltools/data/send-to-fpaste.tool.in 2018-03-06 22:46:20.502284840 +0100
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python3
|
||||
+#!/usr/bin/python3
|
||||
|
||||
import os, urllib, json, sys, urllib.request
|
||||
from gi.repository import Gtk, Gdk
|
53
gedit-quickhighlight-gtksourcestyle-api.patch
Normal file
53
gedit-quickhighlight-gtksourcestyle-api.patch
Normal file
@ -0,0 +1,53 @@
|
||||
From 6fa2371e5d9f5e9ef5403e78271cdfd9c4055e9a Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?S=C3=A9bastien=20Wilmet?= <swilmet@informatique-libre.be>
|
||||
Date: Tue, 8 Aug 2023 16:00:00 +0200
|
||||
Subject: [PATCH] quickhighlight plugin: adapt code for GtkSourceStyle API
|
||||
break
|
||||
|
||||
---
|
||||
plugins/quickhighlight/gedit-quick-highlight-plugin.c | 8 ++++----
|
||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/plugins/quickhighlight/gedit-quick-highlight-plugin.c b/plugins/quickhighlight/gedit-quick-highlight-plugin.c
|
||||
index 7b4289dc7..ee40bcc84 100644
|
||||
--- a/plugins/quickhighlight/gedit-quick-highlight-plugin.c
|
||||
+++ b/plugins/quickhighlight/gedit-quick-highlight-plugin.c
|
||||
@@ -83,7 +83,7 @@ gedit_quick_highlight_plugin_load_style (GeditQuickHighlightPlugin *plugin)
|
||||
|
||||
gedit_debug (DEBUG_PLUGINS);
|
||||
|
||||
- g_clear_object (&plugin->priv->style);
|
||||
+ g_clear_pointer (&plugin->priv->style, gtk_source_style_unref);
|
||||
|
||||
style_scheme = gtk_source_buffer_get_style_scheme (GTK_SOURCE_BUFFER (plugin->priv->buffer));
|
||||
|
||||
@@ -93,7 +93,7 @@ gedit_quick_highlight_plugin_load_style (GeditQuickHighlightPlugin *plugin)
|
||||
|
||||
if (style != NULL)
|
||||
{
|
||||
- plugin->priv->style = gtk_source_style_copy (style);
|
||||
+ plugin->priv->style = gtk_source_style_ref (style);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -336,7 +336,7 @@ gedit_quick_highlight_plugin_finalize (GObject *object)
|
||||
{
|
||||
GeditQuickHighlightPlugin *plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (object);
|
||||
|
||||
- g_clear_object (&plugin->priv->style);
|
||||
+ g_clear_pointer (&plugin->priv->style, gtk_source_style_unref);
|
||||
|
||||
G_OBJECT_CLASS (gedit_quick_highlight_plugin_parent_class)->finalize (object);
|
||||
}
|
||||
@@ -435,7 +435,7 @@ gedit_quick_highlight_plugin_deactivate (GeditViewActivatable *activatable)
|
||||
|
||||
plugin = GEDIT_QUICK_HIGHLIGHT_PLUGIN (activatable);
|
||||
|
||||
- g_clear_object (&plugin->priv->style);
|
||||
+ g_clear_pointer (&plugin->priv->style, gtk_source_style_unref);
|
||||
g_clear_object (&plugin->priv->search_context);
|
||||
|
||||
gedit_quick_highlight_plugin_unref_weak_buffer (plugin);
|
||||
--
|
||||
2.44.0
|
||||
|
2808
gedit.changes
Normal file
2808
gedit.changes
Normal file
File diff suppressed because it is too large
Load Diff
4
gedit.obsinfo
Normal file
4
gedit.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
name: gedit
|
||||
version: 48.1
|
||||
mtime: 1733585981
|
||||
commit: 9be74ebbc21692a0dc5fd2c0c5a1d15ceeb2e457
|
182
gedit.spec
Normal file
182
gedit.spec
Normal file
@ -0,0 +1,182 @@
|
||||
#
|
||||
# spec file for package gedit
|
||||
#
|
||||
# Copyright (c) 2024 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/
|
||||
#
|
||||
|
||||
|
||||
%bcond_without python_bindings
|
||||
%define api_ver 48.1
|
||||
|
||||
Name: gedit
|
||||
Version: 48.1
|
||||
Release: 0
|
||||
Summary: UTF-8 text editor
|
||||
License: GPL-2.0-or-later
|
||||
Group: Productivity/Text/Editors
|
||||
URL: https://wiki.gnome.org/Apps/Gedit
|
||||
Source0: %{name}-%{version}.tar.zst
|
||||
# PATCH-FIX-OPENSUSE gedit-desktop.patch -- Adds more MIME types.
|
||||
Patch0: gedit-desktop.patch
|
||||
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gobject-introspection-devel >= 0.9.3
|
||||
BuildRequires: gtk-doc
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: iso-codes-devel
|
||||
BuildRequires: meson >= 0.53
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3-base >= 3.2.3
|
||||
BuildRequires: yelp-tools
|
||||
BuildRequires: pkgconfig(gio-2.0) >= 2.76
|
||||
BuildRequires: pkgconfig(glib-2.0) >= 2.64
|
||||
BuildRequires: pkgconfig(gmodule-2.0)
|
||||
BuildRequires: pkgconfig(gsettings-desktop-schemas)
|
||||
BuildRequires: pkgconfig(gspell-1) >= 1.0
|
||||
BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.0
|
||||
BuildRequires: pkgconfig(gtksourceview-4) >= 4.0.2
|
||||
BuildRequires: pkgconfig(libgedit-amtk-5)
|
||||
BuildRequires: pkgconfig(libgedit-tepl-6) >= 6.11
|
||||
BuildRequires: pkgconfig(libpeas-1.0) >= 1.14.1
|
||||
BuildRequires: pkgconfig(libpeas-gtk-1.0) >= 1.14.1
|
||||
BuildRequires: pkgconfig(pygobject-3.0) >= 3.0.0
|
||||
BuildRequires: pkgconfig(vapigen) >= 0.25.1
|
||||
BuildRequires: pkgconfig(x11)
|
||||
Requires: python3-cairo
|
||||
Requires: python3-gobject
|
||||
#bnc#910913 - plugin snippets depend on this package
|
||||
Requires: python3-gobject-cairo
|
||||
Recommends: iso-codes
|
||||
Provides: gedit2 = %{version}
|
||||
Obsoletes: gedit2 < %{version}
|
||||
%if %{with python_bindings}
|
||||
# See bnc#847114 - plugins generally depend on it
|
||||
Requires: python3-gedit
|
||||
%endif
|
||||
# Throws "Settings schema 'org.gnome.desktop.interface' is not installed"
|
||||
# in WSLg without this; see boo#1198312
|
||||
Requires: gsettings-desktop-schemas
|
||||
|
||||
%description
|
||||
Gedit is a UTF-8 text editor for the GNOME environment.
|
||||
|
||||
It features a multi-document frame, syntax highlighting, autoindent
|
||||
options, autosave, and plugins.
|
||||
|
||||
%package -n python3-gedit
|
||||
Summary: Python bindings for gedit
|
||||
Group: Development/Languages/Python
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n python3-gedit
|
||||
Gedit is a UTF-8 text editor for the GNOME
|
||||
environment.
|
||||
|
||||
This package provides the python bindings, based on gobject-introspection.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for the gedit text editor
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
Requires: gtksourceview-devel
|
||||
Provides: gedit2-devel = %{version}
|
||||
Obsoletes: gedit2-devel < %{version}
|
||||
Provides: %{name}-doc = %{version}
|
||||
Obsoletes: %{name}-doc < %{version}
|
||||
%if %{with python_bindings}
|
||||
Requires: python3-gedit
|
||||
%endif
|
||||
|
||||
%description devel
|
||||
Gedit is a UTF-8 text editor for the GNOME
|
||||
environment.
|
||||
|
||||
This subpackage contains the header files for creating gedit plugins.
|
||||
|
||||
%lang_package
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%meson \
|
||||
-D gtk_doc=true \
|
||||
%{nil}
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
%find_lang %{name} %{?no_lang_C}
|
||||
%fdupes %{buildroot}%{_prefix}
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc NEWS README.md
|
||||
%doc %{_datadir}/help/C/%{name}/
|
||||
%{_bindir}/gedit
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/dbus-1/services/org.gnome.gedit.service
|
||||
# %%{_datadir}/gedit/gir-1.0/ lives in -devel
|
||||
%exclude %{_datadir}/gedit/gir-1.0/
|
||||
%{_datadir}/gedit/
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.enums.xml
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.gschema.xml
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.enums.xml
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.filebrowser.gschema.xml
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.spell.gschema.xml
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.time.enums.xml
|
||||
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.time.gschema.xml
|
||||
%{_datadir}/icons/hicolor/*/apps/*
|
||||
%{_datadir}/metainfo/org.gnome.gedit.metainfo.xml
|
||||
%dir %{_libdir}/gedit/
|
||||
%{_libdir}/gedit/libgedit-%{api_ver}.so
|
||||
%{_libdir}/gedit/girepository-1.0/
|
||||
%dir %{_libdir}/gedit/plugins/
|
||||
# Explicitly list plugins so we know when we miss one
|
||||
%{_libdir}/gedit/plugins/docinfo.plugin
|
||||
%{_libdir}/gedit/plugins/libdocinfo.so
|
||||
%{_libdir}/gedit/plugins/filebrowser.plugin
|
||||
%{_libdir}/gedit/plugins/libfilebrowser.so
|
||||
%{_libdir}/gedit/plugins/modelines.plugin
|
||||
%{_libdir}/gedit/plugins/libmodelines.so
|
||||
%{_libdir}/gedit/plugins/libtextsize.so
|
||||
%{_libdir}/gedit/plugins/textsize.plugin
|
||||
%{_libdir}/gedit/plugins/sort.plugin
|
||||
%{_libdir}/gedit/plugins/libsort.so
|
||||
%{_libdir}/gedit/plugins/spell.plugin
|
||||
%{_libdir}/gedit/plugins/libspell.so
|
||||
%{_libdir}/gedit/plugins/time.plugin
|
||||
%{_libdir}/gedit/plugins/libtime.so
|
||||
%{_libdir}/gedit/plugins/quickhighlight.plugin
|
||||
|
||||
%{_libdir}/gedit/plugins/libquickhighlight.so
|
||||
%{_mandir}/man1/gedit.1%{?ext_man}
|
||||
|
||||
%if %{with python_bindings}
|
||||
%files -n python3-gedit
|
||||
%{python3_sitelib}/gi/
|
||||
%endif
|
||||
|
||||
%files devel
|
||||
%doc CONTRIBUTING.md
|
||||
%doc %{_datadir}/gtk-doc/html/gedit/
|
||||
%{_datadir}/gedit/gir-1.0/
|
||||
%{_includedir}/*
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user