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