Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37418372
en ru br
Репозитории ALT
S:46.1-alt1
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
www.altlinux.org/Changes

Другие репозитории
Upstream:2.22.0

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

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# This spec is backported to ALTLinux 4.1 automatically by rpmbph script. Do not edit it.
#
%define ver_major 2.22

%def_enable python

Name: gedit
Version: %ver_major.3
Release: alt0.M41.2

Summary: gEdit is a small but powerful text editor for GNOME
License: GPLv2
Group: Editors
Url: ftp://ftp.gnome.org/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Source: %gnome_ftp/%name/%ver_major/%name-%version.tar.bz2
Patch1: %name-alt-settings.patch

Conflicts: %name-plugins < 2.3.3
%if_enabled python
%py_provides gedit
%endif

# From configure.ac

%define glib_ver 2.14.0
%define gtk_ver 2.12.0
%define gtksourceview_ver 2.2.0
%define libgnomeui_ver 2.16.0
%define libglade_ver 2.5.1
%define gnome_vfs_ver 2.16.0
%define GConf_ver 2.10.0
%define enchant_ver 1.2.0
%define desktop_file_utils_ver 0.8

PreReq: GConf librarian
Requires(post,postun): desktop-file-utils >= %desktop_file_utils_ver

BuildPreReq: rpm-build-gnome >= 0.6

# From configure.ac

BuildPreReq: intltool >= 0.35.0
BuildPreReq: gnome-doc-utils gnome-doc-utils-xslt
BuildPreReq: gtk-doc >= 1.0
BuildPreReq: libenchant-devel >= %enchant_ver
BuildPreReq: iso-codes-devel >= 0.35
BuildPreReq: libattr-devel
BuildPreReq: glib2-devel >= %glib_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgtksourceview-devel >= %gtksourceview_ver
BuildPreReq: libgnomeui-devel >= %libgnomeui_ver
BuildPreReq: libglade2-devel >= %libglade_ver
BuildPreReq: gnome-vfs2-devel >= %gnome_vfs_ver
BuildPreReq: desktop-file-utils >= %desktop_file_utils_ver

%if_enabled python
BuildPreReq: python-module-pygobject-devel >= 2.12.0
BuildPreReq: python-module-pygtk-devel >= 2.12.0
BuildPreReq: python-module-pygnome-desktop-devel >= 2.15.90
BuildPreReq: python-module-pygtksourceview-devel >= 2.2.0
%endif

BuildRequires: GConf gnome-common libSM-devel perl-XML-Parser librarian gcc-c++

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

BuildRequires: rpm-build-compat >= 0.95

%description
gEdit is a small but powerful text editor designed expressly for GNOME.

It includes such features as split-screen mode, a plugin API, which
allows gEdit to be extended to support many features while remaining
small at its core, multiple document editing through the use of a
'tabbed' notebook and many more functions.

GNOME is required to use gEdit.

%description devel
Libraries needed to develop plugins for gedit.

%prep
%setup -q
%patch1 -p1

%build
%autoreconf
%configure \
   %{subst_enable python} \
   --disable-scrollkeeper \
   --disable-schemas-install \
   --disable-static
%make_build

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%make_install install DESTDIR=%buildroot
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL

%find_lang --with-gnome %name

%define node /apps/gedit-2/preferences
%define encodings WINDOWS-1251,CP866,KOI8-U,ISO-8859-15

%post
%gconf2_install %name
%gconf2_install %name-file-browser
%post_ldconfig
%update_scrollkeeper
%update_desktopdb
%update_menus

%postun
%postun_ldconfig
%clean_scrollkeeper
%clean_desktopdb
%clean_menus

%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name
%gconf2_uninstall %name-file-browser
fi


# TODO: Mention plugins explicitly. Maybe even split them into a separate

# package(s).
%files -f %name.lang
%_bindir/*
%dir %_libdir/%name-2
%dir %gedit_pluginsdir
%gedit_pluginsdir/*
%_datadir/%name-2
%_desktopdir/*
%_mandir/man?/*
%config %gconf_schemasdir/*
%doc BUGS README ChangeLog AUTHORS
%exclude %gedit_pluginsdir/*.la

%files devel
%_includedir/*
%_pkgconfigdir/*
%_datadir/gtk-doc/html/%name


%changelog

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

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