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