1 # 2 # spec file for package gksu 3 # 4 # Copyright (c) 2005 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: dkenny 9 # 10 Name: gksu 11 License: GPL 12 Group: Applications/System 13 Version: 1.3.0 14 Release: 1 15 Distribution: Java Desktop System 16 Vendor: Sun Microsystems, Inc. 17 Summary: Graphical frontend to su 18 Source: http://people.debian.org/~kov/gksu/gksu/gksu-%{version}.tar.gz 19 Patch1: gksu-01-Makefile.diff 20 Patch2: gksu-02-gksu.diff 21 #date:2006-11-15 owner:calumb bugster:6489289 type:bug 22 Patch3: gksu-03-hide-launch-menu-items.diff 23 URL: http://www.nongnu.org/gksu/ 24 BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 Docdir: %{_defaultdocdir}/%{name} 26 Autoreqprov: on 27 Prereq: GConf 28 29 30 BuildRequires: gtk+-devel >= 2.4.0, libgksu-devel, libgksuui-devel 31 BuildRequires: gettext, intltool, perl(XML::Parser) 32 BuildRequires: bison, gtk-doc, libgksuui-devel, gtk2-devel, gnome-keyring-devel 33 BuildRequires: GConf2-devel 34 35 %description 36 Gtk+ frontend to /bin/su. It supports login shells and preserving environment 37 when acting as a su frontend. It is useful to menu items or other graphical 38 programs that need to ask a user's password to run another program as another 39 user. 40 41 %prep 42 %setup 43 %patch1 -p1 44 %patch2 -p1 45 %patch3 -p1 46 47 %build 48 %ifos linux 49 if [ -x /usr/bin/getconf ]; then 50 CPUS=`getconf _NPROCESSORS_ONLN` 51 fi 52 %else 53 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 54 %endif 55 if test "x$CPUS" = "x" -o $CPUS = 0; then 56 CPUS=1 57 fi 58 59 # libtoolize --force 60 # aclocal $ACLOCAL_FLAGS 61 # automake -a -c -f 62 # autoconf 63 64 CFLAGS="$RPM_OPT_FLAGS" \ 65 ./configure \ 66 --prefix=%{_prefix} \ 67 --sysconfdir=%{_sysconfdir} \ 68 --libexecdir=%{_libexecdir} \ 69 --mandir=%{_mandir} \ 70 --disable-scrollkeeper 71 make -j $CPUS 72 73 74 %install 75 make -i install DESTDIR=$RPM_BUILD_ROOT 76 77 %clean 78 # rm -rf $RPM_BUILD_ROOT 79 80 %files -f %{name}.lang 81 %defattr (-, root, root) 82 %doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO 83 %doc %{_mandir}/man1/*.1* 84 %{_sysconfdir}/gconf/schemas/gksu.schemas 85 %{_bindir}/gksu* 86 %{_datadir}/gksu/ 87 %{_datadir}/pixmaps/gksu*.png 88 %{_datadir}/applications/gksu*.desktop 89 90 %changelog 91 * Wed Nov 15 2006 Calum Benson <calum.benson (at] sun.com> 92 - Remove menu items from launch menu, in line with latest JDS UI spec. 93 94 * Sat Apr 08 2006 Dries Verachtert <dries (at] ulyssis.org> - 1.3.4-1.2 95 - Rebuild for Fedora Core 5. 96 97 * Fri Jan 13 2006 Dag Wieers <dag (at] wieers.com> - 1.3.4-2 98 - Fixed group. 99 100 * Sat Sep 17 2005 Dries Verachtert <dries (at] ulyssis.org> - 1.3.4-1 101 - Initial package. 102