File gksu.spec of Package gksu
# norootforbuild
Summary: Graphical frontend to su
Name: gksu
Version: 2.0.2
Release: 1
License: GPL
Group: System/GUI/GNOME
URL: http://www.nongnu.org/gksu/
Source: %name-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gconf2-devel gnome-keyring-devel libgksu2-0-devel
BuildRequires: gtk2-devel startup-notification-devel nautilus-devel gtkdoc
BuildRequires: gcc-c++ libstdc++ libstdc++-devel perl-XML-Parser
BuildRequires: autoconf automake libtool libgtop-devel
BuildRequires: update-desktop-files gnome-vfs2-devel
BuildRequires: intltool glib2-devel libgnome-devel
%description
Gtk+ frontend to /bin/su. 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.
Authors:
--------
Gustavo Noronha Silva <kov@debian.org>
Allan Douglas <allan_douglas@gmx.net>
%package nautilus-extension
Summary: A Nautilus extension
Group: System/GUI/GNOME
Requires: %name
%description nautilus-extension
This extension will provide a better nautilus integration
Gtk+ frontend to /bin/su. 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.
Authors:
--------
Gustavo Noronha Silva <kov@debian.org>
Allan Douglas <allan_douglas@gmx.net>
%prep
%setup -q -n %{name}-%{version}
%build
export CPPFLAGS=-I'/usr/include/gnome-vfs-2.0'
%configure
%{__make} %{?_smp_mflags}
%install
%makeinstall
##find_lang %{name}
%suse_update_desktop_file %{buildroot}/%{_datadir}/applications/gksu.desktop
chmod +x %{buildroot}%{_datadir}/gksu/gksu-migrate-conf.sh
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog NEWS README
%doc %{_mandir}/man1/*
%{_bindir}/gksu*
%{_datadir}/gksu/
%{_datadir}/pixmaps/gksu*.png
%{_datadir}/applications/gksu*.desktop
%files nautilus-extension
%defattr(-, root, root, 0755)
%{_libdir}/nautilus/extensions*/libnautilus-gksu.*
%changelog
* Wed Apr 29 2009 sda00 <sda00@himki.net> updated to version 2.0.2
* Tue May 15 2007 Carlos Gonçalves <carlos@pinguix.com>
- Initial package