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