9397
|
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 |
#
|
17071
|
8 |
%define owner lin
|
9397
|
9 |
#
|
16426
|
10 |
|
|
11 |
%define OSR 4532:1.x
|
|
12 |
|
15569
|
13 |
%include l10n.inc
|
9397
|
14 |
Name: gksu
|
14564
|
15 |
License: GPL v2
|
9397
|
16 |
Group: Applications/System
|
|
17 |
Version: 1.3.0
|
|
18 |
Release: 1
|
|
19 |
Distribution: Java Desktop System
|
17893
|
20 |
Vendor: www.nongnu.org/gksu
|
9397
|
21 |
Summary: Graphical frontend to su
|
|
22 |
Source: http://people.debian.org/~kov/gksu/old_stuff/gksu/gksu-%{version}.tar.gz
|
15569
|
23 |
Source1: %{name}-po-sun-%{po_sun_version}.tar.bz2
|
|
24 |
Source2: l10n-configure.sh
|
15844
|
25 |
# date:2006-08-03 owner:lin type:feature
|
9397
|
26 |
Patch1: gksu-01-Makefile.diff
|
15844
|
27 |
# date:2006-08-03 owner:lin type:feature
|
9397
|
28 |
Patch2: gksu-02-gksu.diff
|
|
29 |
# date:2006-11-15 owner:calumb bugster:6489289 type:bug
|
|
30 |
Patch3: gksu-03-hide-launch-menu-items.diff
|
15569
|
31 |
# date:2009-04-06 owner:fujiwara bugster:6493486 type:bug state:upstream
|
|
32 |
Patch4: gksu-04-g11n-trunk-string.diff
|
9397
|
33 |
URL: http://www.nongnu.org/gksu/
|
|
34 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
35 |
Docdir: %{_defaultdocdir}/%{name}
|
|
36 |
Autoreqprov: on
|
|
37 |
Prereq: GConf
|
|
38 |
|
|
39 |
|
|
40 |
BuildRequires: gtk+-devel >= 2.4.0, libgksu-devel, libgksuui-devel
|
|
41 |
BuildRequires: gettext, intltool, perl(XML::Parser)
|
|
42 |
BuildRequires: bison, gtk-doc, libgksuui-devel, gtk2-devel, gnome-keyring-devel
|
|
43 |
BuildRequires: GConf2-devel
|
|
44 |
|
|
45 |
%description
|
|
46 |
Gtk+ frontend to /bin/su. It supports login shells and preserving environment
|
|
47 |
when acting as a su frontend. It is useful to menu items or other graphical
|
|
48 |
programs that need to ask a user's password to run another program as another
|
|
49 |
user.
|
|
50 |
|
|
51 |
%prep
|
|
52 |
%setup
|
15569
|
53 |
sh -x %SOURCE2 --enable-sun-linguas
|
|
54 |
/bin/rm -f po/stamp-po
|
|
55 |
bzcat %SOURCE1 | tar xf -
|
|
56 |
cd po-sun; make; cd ..
|
17815
|
57 |
%patch1 -p0
|
|
58 |
%patch2 -p0
|
9397
|
59 |
%patch3 -p1
|
15569
|
60 |
%patch4 -p1
|
9397
|
61 |
|
|
62 |
%build
|
|
63 |
%ifos linux
|
|
64 |
if [ -x /usr/bin/getconf ]; then
|
|
65 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
66 |
fi
|
|
67 |
%else
|
|
68 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
69 |
%endif
|
|
70 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
71 |
CPUS=1
|
|
72 |
fi
|
|
73 |
|
17815
|
74 |
libtoolize --force
|
18072
|
75 |
aclocal $ACLOCAL_FLAGS -I m4
|
17815
|
76 |
automake -a -c -f
|
15569
|
77 |
autoconf
|
9397
|
78 |
|
|
79 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
80 |
./configure \
|
|
81 |
--prefix=%{_prefix} \
|
|
82 |
--sysconfdir=%{_sysconfdir} \
|
|
83 |
--libexecdir=%{_libexecdir} \
|
|
84 |
--mandir=%{_mandir} \
|
|
85 |
--disable-scrollkeeper
|
|
86 |
make -j $CPUS
|
|
87 |
|
|
88 |
|
|
89 |
%install
|
18072
|
90 |
make install DESTDIR=$RPM_BUILD_ROOT
|
9397
|
91 |
|
|
92 |
%clean
|
|
93 |
# rm -rf $RPM_BUILD_ROOT
|
|
94 |
|
|
95 |
%files -f %{name}.lang
|
|
96 |
%defattr (-, root, root)
|
|
97 |
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
|
|
98 |
%doc %{_mandir}/man1/*.1*
|
|
99 |
%{_sysconfdir}/gconf/schemas/gksu.schemas
|
|
100 |
%{_bindir}/gksu*
|
|
101 |
%{_datadir}/gksu/
|
|
102 |
%{_datadir}/pixmaps/gksu*.png
|
|
103 |
%{_datadir}/applications/gksu*.desktop
|
|
104 |
|
|
105 |
%changelog
|
17815
|
106 |
* Tue Apr 09 2010 - [email protected]
|
|
107 |
- Updated patch to fix doo#11495
|
15844
|
108 |
* W3d Jun 03 2009 - [email protected]
|
|
109 |
- Change patch owner from Jim to Lin
|
15569
|
110 |
* Mon Apr 06 2009 - [email protected]
|
|
111 |
- Add patch gksu-04-g11n-trunk-string.diff. Back port the string from
|
|
112 |
trunk for translations since the current gksu is old.
|
|
113 |
- Update gksu-02-gksu.diff. Back port the string from trunk.
|
|
114 |
- Add l10n tarball to back port the translations.
|
13658
|
115 |
* Thu Sep 18 2008 - [email protected]
|
|
116 |
- Add patch gksu-04-exit.diff. Quit gksu after launch the child process.
|
9397
|
117 |
* Sun Jan 28 2007 - [email protected]
|
|
118 |
- update download url
|
|
119 |
* Wed Nov 15 2006 Calum Benson <[email protected]>
|
|
120 |
- Remove menu items from launch menu, in line with latest JDS UI spec.
|
|
121 |
* Sat Apr 08 2006 Dries Verachtert <[email protected]> - 1.3.4-1.2
|
|
122 |
- Rebuild for Fedora Core 5.
|
|
123 |
* Fri Jan 13 2006 Dag Wieers <[email protected]> - 1.3.4-2
|
|
124 |
- Fixed group.
|
|
125 |
* Sat Sep 17 2005 Dries Verachtert <[email protected]> - 1.3.4-1
|
|
126 |
- Initial package.
|