gksu.spec revision 16320
10139N/A#
10139N/A# spec file for package gksu
10139N/A#
10139N/A# Copyright (c) 2005 Sun Microsystems, Inc.
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#
17822N/A# Owner: dkenny
10139N/A#
17177N/A%include l10n.inc
17177N/AName: gksu
17177N/ALicense: GPL v2
16320N/AGroup: Applications/System
10139N/AVersion: 1.3.0
15315N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Graphical frontend to su
10139N/ASource: http://people.debian.org/~kov/gksu/old_stuff/gksu/gksu-%{version}.tar.gz
18644N/ASource1: %{name}-po-sun-%{po_sun_version}.tar.bz2
10139N/ASource2: l10n-configure.sh
10139N/A# date:2006-08-03 owner:jim type:feature
16320N/APatch1: gksu-01-Makefile.diff
16320N/A# date:2006-08-03 owner:jim type:feature
16595N/APatch2: gksu-02-gksu.diff
10139N/A# date:2006-11-15 owner:calumb bugster:6489289 type:bug
16595N/APatch3: gksu-03-hide-launch-menu-items.diff
10139N/A# date:2009-04-06 owner:fujiwara bugster:6493486 type:bug state:upstream
10139N/APatch4: gksu-04-g11n-trunk-string.diff
10139N/AURL: http://www.nongnu.org/gksu/
16320N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
16320N/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
10139N/Ash -x %SOURCE2 --enable-sun-linguas
10139N/A/bin/rm -f po/stamp-po
10139N/Abzcat %SOURCE1 | tar xf -
16320N/Acd po-sun; make; cd ..
16320N/A%patch1 -p1
16320N/A%patch2 -p1
16320N/A%patch3 -p1
18566N/A%patch4 -p1
18566N/A
10139N/A%build
16320N/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
10139N/A# libtoolize --force
10139N/A# aclocal $ACLOCAL_FLAGS
10139N/A# automake -a -c -f
18566N/Aautoconf
18566N/A
18566N/ACFLAGS="$RPM_OPT_FLAGS" \
16320N/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
10139N/A%install
10139N/Amake -i 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
10139N/A* Mon Apr 06 2009 - takao.fujiwara@sun.com
10139N/A- Add patch gksu-04-g11n-trunk-string.diff. Back port the string from
10139N/A trunk for translations since the current gksu is old.
18566N/A- Update gksu-02-gksu.diff. Back port the string from trunk.
18566N/A- Add l10n tarball to back port the translations.
16595N/A* Thu Sep 18 2008 - li.yuan@sun.com
16595N/A- Add patch gksu-04-exit.diff. Quit gksu after launch the child process.
16320N/A* Sun Jan 28 2007 - laca@sun.com
16320N/A- update download url
16320N/A* Wed Nov 15 2006 Calum Benson <calum.benson@sun.com>
16320N/A- Remove menu items from launch menu, in line with latest JDS UI spec.
16320N/A* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.3.4-1.2
14400N/A- Rebuild for Fedora Core 5.
14400N/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.
10139N/A