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