11631
|
1 |
#
|
11632
|
2 |
# spec file for package SUNWgnome-power-manager
|
11631
|
3 |
#
|
|
4 |
# includes module(s): gnome-power-manager
|
|
5 |
#
|
11648
|
6 |
# Copyright 2008 Sun Microsystems, Inc.
|
11632
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
11924
|
10 |
# Owner: SimonZheng
|
|
11 |
#
|
11631
|
12 |
%include Solaris.inc
|
|
13 |
%use gpm = gnome-power-manager.spec
|
11774
|
14 |
%define with_xmlto %(test -x /usr/bin/xmlto && echo 1 || echo 0)
|
11631
|
15 |
|
11632
|
16 |
Name: SUNWgnome-power-manager
|
11648
|
17 |
Summary: GNOME Power Manager utilities for desktop users
|
11773
|
18 |
Version: %{gpm.version}
|
11632
|
19 |
Source: %{name}-manpages-0.1.tar.gz
|
11631
|
20 |
SUNW_BaseDir: %{_basedir}
|
11924
|
21 |
SUNW_Copyright: %{name}.copyright
|
11631
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
|
|
24 |
%include default-depend.inc
|
|
25 |
Requires: SUNWgnome-base-libs
|
|
26 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
27 |
Requires: SUNWgnome-libs
|
|
28 |
BuildRequires: SUNWgnome-libs-devel
|
|
29 |
Requires: SUNWdbus
|
|
30 |
BuildRequires: SUNWdbus-devel
|
|
31 |
Requires: SUNWdbus-bindings
|
|
32 |
BuildRequires: SUNWdbus-bindings-devel
|
|
33 |
Requires: SUNWhal
|
|
34 |
Requires: SUNWgnome-panel
|
|
35 |
BuildRequires: SUNWgnome-panel-devel
|
11736
|
36 |
Requires: SUNWgnome-media
|
|
37 |
BuildRequires: SUNWgnome-media-devel
|
11631
|
38 |
Requires: SUNWpostrun
|
13802
|
39 |
Requires: SUNWxdg-utils
|
11631
|
40 |
|
|
41 |
%package root
|
|
42 |
Summary: %{summary} - / filesystem
|
|
43 |
SUNW_BaseDir: /
|
|
44 |
%include default-depend.inc
|
11648
|
45 |
Requires: SUNWpostrun-root
|
11631
|
46 |
Requires: SUNWgnome-config
|
|
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 |
rm -rf %name-%version
|
|
58 |
mkdir %name-%version
|
|
59 |
%gpm.prep -d %name-%version
|
|
60 |
cd %{_builddir}/%name-%version
|
11632
|
61 |
gzcat %SOURCE0 | tar xf -
|
11631
|
62 |
|
|
63 |
%build
|
|
64 |
%gpm.build -d %name-%version
|
|
65 |
|
|
66 |
%install
|
|
67 |
rm -rf $RPM_BUILD_ROOT
|
|
68 |
%gpm.install -d %name-%version
|
|
69 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
70 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
71 |
|
11648
|
72 |
# Replace debian format man pages with solaris-specical man pages.
|
11631
|
73 |
rm -rf $RPM_BUILD_ROOT%{_mandir}/
|
11632
|
74 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
75 |
make install DESTDIR=$RPM_BUILD_ROOT
|
11631
|
76 |
|
11648
|
77 |
# Disable gnome-inhibit applet. Because it's unable to inhibit all suspend
|
|
78 |
# actions, e.g. some suspend actions are done by powerd daemon on Solaris.
|
11631
|
79 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/gnome-inhibit-applet
|
|
80 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome-power-manager/gpm-inhibit-test.glade
|
|
81 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
|
|
82 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
|
|
83 |
|
12962
|
84 |
# Move scripts from /usr/bin to /usr/lib/gnome-power-manager as part of libexec directory.
|
|
85 |
mkdir $RPM_BUILD_ROOT%{_libdir}/gnome-power-manager
|
|
86 |
mv $RPM_BUILD_ROOT%{_bindir}/gnome-power-*.sh $RPM_BUILD_ROOT%{_libdir}/gnome-power-manager
|
11631
|
87 |
|
|
88 |
%if %build_l10n
|
|
89 |
%else
|
|
90 |
# REMOVE l10n FILES
|
|
91 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
11793
|
92 |
rm -r $RPM_BUILD_ROOT%{_datadir}/gnome/help/gnome-power-manager/[a-z][a-z]
|
|
93 |
rm $RPM_BUILD_ROOT%{_datadir}/omf/gnome-power-manager/gnome-power-manager-[a-z][a-z].omf
|
11631
|
94 |
%endif
|
|
95 |
|
|
96 |
%clean
|
|
97 |
rm -rf $RPM_BUILD_ROOT
|
|
98 |
|
|
99 |
%post
|
11632
|
100 |
%include icon-cache.script
|
|
101 |
%include desktop-database-install.script
|
|
102 |
%include scrollkeeper-update.script
|
11631
|
103 |
|
|
104 |
%postun
|
|
105 |
test -x $BASEDIR/lib/postrun || exit 0
|
11632
|
106 |
%include desktop-database-uninstall.script
|
|
107 |
%include scrollkeeper-update.script
|
11631
|
108 |
|
|
109 |
%post root
|
11632
|
110 |
%include gconf-install.script
|
|
111 |
|
|
112 |
%preun root
|
|
113 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
114 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
115 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
11631
|
116 |
echo ' exit 0';
|
|
117 |
echo '}';
|
|
118 |
echo 'umask 0022';
|
11632
|
119 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
120 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
121 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
122 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
123 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
124 |
echo 'schemas="$SDIR/gnome-power-manager.schemas"';
|
|
125 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas > /dev/null'
|
|
126 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS_wait -a
|
11631
|
127 |
|
|
128 |
|
|
129 |
%files
|
13622
|
130 |
%doc -d gnome-power-manager-%{gpm.version} README AUTHORS
|
|
131 |
%doc(bzip2) -d gnome-power-manager-%{gpm.version} COPYING NEWS ChangeLog po/ChangeLog help/ChangeLog
|
13671
|
132 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
11631
|
133 |
%defattr (-, root, bin)
|
|
134 |
%{_bindir}/*
|
|
135 |
%{_libdir}/gnome-*-applet
|
12962
|
136 |
%{_libdir}/gnome-power-manager/gnome-power-*.sh
|
11631
|
137 |
%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
|
|
138 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
139 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
140 |
%{_datadir}/gnome/autostart/gnome-power-manager.desktop
|
11786
|
141 |
%{_datadir}/gnome/help/gnome-power-manager/C/*
|
11631
|
142 |
%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
|
|
143 |
%{_datadir}/gnome-power-manager/*
|
11774
|
144 |
%if %with_xmlto
|
|
145 |
%{_datadir}/doc/gnome-power-manager-*/*
|
|
146 |
%endif
|
11631
|
147 |
%{_datadir}/dbus-1/services/gnome-power-manager.service
|
11786
|
148 |
%{_datadir}/omf/gnome-power-manager/*-C.omf
|
11631
|
149 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
150 |
%{_datadir}/applications/gnome-power-*.desktop
|
|
151 |
%dir %attr (0755, root, other) %{_datadir}/icons
|
|
152 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/
|
|
153 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/
|
|
154 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/apps/
|
|
155 |
%{_datadir}/icons/hicolor/scalable/apps/*
|
|
156 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16
|
|
157 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/apps/
|
|
158 |
%{_datadir}/icons/hicolor/16x16/apps/*
|
|
159 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/
|
|
160 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/apps/
|
|
161 |
%{_datadir}/icons/hicolor/22x22/apps/*
|
|
162 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/
|
|
163 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps/
|
|
164 |
%{_datadir}/icons/hicolor/24x24/apps/*
|
|
165 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/
|
|
166 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps/
|
|
167 |
%{_datadir}/icons/hicolor/48x48/apps/*
|
11632
|
168 |
%{_mandir}/*/*
|
11631
|
169 |
|
|
170 |
%files root
|
11648
|
171 |
%defattr (-, root, sys)
|
11631
|
172 |
%dir %attr (0755, root, sys) %{_sysconfdir}
|
|
173 |
%{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
|
|
174 |
|
|
175 |
%if %build_l10n
|
|
176 |
%files l10n
|
|
177 |
%defattr (-, root, bin)
|
|
178 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
179 |
%attr (-, root, other) %{_datadir}/locale
|
11786
|
180 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
181 |
%{_datadir}/gnome/help/gnome-power-manager/[a-z]*/*
|
|
182 |
%{_datadir}/omf/gnome-power-manager/*-[a-z][a-z].omf
|
11631
|
183 |
%endif
|
|
184 |
|
|
185 |
%changelog
|
11924
|
186 |
* Thu Mar 27 2008 - [email protected]
|
|
187 |
- Add copyright.
|
11793
|
188 |
* Wed Mar 05 2008 - [email protected]
|
|
189 |
- Remove help file when build_l10n option is false.
|
11786
|
190 |
* Tue Mar 04 2008 - [email protected]
|
|
191 |
- Modify %files l10n entry to add l10n helps.
|
11774
|
192 |
* Mon Mar 03 2008 - [email protected]
|
|
193 |
- Add an option to build doc if xmlto is installed.
|
11773
|
194 |
* Sun Mar 02 2008 - [email protected]
|
|
195 |
- Correct package version number.
|
11736
|
196 |
* Wed Feb 27 2008 - [email protected]
|
11773
|
197 |
- Add SUNWgnome-media/-devel to dependency list
|
|
198 |
as gpm requires gstreamer.
|
11648
|
199 |
* Fri Feb 15 2008 - [email protected]
|
|
200 |
- Delete redundant statement.
|
11632
|
201 |
* Thu Feb 14 2008 - [email protected]
|
|
202 |
- Add manpage.
|
|
203 |
- Use install script.
|
|
204 |
- Correct the package name.
|
11631
|
205 |
* Thu Feb 14 2008 - [email protected]
|
11632
|
206 |
- Move to gnome spec repository from sourceforge.
|
11631
|
207 |
* Wed Dec 26 2007 - [email protected]
|
|
208 |
- Let patch gnome-power-manager-08-brightness-install.diff
|
|
209 |
do moving applets.
|
|
210 |
* Fri Dec 21 2007 - [email protected]
|
|
211 |
- Remove redundant CFLAGS and LDFLAGS.
|
|
212 |
* Mon Dec 17 2007 - [email protected]
|
|
213 |
- Move gnome-brightness-applet into /usr/lib.
|
|
214 |
* Thu Dec 12 2007 - [email protected]
|
|
215 |
- Disable gnome-inhibit-applet, remove relevant files.
|
|
216 |
* Tue Nov 27 2007 - [email protected]
|
|
217 |
- Removed man installation dir.
|
|
218 |
* Sun Nov 18 2007 - [email protected]
|
|
219 |
- Fix %files.
|
|
220 |
* Thu Nov 08 2007 - [email protected]
|
|
221 |
- Ensure doc dir is not installed
|
|
222 |
* Wed Nov 7 2007 - [email protected]
|
|
223 |
- Fix %post icon-cache.
|
|
224 |
* Thu Oct 25 2007 - [email protected]
|
|
225 |
- Delete installation files under /usr/share/docs.
|
|
226 |
* Wed Oct 17 2007 - [email protected]
|
|
227 |
- add /usr/gnu to search paths
|
|
228 |
* Wed Sep 19 2007 - [email protected]
|
|
229 |
- Fix %post/%preun typos
|
|
230 |
* Thu Aug 30 2007 - [email protected]
|
|
231 |
- Add missing doc dir
|
|
232 |
* Thu Mar 29 2007 - [email protected]
|
|
233 |
- Include l10n files.
|
|
234 |
* Tue Mar 27 2007 - [email protected]
|
|
235 |
- Create
|