11631
|
1 |
#
|
|
2 |
# spec file for package SFEgnome-power-manager
|
|
3 |
#
|
|
4 |
# includes module(s): gnome-power-manager
|
|
5 |
#
|
|
6 |
%include Solaris.inc
|
|
7 |
%use gpm = gnome-power-manager.spec
|
|
8 |
|
|
9 |
Name: SFEgnome-power-manager
|
|
10 |
Summary: GNOME Power Manager
|
|
11 |
Version: %{default_pkg_version}
|
|
12 |
SUNW_BaseDir: %{_basedir}
|
|
13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
14 |
|
|
15 |
%include default-depend.inc
|
|
16 |
Requires: SUNWgnome-base-libs
|
|
17 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
18 |
Requires: SUNWgnome-libs
|
|
19 |
BuildRequires: SUNWgnome-libs-devel
|
|
20 |
Requires: SUNWdbus
|
|
21 |
BuildRequires: SUNWdbus-devel
|
|
22 |
Requires: SUNWdbus-bindings
|
|
23 |
BuildRequires: SUNWdbus-bindings-devel
|
|
24 |
Requires: SUNWhal
|
|
25 |
Requires: SUNWgnome-panel
|
|
26 |
BuildRequires: SUNWgnome-panel-devel
|
|
27 |
Requires: SUNWpostrun
|
|
28 |
|
|
29 |
%package root
|
|
30 |
Summary: %{summary} - / filesystem
|
|
31 |
SUNW_BaseDir: /
|
|
32 |
%include default-depend.inc
|
|
33 |
Requires: SUNWpostrun
|
|
34 |
Requires: SUNWgnome-config
|
|
35 |
|
|
36 |
%if %build_l10n
|
|
37 |
%package l10n
|
|
38 |
Summary: %{summary} - l10n files
|
|
39 |
SUNW_BaseDir: %{_basedir}
|
|
40 |
%include default-depend.inc
|
|
41 |
Requires: %{name}
|
|
42 |
%endif
|
|
43 |
|
|
44 |
%prep
|
|
45 |
rm -rf %name-%version
|
|
46 |
mkdir %name-%version
|
|
47 |
%gpm.prep -d %name-%version
|
|
48 |
cd %{_builddir}/%name-%version
|
|
49 |
|
|
50 |
%build
|
|
51 |
%gpm.build -d %name-%version
|
|
52 |
|
|
53 |
%install
|
|
54 |
rm -rf $RPM_BUILD_ROOT
|
|
55 |
%gpm.install -d %name-%version
|
|
56 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
57 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
58 |
|
|
59 |
# Delete scrollkeeper files, man & doc dir
|
|
60 |
rm -rf $RPM_BUILD_ROOT/var
|
|
61 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
|
|
62 |
rm -rf $RPM_BUILD_ROOT%{_mandir}/
|
|
63 |
|
|
64 |
# Remove gnome-inhibit
|
|
65 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/gnome-inhibit-applet
|
|
66 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome-power-manager/gpm-inhibit-test.glade
|
|
67 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
|
|
68 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/bonobo/servers/GNOME_InhibitApplet.server
|
|
69 |
|
|
70 |
# Move scripts from /usr/bin to /usr/lib
|
|
71 |
mv $RPM_BUILD_ROOT%{_bindir}/gnome-power-*.sh $RPM_BUILD_ROOT%{_libdir}/
|
|
72 |
|
|
73 |
%if %build_l10n
|
|
74 |
%else
|
|
75 |
# REMOVE l10n FILES
|
|
76 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
77 |
%endif
|
|
78 |
|
|
79 |
%clean
|
|
80 |
rm -rf $RPM_BUILD_ROOT
|
|
81 |
|
|
82 |
%post
|
|
83 |
( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
|
|
84 |
echo 'rm -f %{_datadir}/icons/*/icon-theme.cache';
|
|
85 |
echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
|
|
86 |
) | $BASEDIR/lib/postrun -b -u -t 5 -c JDS
|
|
87 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
88 |
echo '/usr/bin/update-desktop-database'
|
|
89 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
90 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
91 |
echo '/usr/bin/scrollkeeper-update'
|
|
92 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
93 |
|
|
94 |
%postun
|
|
95 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
96 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
97 |
echo '/usr/bin/update-desktop-database'
|
|
98 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
99 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
100 |
echo '/usr/bin/scrollkeeper-update'
|
|
101 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
102 |
|
|
103 |
%post root
|
|
104 |
( echo 'test -x /usr/bin/gconftool-2 || {';
|
|
105 |
echo ' echo "ERROR: gconftool-2 not found"';
|
|
106 |
echo ' echo "ERROR: gconftool-2 not found"';
|
|
107 |
echo ' exit 0';
|
|
108 |
echo '}';
|
|
109 |
echo 'umask 0022';
|
|
110 |
echo "GCONF_CONFIG_SOURCE=xml:merged:%{_sysconfdir}/gconf/gconf.xml.defaults";
|
|
111 |
echo 'export GCONF_CONFIG_SOURCE';
|
|
112 |
echo "SDIR=%{_sysconfdir}/gconf/schemas";
|
|
113 |
echo '/usr/bin/gconftool-2 --makefile-install-rule $SDIR/gnome-power-manager.schemas'
|
|
114 |
) | $PKG_INSTALL_ROOT/usr/lib/postrun
|
|
115 |
|
|
116 |
%preun root
|
|
117 |
( echo 'test -x /usr/bin/gconftool-2 || {';
|
|
118 |
echo ' echo "ERROR: gconftool-2 not found"';
|
|
119 |
echo ' exit 0';
|
|
120 |
echo '}';
|
|
121 |
echo 'umask 0022';
|
|
122 |
echo "GCONF_CONFIG_SOURCE=xml:merged:%{_sysconfdir}/gconf/gconf.xml.defaults";
|
|
123 |
echo 'export GCONF_CONFIG_SOURCE';
|
|
124 |
echo "SDIR=%{_sysconfdir}/gconf/schemas";
|
|
125 |
echo '/usr/bin/gconftool-2 --makefile-uninstall-rule $SDIR/gnome-power-manager.schemas'
|
|
126 |
) | $PKG_INSTALL_ROOT/usr/lib/postrun
|
|
127 |
|
|
128 |
|
|
129 |
%files
|
|
130 |
%defattr (-, root, bin)
|
|
131 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
132 |
%{_bindir}/*
|
|
133 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
134 |
%{_libdir}/gnome-power-*.sh
|
|
135 |
%{_libdir}/gnome-*-applet
|
|
136 |
%dir %attr (0755, root, bin) %{_libdir}/bonobo
|
|
137 |
%dir %attr (0755, root, bin) %{_libdir}/bonobo/servers
|
|
138 |
%{_libdir}/bonobo/servers/GNOME_BrightnessApplet.server
|
|
139 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
140 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
141 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/autostart
|
|
142 |
%{_datadir}/gnome/autostart/gnome-power-manager.desktop
|
|
143 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help
|
|
144 |
%dir %attr (0755, root, bin) %{_datadir}/gnome/help/gnome-power-manager
|
|
145 |
%{_datadir}/gnome/help/gnome-power-manager/*/*
|
|
146 |
%dir %attr (0755, root, bin) %{_datadir}/gnome-2.0
|
|
147 |
%dir %attr (0755, root, bin) %{_datadir}/gnome-2.0/ui
|
|
148 |
%{_datadir}/gnome-2.0/ui/GNOME_BrightnessApplet.xml
|
|
149 |
%dir %attr (0755, root, bin) %{_datadir}/gnome-power-manager
|
|
150 |
%{_datadir}/gnome-power-manager/*
|
|
151 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1
|
|
152 |
%dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
|
|
153 |
%{_datadir}/dbus-1/services/gnome-power-manager.service
|
|
154 |
%dir %attr (0755, root, bin) %{_datadir}/omf/
|
|
155 |
%dir %attr (0755, root, bin) %{_datadir}/omf/gnome-power-manager
|
|
156 |
%{_datadir}/omf/gnome-power-manager/*
|
|
157 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
158 |
%{_datadir}/applications/gnome-power-*.desktop
|
|
159 |
%dir %attr (0755, root, other) %{_datadir}/icons
|
|
160 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/
|
|
161 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/
|
|
162 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/apps/
|
|
163 |
%{_datadir}/icons/hicolor/scalable/apps/*
|
|
164 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16
|
|
165 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/apps/
|
|
166 |
%{_datadir}/icons/hicolor/16x16/apps/*
|
|
167 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/
|
|
168 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/apps/
|
|
169 |
%{_datadir}/icons/hicolor/22x22/apps/*
|
|
170 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/
|
|
171 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps/
|
|
172 |
%{_datadir}/icons/hicolor/24x24/apps/*
|
|
173 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/
|
|
174 |
%dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps/
|
|
175 |
%{_datadir}/icons/hicolor/48x48/apps/*
|
|
176 |
|
|
177 |
|
|
178 |
%files root
|
|
179 |
%defattr (0755, root, sys)
|
|
180 |
%dir %attr (0755, root, sys) %{_sysconfdir}
|
|
181 |
%{_sysconfdir}/gconf/schemas/gnome-power-manager.schemas
|
|
182 |
|
|
183 |
%if %build_l10n
|
|
184 |
%files l10n
|
|
185 |
%defattr (-, root, bin)
|
|
186 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
187 |
%attr (-, root, other) %{_datadir}/locale
|
|
188 |
%endif
|
|
189 |
|
|
190 |
%changelog
|
|
191 |
* Thu Feb 14 2008 - [email protected]
|
|
192 |
Move to gnome spec repository from sourceforge.
|
|
193 |
* Wed Dec 26 2007 - [email protected]
|
|
194 |
- Let patch gnome-power-manager-08-brightness-install.diff
|
|
195 |
do moving applets.
|
|
196 |
* Fri Dec 21 2007 - [email protected]
|
|
197 |
- Remove redundant CFLAGS and LDFLAGS.
|
|
198 |
* Mon Dec 17 2007 - [email protected]
|
|
199 |
- Move gnome-brightness-applet into /usr/lib.
|
|
200 |
* Thu Dec 12 2007 - [email protected]
|
|
201 |
- Disable gnome-inhibit-applet, remove relevant files.
|
|
202 |
* Tue Nov 27 2007 - [email protected]
|
|
203 |
- Removed man installation dir.
|
|
204 |
* Sun Nov 18 2007 - [email protected]
|
|
205 |
- Fix %files.
|
|
206 |
* Thu Nov 08 2007 - [email protected]
|
|
207 |
- Ensure doc dir is not installed
|
|
208 |
* Wed Nov 7 2007 - [email protected]
|
|
209 |
- Fix %post icon-cache.
|
|
210 |
* Thu Oct 25 2007 - [email protected]
|
|
211 |
- Delete installation files under /usr/share/docs.
|
|
212 |
* Wed Oct 17 2007 - [email protected]
|
|
213 |
- add /usr/gnu to search paths
|
|
214 |
* Wed Sep 19 2007 - [email protected]
|
|
215 |
- Fix %post/%preun typos
|
|
216 |
* Thu Aug 30 2007 - [email protected]
|
|
217 |
- Add missing doc dir
|
|
218 |
* Thu Mar 29 2007 - [email protected]
|
|
219 |
- Include l10n files.
|
|
220 |
* Tue Mar 27 2007 - [email protected]
|
|
221 |
- Create
|