author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19733 | 2ce91108f14e |
permissions | -rw-r--r-- |
557 | 1 |
# |
19693 | 2 |
# spec file for package usermode |
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. |
|
557 | 7 |
# |
8 |
||
9 |
Name: usermode |
|
10 |
License: GPL |
|
11 |
Group: Applications/System |
|
12 |
Version: 1.68 |
|
19643 | 13 |
Release: 263 |
19693 | 14 |
Distribution: Java Desktop System |
575 | 15 |
Vendor: Sun Microsystems, Inc. |
557 | 16 |
Summary: Tools for certain user account management tasks. |
17 |
Source: usermode-%{version}.tar.bz2 |
|
696 | 18 |
Patch1: usermode-01-dont-use-desktop-file-install.diff |
713 | 19 |
Patch2: usermode-02-dont-use-libuser.diff |
19733 | 20 |
Patch3: usermode-03-remove-console-apps-user-support.diff |
21 |
Patch4: usermode-04-bad-passwd-message.diff |
|
22 |
Patch5: usermode-05-maintain-http-proxy.diff |
|
23 |
Patch6: usermode-06-enable-deprecated-widgets.diff |
|
24 |
Patch7: usermode-07-g11n-i18n-ui.diff |
|
25 |
Patch8: usermode-08-protocol.diff |
|
557 | 26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
27 |
Docdir: %{_defaultdocdir}/doc |
|
28 |
Autoreqprov: on |
|
29 |
||
30 |
%define gtk2_version 2.2.1 |
|
31 |
%define startup_notification_version 0.5 |
|
32 |
%define libglade_version 2.0.1 |
|
33 |
||
34 |
Requires: pam, util-linux |
|
35 |
||
36 |
BuildRequires: pam-devel, util-linux |
|
37 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
38 |
BuildRequires: startup-notification-devel >= %{startup_notification_version} |
|
39 |
BuildRequires: libglade-devel >= %{libglade_version} |
|
40 |
||
41 |
%description |
|
42 |
The usermode package contains the userhelper program, which can be |
|
43 |
used to allow configured programs to be run with superuser privileges |
|
44 |
by ordinary users. |
|
45 |
||
696 | 46 |
|
47 |
%package gtk |
|
48 |
Summary: Graphical tools for certain user account management tasks. |
|
49 |
Group: Applications/System |
|
50 |
Requires: usermode = %{version}-%{release} |
|
51 |
||
52 |
%description gtk |
|
53 |
The usermode-gtk package contains several graphical tools for users: |
|
54 |
userinfo, usermount and userpasswd. Userinfo allows uses to change |
|
55 |
their finger information. Usermount allows users to mount, unmount, |
|
56 |
and format their filesystems. Userpasswd allows users to change their |
|
57 |
passwords. |
|
58 |
||
59 |
||
557 | 60 |
%prep |
61 |
%setup -q |
|
62 |
%patch1 |
|
713 | 63 |
%patch2 |
19733 | 64 |
%patch3 |
65 |
%patch4 -p1 |
|
66 |
%patch5 |
|
67 |
%patch6 -p1 |
|
1493 | 68 |
%patch7 -p1 |
2067 | 69 |
%patch8 -p1 |
557 | 70 |
|
4455 | 71 |
|
557 | 72 |
%build |
3263 | 73 |
%ifos linux |
74 |
if [ -x /usr/bin/getconf ]; then |
|
75 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
76 |
fi |
|
77 |
%else |
|
3846 | 78 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
3263 | 79 |
%endif |
80 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
81 |
CPUS=1 |
|
82 |
fi |
|
83 |
||
19243 | 84 |
aclocal |
696 | 85 |
automake -a --copy --force |
86 |
autoconf |
|
605 | 87 |
CFLAGS="$RPM_OPT_FLAGS" \ |
557 | 88 |
./configure --prefix=%{_prefix} \ |
814 | 89 |
--mandir=%{_mandir} \ |
557 | 90 |
--sysconfdir=%{_sysconfdir} |
3263 | 91 |
make -j $CPUS |
557 | 92 |
|
93 |
%install |
|
696 | 94 |
rm -rf $RPM_BUILD_ROOT |
557 | 95 |
make install DESTDIR=$RPM_BUILD_ROOT |
96 |
||
97 |
for iii in poweroff halt reboot; do |
|
98 |
ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/${iii} |
|
99 |
install -m 644 -D shutdown.pamd $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/$iii |
|
100 |
done |
|
101 |
||
3628 | 102 |
#Remove the stuff we don't want to deliver |
103 |
rm $RPM_BUILD_ROOT%{_bindir}/shutdown |
|
104 |
rm $RPM_BUILD_ROOT%{_bindir}/usermount |
|
105 |
rm $RPM_BUILD_ROOT%{_datadir}/control-center-2.0/capplets/userinfo.desktop |
|
106 |
rm $RPM_BUILD_ROOT%{_datadir}/control-center-2.0/capplets/usermount.desktop |
|
107 |
rm $RPM_BUILD_ROOT%{_mandir}/man1/userinfo* |
|
108 |
rm $RPM_BUILD_ROOT%{_mandir}/man1/usermount* |
|
109 |
||
557 | 110 |
%clean |
111 |
rm -rf $RPM_BUILD_ROOT |
|
112 |
||
113 |
%files |
|
114 |
%defattr(-,root,root) |
|
817 | 115 |
%{_sysconfdir}/pam.d/* |
116 |
%{_sysconfdir}/security/console.apps/* |
|
557 | 117 |
%{_bindir}/consolehelper |
118 |
%{_bindir}/poweroff |
|
119 |
%{_bindir}/halt |
|
120 |
%{_bindir}/reboot |
|
814 | 121 |
%{_mandir}/man8/consolehelper* |
122 |
%{_mandir}/man8/userhelper* |
|
557 | 123 |
%attr(4711,root,root) %{_prefix}/sbin/userhelper |
124 |
%{_prefix}/share/locale/*/LC_MESSAGES/*.mo |
|
125 |
||
696 | 126 |
|
127 |
%files gtk |
|
128 |
%defattr(-,root,root) |
|
129 |
%{_bindir}/consolehelper-gtk |
|
130 |
%{_bindir}/userpasswd |
|
813 | 131 |
%{_bindir}/pam-panel-icon |
814 | 132 |
%{_mandir}/man1/userpasswd.1* |
696 | 133 |
%{_datadir}/control-center-2.0/capplets/userpasswd.desktop |
134 |
%{_datadir}/pixmaps/* |
|
135 |
%{_datadir}/usermode |
|
136 |
||
137 |
||
557 | 138 |
%changelog |
19620 | 139 |
* Wed Jul 27 2005 - <[email protected]> |
140 |
- Removed patch usermode-08-exit-status.diff as it was added specifically |
|
141 |
to fix an issue with nfs mount/share features. But these features have |
|
142 |
been removed from cinnabar release onwards. Renamed other patches. |
|
143 |
||
19643 | 144 |
* Thu May 20 2005 - [email protected] |
145 |
- Added patch usermode-10-protocol.diff to fix #5101042 |
|
146 |
||
3279
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
147 |
* Thu Jul 08 2004 - [email protected] |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
148 |
- Updated l10n content to usermode-l10n-po-1.2.tar.bz2 |
5d64ee516a02
Bumped l10n tarball revision from 1.1 to 1.2 in all spec-files.
damiend
parents:
3263
diff
changeset
|
149 |
|
3628 | 150 |
* Wed Jul 07 2004 - [email protected] |
151 |
- ported to rpm4 |
|
152 |
||
3263 | 153 |
* Wed Jul 07 2004 - [email protected] |
154 |
- added "-j $CPUS" to make to speed up builds |
|
155 |
||
2736
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
156 |
* Wed May 12 2004 - [email protected] |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
157 |
- Updated l10n content to usermode-l10n-po-1.1.tar.bz2 |
bd6e69980863
Updated all spec files to reflect 1.1 version l10n tarballs delivered into
damiend
parents:
2619
diff
changeset
|
158 |
|
2355 | 159 |
* Wed Mar 31 2004 - [email protected] |
160 |
- replace tar jxf with the more solaris friendly |
|
161 |
bzcat piped through tar |
|
162 |
||
2350 | 163 |
* Mon Mar 29 2004 - [email protected] |
164 |
- Adding usermode-l10n-po-1.0.tar.bz2 l10n content |
|
165 |
||
2273 | 166 |
* Mon Mar 22 2004 - <[email protected]> |
167 |
- Added usermode-09-g11n-i18n-ui.diff to fix 4951360 |
|
168 |
||
2067 | 169 |
* Fri Feb 27 2004 - <[email protected]> |
170 |
- Added patch usermode-08-exit-status.diff to make userhelper return |
|
171 |
correct exit code. |
|
172 |
||
1493 | 173 |
* Wed Jan 07 2004 - <[email protected]> |
174 |
- Add patch to enable compilation of deprecated widgets. |
|
175 |
||
1392 | 176 |
* Fri Nov 07 2003 - <[email protected]> 1.68-20 |
177 |
- Add patch to not unset $http_proxy and $ftp_proxy. |
|
178 |
||
1163 | 179 |
* Tue Sep 23 2003 - <[email protected]> |
180 |
- Produce an error message that's actully useful |
|
181 |
for PAM_AUTHTOK_ERR occurences. |
|
182 |
||
830 | 183 |
* Mon Jul 28 2003 - <[email protected]> |
184 |
- Eek. Authenticate as root, not the user. |
|
185 |
||
814 | 186 |
* Sun Jul 27 2003 - <[email protected]> |
817 | 187 |
- Kill %config flags. |
188 |
||
189 |
* Sun Jul 27 2003 - <[email protected]> |
|
816 | 190 |
- Remove support for specifying USER in console.apps/* |
191 |
||
192 |
* Sun Jul 27 2003 - <[email protected]> |
|
814 | 193 |
- Install manpages in correct location |
194 |
||
813 | 195 |
* Sat Jul 26 2003 - <[email protected]> |
196 |
- Install pam-panel-icon |
|
197 |
||
739 | 198 |
* Wed Jul 23 2003 - <[email protected]> |
199 |
- Fixed POTFILES.in |
|
200 |
||
713 | 201 |
* Tue Jul 22 2003 - <[email protected]> |
202 |
- Remove libuser dependancy. userinfo doesn't really make |
|
203 |
much sense for us. |
|
204 |
||
696 | 205 |
* Mon Jul 21 2003 - <[email protected]> |
206 |
- install userpasswd |
|
207 |
||
557 | 208 |
* Wed Jul 09 2003 - <[email protected]> |
209 |
- Initial spec file |