Репозитории 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 |
Другие репозитории
Upstream: | 2.22.0 |
Группа :: Редакторы
Пакет: gedit
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define ver_major 2.26
%def_enable python
Name: gedit
Version: %ver_major.3
Release: alt1
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.18.0
%define gtk_ver 2.13.0
%define gtksourceview_ver 2.4.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.40.0
BuildPreReq: libGConf-devel >= %GConf_ver
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 libgio-devel
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgtksourceview-devel >= %gtksourceview_ver
BuildPreReq: desktop-file-utils >= %desktop_file_utils_ver
%if_enabled python
BuildPreReq: python-module-pygobject-devel >= 2.15.4
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++
%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.
%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 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.
%define _libexecdir %_prefix/libexec
%prep
%setup -q
%patch1 -p1
rm -f m4/libtool.m4 m4/lt*.m4
%build
%autoreconf
%configure \
%{subst_enable python} \
--disable-scrollkeeper \
--disable-schemas-install \
--disable-static
%make_build
%install
%make_install install DESTDIR=%buildroot
%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 %name-file-browser
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name %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/plugin-loaders
%_libdir/%name-2/plugin-loaders/*.so
%dir %_libdir/%name-2
%_libexecdir/%name-2/gedit-bugreport.sh
%dir %gedit_pluginsdir
%gedit_pluginsdir/*
%_datadir/%name-2
%_desktopdir/*
%_mandir/man?/*
%config %gconf_schemasdir/*
%doc BUGS README ChangeLog AUTHORS
%exclude %gedit_pluginsdir/*.la
%exclude %_libdir/%name-2/plugin-loaders/*.la
%files devel
%_includedir/*
%_pkgconfigdir/*
%files devel-doc
%_datadir/gtk-doc/html/%name
%changelog
…
Полный changelog можно просмотреть здесь
%def_enable python
Name: gedit
Version: %ver_major.3
Release: alt1
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.18.0
%define gtk_ver 2.13.0
%define gtksourceview_ver 2.4.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.40.0
BuildPreReq: libGConf-devel >= %GConf_ver
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 libgio-devel
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: libgtksourceview-devel >= %gtksourceview_ver
BuildPreReq: desktop-file-utils >= %desktop_file_utils_ver
%if_enabled python
BuildPreReq: python-module-pygobject-devel >= 2.15.4
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++
%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.
%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 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.
%define _libexecdir %_prefix/libexec
%prep
%setup -q
%patch1 -p1
rm -f m4/libtool.m4 m4/lt*.m4
%build
%autoreconf
%configure \
%{subst_enable python} \
--disable-scrollkeeper \
--disable-schemas-install \
--disable-static
%make_build
%install
%make_install install DESTDIR=%buildroot
%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 %name-file-browser
%preun
if [ $1 = 0 ]; then
%gconf2_uninstall %name %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/plugin-loaders
%_libdir/%name-2/plugin-loaders/*.so
%dir %_libdir/%name-2
%_libexecdir/%name-2/gedit-bugreport.sh
%dir %gedit_pluginsdir
%gedit_pluginsdir/*
%_datadir/%name-2
%_desktopdir/*
%_mandir/man?/*
%config %gconf_schemasdir/*
%doc BUGS README ChangeLog AUTHORS
%exclude %gedit_pluginsdir/*.la
%exclude %_libdir/%name-2/plugin-loaders/*.la
%files devel
%_includedir/*
%_pkgconfigdir/*
%files devel-doc
%_datadir/gtk-doc/html/%name
%changelog
…
Полный changelog можно просмотреть здесь