Репозиторий Sisyphus
Последнее обновление: 18 февраля 2019 | Пакетов: 18500 | Посещений: 13039760
en ru br
Репозитории ALT
5.1: 2.26.3-alt1
4.1: 2.22.3-alt0.M41.2
4.0: 2.16.2-alt1
3.0: 2.10.3-alt1

Другие репозитории

Группа :: Редакторы
Пакет: gedit

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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 3.30
%define api_ver 3.0
%def_enable introspection
%def_enable python
%def_enable gspell
%{?_enable_snapshot:%def_enable gtk_doc}

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

Summary: gEdit is a small but powerful text editor for GNOME
License: GPLv2
Group: Editors
Url: http://www.gedit.org

%if_enabled snapshot
Source: %name-%version.tar
Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.xz
Patch: %name-3.10.1-alt-settings.patch

# use python3

AutoReqProv: nopython
%define __python %nil
%{?_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

# From configure.ac

%define glib_ver 2.44.0
%define gtk_ver 3.22.0
%define gtksourceview_ver 3.22.0
%define peas_ver 1.14.1
%define enchant_ver 1.2.0
%define gspell_ver 1.0.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-build-gnome >= 0.6

# From configure.ac

BuildPreReq: intltool >= 0.50.1
BuildRequires: yelp-tools xmllint itstool
BuildPreReq: gtk-doc >= 1.0
BuildPreReq: desktop-file-utils >= 0.22
BuildPreReq: libenchant-devel >= %enchant_ver
BuildPreReq: iso-codes-devel >= 0.35
BuildPreReq: libgio-devel >= %glib_ver
BuildPreReq: libgtk+3-devel >= %gtk_ver
BuildPreReq: libpeas-devel >= %peas_ver
BuildPreReq: libgtksourceview3-devel >= %gtksourceview_ver
BuildRequires: libattr-devel gnome-common libxml2-devel libsoup-devel gsettings-desktop-schemas-devel
BuildRequires: vala-tools
%if_enabled python
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 libgtksourceview3-gir-devel}
%{?_enable_gspell:BuildRequires: libgspell-devel >= %gspell_ver}

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.

#%%patch -p1 -b .settings

%configure \
   %{subst_enable python} \
   --disable-schemas-compile \
   --disable-static \
   --disable-updater \
   --enable-gvfs-metadata \
   %{?_disable_introspection:--enable-introspection=no} \
%make V=1


# 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

%exclude %_libexecdir/%name/gedit-bugreport.sh
%exclude %gedit_pluginsdir/*.la
%exclude %pkglibdir/lib%name.la

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

%exclude %pkgdatadir/gir-1.0/

%files devel

%files devel-doc

%if_enabled introspection
%files gir
%files gir-devel


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin