gksu.spec revision 15315
16309N/A#
16309N/A# spec file for package gksu
16309N/A#
16309N/A# Copyright (c) 2005 Sun Microsystems, Inc.
16309N/A# This file and all modifications and additions to the pristine
16309N/A# package are under the same license as the package itself.
16309N/A#
16309N/A# Owner: dkenny
16309N/A#
17185N/AName: gksu
16309N/ALicense: GPL v2
16309N/AGroup: Applications/System
16309N/AVersion: 1.3.0
16309N/ARelease: 1
16309N/ADistribution: Java Desktop System
16309N/AVendor: Sun Microsystems, Inc.
16309N/ASummary: Graphical frontend to su
16309N/ASource: http://people.debian.org/~kov/gksu/old_stuff/gksu/gksu-%{version}.tar.gz
16309N/A# date:2006-08-03 owner:jim type:feature
16309N/APatch1: gksu-01-Makefile.diff
16309N/A# date:2006-08-03 owner:jim type:feature
16309N/APatch2: gksu-02-gksu.diff
16309N/A# date:2006-11-15 owner:calumb bugster:6489289 type:bug
16309N/APatch3: gksu-03-hide-launch-menu-items.diff
18688N/AURL: http://www.nongnu.org/gksu/
18688N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16309N/ADocdir: %{_defaultdocdir}/%{name}
16309N/AAutoreqprov: on
16309N/APrereq: GConf
16309N/A
16309N/A
16309N/ABuildRequires: gtk+-devel >= 2.4.0, libgksu-devel, libgksuui-devel
16309N/ABuildRequires: gettext, intltool, perl(XML::Parser)
16309N/ABuildRequires: bison, gtk-doc, libgksuui-devel, gtk2-devel, gnome-keyring-devel
16309N/ABuildRequires: GConf2-devel
16309N/A
16309N/A%description
16309N/AGtk+ frontend to /bin/su. It supports login shells and preserving environment
16309N/Awhen acting as a su frontend. It is useful to menu items or other graphical
16309N/Aprograms that need to ask a user's password to run another program as another
16309N/Auser.
18850N/A
16309N/A%prep
16309N/A%setup
16309N/A%patch1 -p1
16724N/A%patch2 -p1
18850N/A%patch3 -p1
18850N/A
16309N/A%build
16309N/A%ifos linux
16309N/Aif [ -x /usr/bin/getconf ]; then
16309N/A CPUS=`getconf _NPROCESSORS_ONLN`
16309N/Afi
16309N/A%else
16309N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
16309N/A%endif
16309N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
16309N/A CPUS=1
16309N/Afi
16309N/A
16309N/A# libtoolize --force
16309N/A# aclocal $ACLOCAL_FLAGS
16309N/A# automake -a -c -f
16309N/A# autoconf
16309N/A
16309N/ACFLAGS="$RPM_OPT_FLAGS" \
16309N/A ./configure \
18850N/A --prefix=%{_prefix} \
16309N/A --sysconfdir=%{_sysconfdir} \
16584N/A --libexecdir=%{_libexecdir} \
16584N/A --mandir=%{_mandir} \
16584N/A --disable-scrollkeeper
16584N/Amake -j $CPUS
16584N/A
16309N/A
17468N/A%install
18688N/Amake -i install DESTDIR=$RPM_BUILD_ROOT
18688N/A
17462N/A%clean
17462N/A# rm -rf $RPM_BUILD_ROOT
17462N/A
17462N/A%files -f %{name}.lang
17462N/A%defattr (-, root, root)
17462N/A%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
17462N/A%doc %{_mandir}/man1/*.1*
17462N/A%{_sysconfdir}/gconf/schemas/gksu.schemas
17462N/A%{_bindir}/gksu*
17462N/A%{_datadir}/gksu/
17462N/A%{_datadir}/pixmaps/gksu*.png
17462N/A%{_datadir}/applications/gksu*.desktop
17468N/A
18688N/A%changelog
18688N/A* Thu Sep 18 2008 - li.yuan@sun.com
17462N/A- Add patch gksu-04-exit.diff. Quit gksu after launch the child process.
17462N/A* Sun Jan 28 2007 - laca@sun.com
17462N/A- update download url
17462N/A* Wed Nov 15 2006 Calum Benson <calum.benson@sun.com>
17462N/A- Remove menu items from launch menu, in line with latest JDS UI spec.
17462N/A* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.3.4-1.2
17462N/A- Rebuild for Fedora Core 5.
17462N/A* Fri Jan 13 2006 Dag Wieers <dag@wieers.com> - 1.3.4-2
17462N/A- Fixed group.
17462N/A* Sat Sep 17 2005 Dries Verachtert <dries@ulyssis.org> - 1.3.4-1
17462N/A- Initial package.
17462N/A