author | dermotm |
Mon, 24 Jul 2006 12:30:39 +0000 | |
branch | gnome-2-10 |
changeset 19949 | 94f49bf19351 |
parent 19838 | 42a3a4365a3b |
permissions | -rw-r--r-- |
4267 | 1 |
# |
19693 | 2 |
# spec file for package netapplet |
3 |
# |
|
4 |
# Copyright (c) 2005 Sun Microsystems, Inc. |
|
4267 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
8 |
||
9 |
Name: netapplet |
|
10 |
License: GPL |
|
11 |
Group: System/GUI/GNOME |
|
4974
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
12 |
Version: 1.0.0 |
19643 | 13 |
Release: 42 |
19693 | 14 |
Distribution: Java Desktop System |
4867
e8cfe7e64783
*.spec (almost): update Vendor and Distribution tags
dermotm
parents:
4860
diff
changeset
|
15 |
Vendor: Sun Microsystems, Inc. |
4267 | 16 |
Summary: The NetApplet allows to monitor and to control network devices. |
17 |
Source: netapplet-%{version}.tar.bz2 |
|
19724 | 18 |
Patch1: netapplet-01-accessibility-support.diff |
19 |
Patch2: netapplet-02-no-gray-in-menu.diff |
|
20 |
Patch3: netapplet-03-g11n-configure.diff |
|
21 |
Patch4: netapplet-04-help-button.diff |
|
22 |
Patch5: netapplet-05-netstatus.diff |
|
23 |
Patch6: netapplet-06-proc-net-wireless.diff |
|
24 |
Patch7: netapplet-07-no-wless-auto.diff |
|
5350
33c43e9a5541
- added patch netapplet-04-proc-net-wireless.diff to fix bug #6179129.
mk84910
parents:
5333
diff
changeset
|
25 |
|
4267 | 26 |
URL: http://www.gnome.org/ |
27 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
28 |
Docdir: %{_defaultdocdir} |
|
4812
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
29 |
PreReq: pam-usermode perl |
4267 | 30 |
Autoreqprov: on |
31 |
||
32 |
%define gnome_panel_version 2.0.0 |
|
5122 | 33 |
%define gnome_netstatus_version 0.11 |
4267 | 34 |
|
19838 | 35 |
Requires: gnome-panel >= %{gnome_panel_version} |
36 |
BuildRequires: gnome-panel-devel >= %{gnome_panel_version} |
|
4267 | 37 |
|
5122 | 38 |
Obsoletes: gnome-netstatus <= %{gnome_netstatus_version} |
39 |
Provides: gnome-netstatus = %{gnome_netstatus_version} |
|
5007 | 40 |
|
4267 | 41 |
%description |
42 |
The NetApplet allows to monitor and to control network devices. |
|
43 |
||
44 |
%prep |
|
45 |
%setup -q |
|
19724 | 46 |
%patch1 -p1 |
47 |
%patch2 -p1 |
|
5019 | 48 |
%patch3 -p1 |
5076
3af65a7d23da
- added patch netapplet-04-no-gray-in-menu which removes always inactive
mk84910
parents:
5025
diff
changeset
|
49 |
%patch4 -p1 |
5108 | 50 |
%patch5 -p1 |
5183
d568b1df9b82
- added patch netapplet-04-help-button.diff which fixes help button
mk84910
parents:
5152
diff
changeset
|
51 |
%patch6 -p1 |
5297
9d5c47e0df0a
- added patch netapplet-04-netstatus.diff to fix bug #6236262
mk84910
parents:
5285
diff
changeset
|
52 |
%patch7 -p1 |
4455 | 53 |
|
4267 | 54 |
%build |
55 |
if [ -x /usr/bin/getconf ]; then |
|
56 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
57 |
fi |
|
58 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
59 |
CPUS=1 |
|
60 |
fi |
|
61 |
||
62 |
LC_ALL= |
|
63 |
LANG= |
|
64 |
export LC_ALL LANG |
|
65 |
glib-gettextize --force --copy |
|
66 |
intltoolize --force --copy --automake |
|
67 |
libtoolize --force |
|
19243 | 68 |
aclocal $ACLOCAL_FLAGS |
4267 | 69 |
autoheader |
70 |
automake -a -c -f |
|
71 |
autoconf |
|
72 |
||
73 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
74 |
./configure \ |
|
75 |
--prefix=%{_prefix} \ |
|
76 |
--libexecdir=%{_libexecdir} \ |
|
77 |
--sysconfdir=%{_sysconfdir} |
|
78 |
||
79 |
make -j $CPUS |
|
80 |
||
4812
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
81 |
perl ./netdaemon-build.pl --sysconfdir=%{_sysconfdir} --sbindir=%{_sbindir} |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
82 |
|
4267 | 83 |
%install |
84 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
85 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
86 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
4812
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
87 |
install -D -o root -g root -m 744 netdaemon $RPM_BUILD_ROOT%{_sysconfdir}/init.d/netdaemon |
4267 | 88 |
|
4722
136a867f7829
* netapplet.spec: Add changes to actually include docs in rpm.
dc144907
parents:
4721
diff
changeset
|
89 |
# Remove unwanted files. |
136a867f7829
* netapplet.spec: Add changes to actually include docs in rpm.
dc144907
parents:
4721
diff
changeset
|
90 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/var |
136a867f7829
* netapplet.spec: Add changes to actually include docs in rpm.
dc144907
parents:
4721
diff
changeset
|
91 |
|
4267 | 92 |
%clean |
93 |
rm -rf $RPM_BUILD_ROOT |
|
94 |
||
4622 | 95 |
%post |
96 |
# set up permissions mapping for console user |
|
4812
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
97 |
if [ "$1" == "1" ]; then |
4974
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
98 |
if [ -z "`grep '/var/run/netdaemon-priv.socket' /etc/security/console.perms`" ]; then |
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
99 |
echo -e "<console> 0600 /var/run/netdaemon-priv.socket 0600 root" >> /etc/security/console.perms |
4812
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
100 |
fi |
5025
1beabc9a0ab3
- added 'force' option to chkconfig set command in the post section
mk84910
parents:
5019
diff
changeset
|
101 |
/sbin/chkconfig --add netdaemon >/dev/null 2>&1 |
1beabc9a0ab3
- added 'force' option to chkconfig set command in the post section
mk84910
parents:
5019
diff
changeset
|
102 |
/sbin/chkconfig --set --force netdaemon 5 |
4812
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
103 |
fi |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
104 |
|
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
105 |
%preun |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
106 |
# remove permissions mapping for console user |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
107 |
if [ "$1" == "0" ]; then |
5025
1beabc9a0ab3
- added 'force' option to chkconfig set command in the post section
mk84910
parents:
5019
diff
changeset
|
108 |
/etc/init.d/netdaemon stop >/dev/null 2>&1 |
1beabc9a0ab3
- added 'force' option to chkconfig set command in the post section
mk84910
parents:
5019
diff
changeset
|
109 |
/sbin/chkconfig --del netdaemon >/dev/null 2>&1 |
4812
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
110 |
if [ -e '/etc/security/console.perms' ]; then |
4974
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
111 |
if [ -n "`grep '/var/run/netdaemon-priv.socket' /etc/security/console.perms`" ]; then |
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
112 |
grep -v '/var/run/netdaemon-priv.socket' /etc/security/console.perms > /tmp/console.perms |
4812
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
113 |
mv -f /tmp/console.perms /etc/security/console.perms |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
114 |
fi |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
115 |
fi |
4622 | 116 |
fi |
117 |
||
19724 | 118 |
%files |
119 |
%defattr(-,root,root) |
|
120 |
%doc AUTHORS ChangeLog COPYING NEWS README |
|
121 |
%config |
|
122 |
%{_sysconfdir}/init.d/netdaemon |
|
123 |
%{_sbindir}/* |
|
124 |
%{_libexecdir}/* |
|
125 |
%{_libdir}/bonobo/servers/*.server |
|
126 |
%{_datadir}/gnome-2.0/ui/*.xml |
|
127 |
%{_datadir}/pixmaps/* |
|
128 |
%{_datadir}/icons/hicolor/48x48/apps/* |
|
129 |
%{_datadir}/netapplet/* |
|
130 |
||
4267 | 131 |
%changelog |
19443 | 132 |
* Thu Jun 16 2005 - <[email protected]> |
133 |
- Bump docs and l10n tarballs |
|
134 |
||
19643 | 135 |
* Fri May 27 2005 - <[email protected]> |
136 |
- added patch netapplet-04-no-wless-auto.diff to fix bug #6238705 |
|
137 |
||
5350
33c43e9a5541
- added patch netapplet-04-proc-net-wireless.diff to fix bug #6179129.
mk84910
parents:
5333
diff
changeset
|
138 |
* Tue Apr 19 2005 - <[email protected]> |
33c43e9a5541
- added patch netapplet-04-proc-net-wireless.diff to fix bug #6179129.
mk84910
parents:
5333
diff
changeset
|
139 |
- added patch netapplet-04-proc-net-wireless.diff to fix bug #6179129 |
33c43e9a5541
- added patch netapplet-04-proc-net-wireless.diff to fix bug #6179129.
mk84910
parents:
5333
diff
changeset
|
140 |
|
5297
9d5c47e0df0a
- added patch netapplet-04-netstatus.diff to fix bug #6236262
mk84910
parents:
5285
diff
changeset
|
141 |
* Fri Apr 01 2005 - <[email protected]> |
9d5c47e0df0a
- added patch netapplet-04-netstatus.diff to fix bug #6236262
mk84910
parents:
5285
diff
changeset
|
142 |
- added patch netapplet-04-netstatus.diff to fix bug #6236262 |
9d5c47e0df0a
- added patch netapplet-04-netstatus.diff to fix bug #6236262
mk84910
parents:
5285
diff
changeset
|
143 |
today is right date for this patch ;) |
9d5c47e0df0a
- added patch netapplet-04-netstatus.diff to fix bug #6236262
mk84910
parents:
5285
diff
changeset
|
144 |
|
5243 | 145 |
* Tue Mar 15 2005 - <[email protected]> |
146 |
- Updated netapplet-05-g11n-configure.diff to fix 6230840 |
|
147 |
||
5183
d568b1df9b82
- added patch netapplet-04-help-button.diff which fixes help button
mk84910
parents:
5152
diff
changeset
|
148 |
* Mon Mar 07 2005 - <[email protected]> |
d568b1df9b82
- added patch netapplet-04-help-button.diff which fixes help button
mk84910
parents:
5152
diff
changeset
|
149 |
- added patch netapplet-04-help-button.diff which fixes help button |
d568b1df9b82
- added patch netapplet-04-help-button.diff which fixes help button
mk84910
parents:
5152
diff
changeset
|
150 |
on the Connection Properties dialog (bug #6227222) |
d568b1df9b82
- added patch netapplet-04-help-button.diff which fixes help button
mk84910
parents:
5152
diff
changeset
|
151 |
|
5122 | 152 |
* Mon Feb 22 2005 - [email protected] |
153 |
- Obsoletes fixed. Added Provides entry. |
|
154 |
||
5116
5ac930ad3b16
* netapplet.spec: Updated docs (netapplet-docs-0.2linux) from [email protected].
dc144907
parents:
5108
diff
changeset
|
155 |
* Mon Feb 21 2005 - [email protected] |
5ac930ad3b16
* netapplet.spec: Updated docs (netapplet-docs-0.2linux) from [email protected].
dc144907
parents:
5108
diff
changeset
|
156 |
- Updated docs (netapplet-docs-0.2linux) from [email protected]. |
5ac930ad3b16
* netapplet.spec: Updated docs (netapplet-docs-0.2linux) from [email protected].
dc144907
parents:
5108
diff
changeset
|
157 |
|
5108 | 158 |
* Fri Feb 18 2005 - <[email protected]> |
159 |
- Added netapplet-05-g11n-configure.diff to have $ALL_LINGUAS |
|
160 |
||
5076
3af65a7d23da
- added patch netapplet-04-no-gray-in-menu which removes always inactive
mk84910
parents:
5025
diff
changeset
|
161 |
* Fri Feb 11 2005 - <[email protected]> |
3af65a7d23da
- added patch netapplet-04-no-gray-in-menu which removes always inactive
mk84910
parents:
5025
diff
changeset
|
162 |
- added patch netapplet-04-no-gray-in-menu which removes always inactive |
3af65a7d23da
- added patch netapplet-04-no-gray-in-menu which removes always inactive
mk84910
parents:
5025
diff
changeset
|
163 |
items form right click menu (bug #6227702) |
3af65a7d23da
- added patch netapplet-04-no-gray-in-menu which removes always inactive
mk84910
parents:
5025
diff
changeset
|
164 |
|
5025
1beabc9a0ab3
- added 'force' option to chkconfig set command in the post section
mk84910
parents:
5019
diff
changeset
|
165 |
* Mon Feb 07 2005 - <[email protected]> |
1beabc9a0ab3
- added 'force' option to chkconfig set command in the post section
mk84910
parents:
5019
diff
changeset
|
166 |
- added 'force' option to chkconfig set command in the post section |
1beabc9a0ab3
- added 'force' option to chkconfig set command in the post section
mk84910
parents:
5019
diff
changeset
|
167 |
- added stop netdaemon servece command to the preun section |
1beabc9a0ab3
- added 'force' option to chkconfig set command in the post section
mk84910
parents:
5019
diff
changeset
|
168 |
|
5019 | 169 |
* Mon Feb 07 2005 - <[email protected]> |
170 |
- Added patch to handle accessibility for netapplet. |
|
171 |
- Fixes bug #6174246. |
|
172 |
||
5007 | 173 |
* Thu Feb 03 2005 - <[email protected]> |
174 |
- Obsolete gnome-netstatus. |
|
175 |
||
4974
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
176 |
* Fri Jan 28 2005 - <[email protected]> |
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
177 |
- changed user-visible name of the applet to 'Network Monitor' |
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
178 |
- changed netdaemon socket name to 'netdaemon-priv.socket' |
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
179 |
- added links to the help document in help dialog |
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
180 |
- version is 1.0.0 |
91355cbc408d
- changed user-visible name of the applet to 'Network Monitor';
mk84910
parents:
4973
diff
changeset
|
181 |
|
4830 | 182 |
* Thu Jan 13 2005 - <[email protected]> |
183 |
- #6217016 - Added javahelp-convert details |
|
184 |
||
4812
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
185 |
* Mon Jan 10 2005 - <[email protected]> |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
186 |
- added changes from the original code version 1.0.0 |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
187 |
- added support of rpm install/upgrade/erase to netapplet.spec |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
188 |
- added netdaemon-build.pl which builds /etc/init.d script for netdaemon |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
189 |
- changed 'accesspints' format to support total signal strength on an interface |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
190 |
- added -n option to netdaemon to start it as regular application |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
191 |
- added DEBUG_MODE flag to configure.in |
e71da8ef5bdb
- added changes from the original code version 1.0.0
mk84910
parents:
4801
diff
changeset
|
192 |
|
4758 | 193 |
* Thu Dec 16 2004 - [email protected] |
194 |
- Added l10n help tarball and pathes |
|
195 |
||
4721
9461d4ec870c
* netapplet.spec: Add docs tarball and patch to integrate same.
dc144907
parents:
4704
diff
changeset
|
196 |
* Wed Dec 8 2004 - [email protected] |
9461d4ec870c
* netapplet.spec: Add docs tarball and patch to integrate same.
dc144907
parents:
4704
diff
changeset
|
197 |
- Add docs tarball and patch to integrate same. |
9461d4ec870c
* netapplet.spec: Add docs tarball and patch to integrate same.
dc144907
parents:
4704
diff
changeset
|
198 |
|
4702
946114ac7de5
- 'pam-usermode' is added to the spec file as a prerequirement.
mk84910
parents:
4689
diff
changeset
|
199 |
* Fri Dec 03 2004 - <[email protected]> |
946114ac7de5
- 'pam-usermode' is added to the spec file as a prerequirement.
mk84910
parents:
4689
diff
changeset
|
200 |
- 'pam-usermode' is added to the spec file as a prerequirement |
946114ac7de5
- 'pam-usermode' is added to the spec file as a prerequirement.
mk84910
parents:
4689
diff
changeset
|
201 |
|
4622 | 202 |
* Tue Nov 23 2004 - <[email protected]> |
203 |
- NetApplet converted to a GNOME Panel applet |
|
204 |
- netdaemon is in sbin directory, netapplet is in libexec directory |
|
205 |
- console user helper is used to manage access to the netdaemon socket |
|
206 |
||
4443
c889d4d2454b
Updating spec files to include potfiles patches to update POTFILE.in of software modules
cm152228
parents:
4409
diff
changeset
|
207 |
* Thu Nov 04 2004 - [email protected] |
c889d4d2454b
Updating spec files to include potfiles patches to update POTFILE.in of software modules
cm152228
parents:
4409
diff
changeset
|
208 |
- Added netapplet-01-potfiles.diff to update POTFILES.in |
c889d4d2454b
Updating spec files to include potfiles patches to update POTFILE.in of software modules
cm152228
parents:
4409
diff
changeset
|
209 |
|
4400
93c3f0e35d6f
- added hardware info to the support tab of the property dialog;
mk84910
parents:
4323
diff
changeset
|
210 |
* Fri Oct 29 2004 - <[email protected]> |
93c3f0e35d6f
- added hardware info to the support tab of the property dialog;
mk84910
parents:
4323
diff
changeset
|
211 |
- added hardware info to the support tab of the property dialog |
93c3f0e35d6f
- added hardware info to the support tab of the property dialog;
mk84910
parents:
4323
diff
changeset
|
212 |
- further improvements on the applet icon management |
93c3f0e35d6f
- added hardware info to the support tab of the property dialog;
mk84910
parents:
4323
diff
changeset
|
213 |
- code clean up |
93c3f0e35d6f
- added hardware info to the support tab of the property dialog;
mk84910
parents:
4323
diff
changeset
|
214 |
|
4323 | 215 |
* Fri Oct 22 2004 - <[email protected]> |
216 |
- support tab added to the property dialog |
|
217 |
- icon management is improved |
|
218 |
||
4283 | 219 |
* Mon Oct 18 2004 - <[email protected]> |
220 |
- the post section was removed. |
|
221 |
||
4267 | 222 |
* Fri Oct 15 2004 - <[email protected]> |
223 |
- Initial spec file |