Репозитории ALT
5.1: | 2.0.2-alt2 |
4.1: | 2.0.0-alt2.M41.1 |
4.0: | 2.0.0-alt1 |
3.0: | 0.9.11-alt1 |
Другие репозитории
Upstream: | 2.0.0 |
Группа :: Графические оболочки/GNOME
Пакет: gksu
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_enable nautilus
Name: gksu
Version: 2.0.2
Release: alt2
Summary: A Gtk+-based 'su' wrapper
License: %gpl2plus
Group: Graphical desktop/GNOME
Url: http://www.nongnu.org/%name/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: http://people.debian.org/~kov/%name/%name-%version.tar.gz
Patch2: nautilus-%name-2.0.2-fix-handler-invocation.patch
# From configure.ac
%define libgksu_ver 1.9.8
%define gtk_ver 2.4.0
BuildPreReq: rpm-build-licenses rpm-build-gnome
# From configure.ac
BuildPreReq: libgksu-devel >= %libgksu_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: gettext-tools intltool
BuildPreReq: gtk-doc >= 1.0
%{?_enable_nautilus:BuildPreReq: libnautilus-devel gnome-vfs-devel}
BuildRequires: perl-XML-Parser
%description
GKSu is a stack of libraries and an application that provide a Gtk+
frontend to su and sudo. It supports login shells and preserving
environment when acting as a su frontend. It is useful to menu items or
other graphical programs that need to ask a user's password to run another
program as another user.
%if_enabled nautilus
%package -n nautilus-%name
Summary: A plugin for Nautilus to open files as a privileged user
Group: Graphical desktop/GNOME
%description -n nautilus-%name
This package contains a plugin for Nautilus that integrates su and sudo
into the file manager by means of GKSu software.
%endif
%prep
%setup -q
%patch2 -p0 -b .fix-handler-invocation
# Remove deprecated line from .desktop file.
%__subst '/^Encoding/d' %name.desktop
%build
export CPPFLAGS="$CPPFLAGS `pkg-config --cflags-only-I gnome-vfs-2.0`"
export LDFLAGS="$LDFLAGS `pkg-config --libs gnome-vfs-2.0`"
%configure \
%{?_enable_nautilus:--enable-nautilus-extension} \
--disable-static \
--enable-gtk-doc
%make_build nautilus_extensiondir=%nautilus_extdir
%install
%makeinstall_std nautilus_extensiondir=%nautilus_extdir
# Copy the icon to the standard location
mkdir -p %buildroot%_liconsdir
cp -a %buildroot%_pixmapsdir/%name-*.png %buildroot%_liconsdir/
%find_lang %name
%files -f %name.lang
%_bindir/gksu
%_bindir/gksudo
%dir %_datadir/%name
%_datadir/%name/gksu-migrate-conf.sh
%_pixmapsdir/%name-*.png
%_liconsdir/%name-*.png
%_desktopdir/%name.desktop
%_man1dir/*.1.gz
%files -n nautilus-gksu
%nautilus_extdir/libnautilus-%name.so
%exclude %nautilus_extdir/*.la
%changelog
…
Полный changelog можно просмотреть здесь
Name: gksu
Version: 2.0.2
Release: alt2
Summary: A Gtk+-based 'su' wrapper
License: %gpl2plus
Group: Graphical desktop/GNOME
Url: http://www.nongnu.org/%name/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>
Source: http://people.debian.org/~kov/%name/%name-%version.tar.gz
Patch2: nautilus-%name-2.0.2-fix-handler-invocation.patch
# From configure.ac
%define libgksu_ver 1.9.8
%define gtk_ver 2.4.0
BuildPreReq: rpm-build-licenses rpm-build-gnome
# From configure.ac
BuildPreReq: libgksu-devel >= %libgksu_ver
BuildPreReq: libgtk+2-devel >= %gtk_ver
BuildPreReq: gettext-tools intltool
BuildPreReq: gtk-doc >= 1.0
%{?_enable_nautilus:BuildPreReq: libnautilus-devel gnome-vfs-devel}
BuildRequires: perl-XML-Parser
%description
GKSu is a stack of libraries and an application that provide a Gtk+
frontend to su and sudo. It supports login shells and preserving
environment when acting as a su frontend. It is useful to menu items or
other graphical programs that need to ask a user's password to run another
program as another user.
%if_enabled nautilus
%package -n nautilus-%name
Summary: A plugin for Nautilus to open files as a privileged user
Group: Graphical desktop/GNOME
%description -n nautilus-%name
This package contains a plugin for Nautilus that integrates su and sudo
into the file manager by means of GKSu software.
%endif
%prep
%setup -q
%patch2 -p0 -b .fix-handler-invocation
# Remove deprecated line from .desktop file.
%__subst '/^Encoding/d' %name.desktop
%build
export CPPFLAGS="$CPPFLAGS `pkg-config --cflags-only-I gnome-vfs-2.0`"
export LDFLAGS="$LDFLAGS `pkg-config --libs gnome-vfs-2.0`"
%configure \
%{?_enable_nautilus:--enable-nautilus-extension} \
--disable-static \
--enable-gtk-doc
%make_build nautilus_extensiondir=%nautilus_extdir
%install
%makeinstall_std nautilus_extensiondir=%nautilus_extdir
# Copy the icon to the standard location
mkdir -p %buildroot%_liconsdir
cp -a %buildroot%_pixmapsdir/%name-*.png %buildroot%_liconsdir/
%find_lang %name
%files -f %name.lang
%_bindir/gksu
%_bindir/gksudo
%dir %_datadir/%name
%_datadir/%name/gksu-migrate-conf.sh
%_pixmapsdir/%name-*.png
%_liconsdir/%name-*.png
%_desktopdir/%name.desktop
%_man1dir/*.1.gz
%files -n nautilus-gksu
%nautilus_extdir/libnautilus-%name.so
%exclude %nautilus_extdir/*.la
%changelog
…
Полный changelog можно просмотреть здесь