Sisyphus repository
Last update: 24 june 2022 | SRPMs: 17496 | Visits: 24437377
en ru br
ALT Linux repos
5.0: 2.26.1-alt1
4.1: 2.22.3-alt0.M41.2
4.0: 2.16.2-alt1
3.0: 2.10.3-alt1

Other repositories

Group :: Editors
RPM: gedit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable snapshot
%set_verify_elf_method unresolved=relaxed
%define xdg_name org.gnome.gedit
%define _libexecdir %_prefix/libexec

%define ver_major 42
%define beta %nil
%define lib_ver 41
%define api_ver 3.0
%def_enable plugins
%def_enable introspection
%def_enable vala
%def_enable gtk_doc

Name: gedit
Version: %ver_major.1
Release: alt1%beta

Summary: gEdit is a small but powerful text editor for GNOME
License: GPL-2.0
Group: Editors

%if_enabled snapshot
Source: %name-%version.tar
Source: %gnome_ftp/%name/%ver_major/%name-%version%beta.tar.xz

%{?_enable_python:%py3_provides gedit}
%define  gedit_pluginsdir %_libdir/gedit/plugins
%add_python3_path %gedit_pluginsdir

%define pkglibdir %_libdir/%name
%define pkgdatadir %_datadir/%name
%set_typelibdir %pkglibdir
%set_girdir %pkgdatadir

%define glib_ver 2.44.0
%define gtk_ver 3.22.0
%define tepl_ver 5.99.0
%define gtksourceview_ver 4.0.3
%define peas_ver 1.14.1
%define gspell_ver 1.0.0
%define soup_ver 2.60.0

Requires: %name-data = %version-%release
Requires: %name-gir = %version-%release
Requires: libpeas-python3-loader
Requires: dconf gnome-icon-theme gvfs zenity

BuildRequires(pre): rpm-macros-meson rpm-build-gnome
BuildRequires: meson yelp-tools %_bindir/appstream-util
BuildRequires: desktop-file-utils >= 0.22
BuildRequires: gtk-doc >= 1.0
BuildRequires: iso-codes-devel >= 0.35
BuildRequires: libgio-devel >= %glib_ver
BuildRequires: libgtk+3-devel >= %gtk_ver
BuildRequires: pkgconfig(tepl-6) >= %tepl_ver
BuildRequires: libpeas-devel >= %peas_ver
BuildRequires: libgtksourceview4-devel >= %gtksourceview_ver
BuildRequires: libgspell-devel >= %gspell_ver
BuildRequires: libsoup-devel >= %soup_ver
BuildRequires: libattr-devel libxml2-devel gsettings-desktop-schemas-devel
%{?_enable_vala:BuildRequires: vala-tools}
%if_enabled plugins
BuildRequires(pre): rpm-build-python3 rpm-build-gir
BuildRequires: python3-devel python3-module-pygobject3-devel
%{?_enable_introspection:BuildRequires: gobject-introspection-devel >= 0.10.2 libgtk+3-gir-devel libgtksourceview4-gir-devel}

gEdit is the official text editor of the GNOME desktop environment.

While aiming at simplicity and ease of use, gedit is a powerful general
purpose text editor which features full support for UTF-8, configurable
highlighting for various languages and many other features making it a
great editor for advanced tasks.

%package data
Summary: Arch independent files for gEdit
Group: Editors
BuildArch: noarch

%description data
This package provides noarch data needed for gEdit to work.

%package devel
Group: Development/C
Summary: Libraries needed to develop plugins for gedit
Requires: %name = %version-%release
Requires: libgtksourceview-devel

%description devel
Libraries needed to develop plugins for gedit.

%package gir
Summary: GObject introspection data for the Gedit
Group: System/Libraries
Requires: %name = %version-%release

%description gir
GObject introspection data for the Gedit

%package gir-devel
Summary: GObject introspection devel data for the Gedit
Group: System/Libraries
BuildArch: noarch
Requires: %name-gir = %version-%release

%description gir-devel
GObject introspection devel data for the Gedit

%package devel-doc
Group: Development/C
Summary: Development documentation for gedit
Conflicts: %name < %version
BuildArch: noarch

%description devel-doc
This package contains documentation needed to develop plugins for gedit.

%setup -n %name-%version%beta

%meson -Dbuildtype=plain \
   %{?_disable_plugins:-Dplugins=false} \
   %{?_disable_introspection:-Dintrospection=false} \
   %{?_disable_vala:-Dvapi=flalse} \


ln -sf %name/ \

# additional mime types

desktop-file-install --dir %buildroot%_desktopdir \
--add-mime-type=text/css \
--add-mime-type=text/csv \
--add-mime-type=text/english \
--add-mime-type=text/plain \
--add-mime-type=text/tab-separated-values \
--add-mime-type=text/x-adasrc \
--add-mime-type=text/x-bibtex \
--add-mime-type=text/x-c++ \
--add-mime-type=text/x-chdr \
--add-mime-type=text/x-c++hdr \
--add-mime-type=text/x-csharp \
--add-mime-type=text/x-csrc \
--add-mime-type=text/x-c++src \
--add-mime-type=text/x-dsrc \
--add-mime-type=text/x-fortran \
--add-mime-type=text/x-gle \
--add-mime-type=text/x-java \
--add-mime-type=text/x-javascript \
--add-mime-type=text/x-log \
--add-mime-type=text/x-makefile \
--add-mime-type=text/x-objcsrc \
--add-mime-type=text/x-pascal \
--add-mime-type=text/x-patch \
--add-mime-type=text/x-perl \
--add-mime-type=text/x-php \
--add-mime-type=text/x-python \
--add-mime-type=text/x-sql \
--add-mime-type=text/x-sh \
--add-mime-type=text/x-tcl \
--add-mime-type=text/x-tex \

%find_lang --with-gnome %name

%dir %pkglibdir
%dir %gedit_pluginsdir

%files data -f %name.lang
%config %_datadir/glib-2.0/schemas/*

%exclude %pkgdatadir/gir-1.0/

%files devel

%if_enabled gtk_doc
%files devel-doc

%if_enabled introspection
%files gir
%files gir-devel


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin