%define name xsu2 %define version 0.2.5 %define release 1mdk Summary: Gnome Xsu2 is an interface for `su - username -c command` in Gnome2.0. Name: %name Version: %{version} Release: %{release} Url: http://xsu.freax.eu.org/ License: GPL Group: Graphical desktop/GNOME Source: %name-%version.tar.bz2 BuildRoot: %{_tmppath}/%name-root BuildRequires: automake libgtk+-x11-2.0_0-devel libgnomeui2_0-devel libzvt2.0_0-devel %description xsu Is an interface for `su - username -c command` in Gnome2.0. When the user executes xsu, he will be prompted for a command, a username and a password. %prep %setup rm -f {install-sh,mkinstalldirs,missing} if test -a %{_datadir}/automake-1.6; then cp %{_datadir}/automake-1.6/{install-sh,mkinstalldirs,missing} .; else cp %{_datadir}/automake-1.4/{install-sh,mkinstalldirs,missing} .; fi %build %configure %make %install %makeinstall mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8 #bzip2 doc/xsu.8 cp doc/xsu.8 $RPM_BUILD_ROOT/%{_mandir}/man8 %find_lang %name %clean rm -rf $RPM_BUILD_ROOT %files -f %name.lang %defattr (-,root,root) %doc ABOUT-NLS AUTHORS ChangeLog COPYING README TODO %doc doc/xsu_doc.html doc/xsu_example2.png doc/xsu_example3.png doc/xsu_example.jpg doc/xsu_in_gmenu.jpg %_datadir/gnome/apps/Applications/xsu.desktop %_mandir/man8/* %_bindir/* %changelog * Mon Sep 16 2002 Lenny Cartier <lenny@mandrakesoft.com> 0.2.5-1mdk - fix files section - use macro for locales - URL - from Austin Acton <aacton@yorku.ca> : - initial package creation for Mandrake 9.0