author | mattman |
Thu, 01 Mar 2007 16:44:37 +0000 | |
changeset 9412 | 295ad51330c9 |
parent 9397 | b16e349d18c5 |
child 9481 | 0933cab551dc |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-sys-suspend |
|
3 |
# |
|
4 |
# includes module(s): gnome-sys-suspend |
|
5 |
# |
|
6 |
# Copyright (c) 2004 Sun Microsystems, Inc. |
|
7 |
# This file and all modifications and additions to the pristine |
|
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
10 |
# Owner: yippi |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
Name: SUNWgnome-sys-suspend |
|
14 |
Summary: GNOME system suspend application |
|
15 |
Version: %{default_pkg_version} |
|
16 |
%define tarball_version 0.3 |
|
17 |
Release: 3 |
|
18 |
Source: http://dlc.sun.com/osol/jds/downloads/extras/gnome-sys-suspend-%{tarball_version}.tar.gz |
|
19 |
Source1: %{name}-manpages-0.1.tar.gz |
|
20 |
Source2: l10n-configure.sh |
|
21 |
#owner:yippi date:2004-07-21 type:bug |
|
22 |
Patch1: gnome-sys-suspend-01-security-check.diff |
|
23 |
#owner:yippi date:2004-09-25 type:bug |
|
24 |
Patch2: gnome-sys-suspend-02-cmd-options.diff |
|
25 |
#owner:yippi date:2004-11-25 type:bug bugster:6196573. |
|
26 |
Patch3: gnome-sys-suspend-03-check-a11y.diff |
|
9412
295ad51330c9
* SUNWgnome-sys-suspend.spec : Add patch 04-already-running.diff, fixes
mattman
parents:
9397
diff
changeset
|
27 |
#owner:mattman date:2007-03-01 type:bug bugster:6198538 |
295ad51330c9
* SUNWgnome-sys-suspend.spec : Add patch 04-already-running.diff, fixes
mattman
parents:
9397
diff
changeset
|
28 |
Patch4: gnome-sys-suspend-04-already-running.diff |
9397 | 29 |
SUNW_BaseDir: %{_basedir} |
30 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
31 |
%include default-depend.inc |
|
32 |
Requires: SUNWgnome-base-libs |
|
33 |
Requires: SUNWgnome-libs |
|
34 |
Requires: SUNWgnome-config |
|
35 |
Requires: SUNWxwrtl |
|
36 |
BuildRequires: SUNWgnome-config-devel |
|
37 |
BuildRequires: SUNWgnome-base-libs-devel |
|
38 |
BuildRequires: SUNWgnome-libs-devel |
|
39 |
||
40 |
%description |
|
41 |
gnome-sys-suspend is an application in Solaris, which provides options |
|
42 |
to suspend or shutdown the whole system. This application ensures that |
|
43 |
the system is EnergyStar compliant. It can be invoked by pressing |
|
44 |
SunPowerSwitch key. sys-suspend involves some code which requires SUID |
|
45 |
root privileges. But it is not advisable to write SUID programs using |
|
46 |
GTK+ toolkit because of security issues. So, in GNOME environment, |
|
47 |
suspend functionality will be handled using two separate applications. |
|
48 |
First one, gnome-sys-suspend, is the GUI part which takes care of |
|
49 |
showing the suspend window and other dialogs, for interacting with the |
|
50 |
user. The second one, gnome-suspend, is a self contained application |
|
51 |
and contains the code parts which truly require SUID root privileges. |
|
52 |
||
53 |
%if %build_l10n |
|
54 |
%package l10n |
|
55 |
Summary: %{summary} - l10n files |
|
56 |
SUNW_BaseDir: %{_basedir} |
|
57 |
%include default-depend.inc |
|
58 |
Requires: %{name} |
|
59 |
%endif |
|
60 |
||
61 |
%prep |
|
62 |
%setup -c -n %name-%tarball_version |
|
63 |
cd gnome-sys-suspend-%{tarball_version} |
|
64 |
gzcat %SOURCE1 | tar xf - |
|
65 |
%patch1 -p1 |
|
66 |
%patch2 -p1 |
|
67 |
%patch3 -p1 |
|
9412
295ad51330c9
* SUNWgnome-sys-suspend.spec : Add patch 04-already-running.diff, fixes
mattman
parents:
9397
diff
changeset
|
68 |
%patch4 -p1 |
9397 | 69 |
|
70 |
bash -x %SOURCE2 |
|
71 |
||
72 |
%build |
|
73 |
cd gnome-sys-suspend-%{tarball_version} |
|
74 |
export PKG_CONFIG_PATH=%{_libdir}/pkgconfig:/usr/lib/pkgconfig |
|
75 |
export CFLAGS="%optflags" |
|
76 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
77 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
78 |
export LDFLAGS="%_ldflags" |
|
79 |
||
80 |
glib-gettextize --force --copy |
|
81 |
intltoolize --force --automake |
|
82 |
libtoolize --force |
|
83 |
aclocal $ACLOCAL_FLAGS |
|
84 |
autoheader |
|
85 |
automake -a -c -f |
|
86 |
autoconf |
|
87 |
||
88 |
# FIXME: Hack to create missing po files. |
|
89 |
touch po/pl.po po/ru.po |
|
90 |
||
91 |
./configure --prefix=%{_prefix} \ |
|
92 |
--libexecdir=%{_libexecdir} |
|
93 |
||
94 |
%install |
|
95 |
cd gnome-sys-suspend-%{tarball_version} |
|
96 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
97 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
98 |
cd sun-manpages |
|
99 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
100 |
||
101 |
%if %build_l10n |
|
102 |
%else |
|
103 |
# REMOVE l10n FILES |
|
104 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
105 |
%endif |
|
106 |
||
107 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
108 |
||
109 |
%clean |
|
110 |
rm -rf $RPM_BUILD_ROOT |
|
111 |
||
112 |
%files |
|
113 |
%defattr (-, root, bin) |
|
114 |
%dir %attr (0755, root, bin) %{_bindir} |
|
115 |
%{_bindir}/* |
|
116 |
%dir %attr (0755, root, bin) %{_libdir} |
|
117 |
%attr (4711, root, bin) %{_libexecdir}/gnome-suspend |
|
118 |
%dir %attr (0755, root, sys) %{_datadir} |
|
119 |
%dir %attr(0755, root, bin) %{_mandir} |
|
120 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
121 |
%{_mandir}/*/* |
|
122 |
||
123 |
%if %build_l10n |
|
124 |
%files l10n |
|
125 |
%defattr (-, root, bin) |
|
126 |
%dir %attr (0755, root, sys) %{_datadir} |
|
127 |
%attr (-, root, other) %{_datadir}/locale |
|
128 |
%endif |
|
129 |
||
130 |
%changelog |
|
9412
295ad51330c9
* SUNWgnome-sys-suspend.spec : Add patch 04-already-running.diff, fixes
mattman
parents:
9397
diff
changeset
|
131 |
* Thu Mar 01 2007 - [email protected] |
295ad51330c9
* SUNWgnome-sys-suspend.spec : Add patch 04-already-running.diff, fixes
mattman
parents:
9397
diff
changeset
|
132 |
- Fix #6198538, patch gnome-sys-suspend-04-already-running.diff |
9397 | 133 |
* Mon Sep 04 2006 - [email protected] |
134 |
- New Manpage tarball |
|
135 |
* Sun Jun 11 2006 - [email protected] |
|
136 |
- change group from other to bin/sys |
|
137 |
* Wed May 10 2006 - [email protected] |
|
138 |
- merge -share pkg(s) into the base pkg(s) |
|
139 |
* Mon Feb 20 2006 - [email protected] |
|
140 |
- Update Build/Requires after running check-deps.pl script. |
|
141 |
* Mon Jan 13 2006 - [email protected] |
|
142 |
- Add hack to create missing po files. |
|
143 |
* Thu Dec 08 2005 - [email protected] |
|
144 |
- Remove l10n tarball. Not maintained in OpenSolaris releases. |
|
145 |
* Wed Nov 25 2004 - [email protected] |
|
146 |
- Added gnome-sys-suspend-03-check-a11y.diff to check for a11y before |
|
147 |
doing a pointer grab. Fixes stopper bug #6196573. |
|
148 |
* Wed Nov 24 2004 - [email protected] |
|
149 |
- updating l10n tarballs to fix 5094817 |
|
150 |
* Sat Oct 02 2004 - [email protected] |
|
151 |
- added %pkgbuild_postprocess |
|
152 |
* Sat Sep 25 2004 - <[email protected]> |
|
153 |
- Added patch gnome-sys-suspend-02-cmd-options.diff to (a) Provide standard |
|
154 |
GTK commandline options and (b) Change the path of SUID gnome-suspend |
|
155 |
program from /usr/sbin/ to /usr/lib/. |
|
156 |
* Tue Aug 31 2004 - [email protected] |
|
157 |
- enable nls for fixing #5094817, bump tarball version to 0.3 |
|
158 |
* Mon Aug 23 2004 - [email protected] |
|
159 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
160 |
* Wed Jul 21 2004 - <[email protected]> |
|
161 |
- Added patch gnome-sys-suspend-01-security-check.diff to add an extra |
|
162 |
check to make sure that only authorised users can suspend, shutdown, |
|
163 |
lowpower the system. This will avoid system from misuse. |
|
164 |
* Wed Jul 14 2004 - <[email protected]> |
|
165 |
- add %defattr to %files share (fixes 5073629) |
|
166 |
* Mon Jul 05 2004 - <[email protected]> |
|
167 |
- Add BuildRequires: SUNWgnome-base-libs-devel |
|
168 |
* Sun Jun 27 2004 - <[email protected]> |
|
169 |
- Changed install location to /usr/... |
|
170 |
* Thu Jun 10 2004 - <[email protected]> |
|
171 |
- Added %file entries for _prefix and _datadir for share package |
|
172 |
* Wed Jun 09 2004 - <[email protected]> |
|
173 |
- Provide man page for gnome-sys-suspend. Added SGML man page integration. |
|
174 |
* Fri May 14 2004 - <[email protected]> |
|
175 |
- Bump the tarball version to 0.2. Also fixed one build issue and provided |
|
176 |
accessibility support to the component. |
|
177 |
* Tue May 04 2004 - <[email protected]> |
|
178 |
- change to package version to 2.6.0 |
|
179 |
* Mon Apr 26 2004 - <[email protected]> |
|
180 |
- initial version of spec file |