author | laca |
Wed, 22 Oct 2008 03:25:32 +0000 | |
branch | opensolaris-2008-11 |
changeset 14363 | 2a7a35a50343 |
parent 13608 | 6b7adfb8c74b |
child 13881 | ff824706c964 |
child 14478 | 06bc38f547d5 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-session |
|
3 |
# |
|
4 |
# includes module(s): gnome-session |
|
5 |
# |
|
11370 | 6 |
# Copyright 2008 Sun Microsystems, Inc. |
9397 | 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: niall |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%define with_hal %(pkginfo -q SUNWhal && echo 1 || echo 0) |
|
15 |
||
16 |
%use gsession = gnome-session.spec |
|
17 |
||
18 |
Name: SUNWgnome-session |
|
19 |
Summary: GNOME session manager |
|
20 |
Version: %{default_pkg_version} |
|
21 |
Source: %{name}-manpages-0.1.tar.gz |
|
22 |
SUNW_BaseDir: %{_basedir} |
|
12021 | 23 |
SUNW_Copyright: %{name}.copyright |
9397 | 24 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
25 |
||
26 |
%include default-depend.inc |
|
27 |
Requires: SUNWgnome-vfs-root |
|
28 |
Requires: SUNWgnome-libs |
|
29 |
Requires: SUNWgnome-config |
|
30 |
Requires: SUNWgnome-component |
|
31 |
Requires: SUNWgnome-panel |
|
32 |
Requires: SUNWperl584usr |
|
33 |
Requires: SUNWbzip |
|
34 |
Requires: SUNWzlib |
|
35 |
Requires: SUNWlxml |
|
36 |
Requires: SUNWgnome-audio |
|
37 |
Requires: SUNWgnome-base-libs |
|
38 |
Requires: SUNWpostrun |
|
39 |
Requires: SUNWgnome-desktop-prefs |
|
13408 | 40 |
Requires: SUNWgnome-wm |
9397 | 41 |
BuildRequires: SUNWgnome-audio-devel |
42 |
BuildRequires: SUNWgnome-base-libs-devel |
|
43 |
BuildRequires: SUNWgnome-vfs-devel |
|
44 |
BuildRequires: SUNWgnome-libs-devel |
|
45 |
BuildRequires: SUNWgnome-config-devel |
|
46 |
BuildRequires: SUNWgnome-component-devel |
|
47 |
BuildRequires: SUNWgnome-panel-devel |
|
48 |
BuildRequires: SUNWgnome-desktop-prefs-devel |
|
49 |
||
50 |
%package root |
|
51 |
Summary: %{summary} - / filesystem |
|
52 |
SUNW_BaseDir: / |
|
53 |
%include default-depend.inc |
|
54 |
Requires: SUNWpostrun-root |
|
55 |
Requires: SUNWgnome-config |
|
56 |
||
57 |
%if %build_l10n |
|
58 |
%package l10n |
|
59 |
Summary: %{summary} - l10n files |
|
60 |
SUNW_BaseDir: %{_basedir} |
|
61 |
%include default-depend.inc |
|
62 |
Requires: %{name} |
|
63 |
%endif |
|
64 |
||
65 |
%prep |
|
66 |
rm -rf %name-%version |
|
67 |
mkdir %name-%version |
|
68 |
%gsession.prep -d %name-%version |
|
69 |
cd %{_builddir}/%name-%version |
|
70 |
gzcat %SOURCE0 | tar xf - |
|
71 |
||
72 |
%build |
|
73 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
13127 | 74 |
export LDFLAGS="%_ldflags -L/usr/X11/lib -R/usr/X11/lib -L/usr/sfw/lib -R/usr/sfw/lib -L/usr/openwin/lib -R/usr/openwin/lib" |
9397 | 75 |
export CFLAGS="%optflags -I/usr/X11/include" |
76 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
77 |
||
78 |
%gsession.build -d %name-%version |
|
79 |
||
80 |
%install |
|
81 |
rm -rf $RPM_BUILD_ROOT |
|
82 |
%gsession.install -d %name-%version |
|
83 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
84 |
cd %{_builddir}/%name-%version/sun-manpages |
|
85 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
86 |
||
87 |
rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/splash/flash.gif |
|
13437 | 88 |
#install -d $RPM_BUILD_ROOT%{_datadir}/autostart |
9397 | 89 |
|
90 |
%if %build_l10n |
|
91 |
%else |
|
92 |
# REMOVE l10n FILES |
|
93 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
94 |
%endif |
|
95 |
||
96 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
97 |
||
98 |
%clean |
|
99 |
rm -rf $RPM_BUILD_ROOT |
|
100 |
||
101 |
%post |
|
102 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
103 |
echo '/usr/bin/update-desktop-database' |
|
104 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait |
|
105 |
||
106 |
%postun |
|
107 |
test -x $BASEDIR/lib/postrun || exit 0 |
|
108 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0'; |
|
109 |
echo '/usr/bin/update-desktop-database' |
|
110 |
) | $BASEDIR/lib/postrun -b -u -c JDS |
|
111 |
||
112 |
%post root |
|
11370 | 113 |
%include gconf-install.script |
9397 | 114 |
|
115 |
%preun root |
|
116 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0 |
|
117 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; |
|
118 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; |
|
119 |
echo ' exit 0'; |
|
120 |
echo '}'; |
|
121 |
echo 'umask 0022'; |
|
122 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; |
|
123 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; |
|
124 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; |
|
125 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; |
|
126 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; |
|
127 |
echo 'schemas="$SDIR/gnome-session.schemas"'; |
|
128 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' |
|
129 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a |
|
130 |
||
131 |
||
132 |
%files |
|
13590 | 133 |
%doc -d gnome-session-%{gsession.version} README AUTHORS |
134 |
%doc(bzip2) -d gnome-session-%{gsession.version} COPYING NEWS ChangeLog |
|
135 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 136 |
%defattr (-, root, bin) |
137 |
%dir %attr (0755, root, bin) %{_bindir} |
|
138 |
%{_bindir}/* |
|
12701 | 139 |
%dir %attr (0755, root, bin) %{_libdir} |
140 |
%{_libdir}/gnome-session/helpers/* |
|
9397 | 141 |
%dir %attr (0755, root, sys) %{_datadir} |
142 |
%dir %attr (0755, root, other) %{_datadir}/applications |
|
143 |
%{_datadir}/applications/* |
|
144 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
|
145 |
%{_datadir}/gnome/* |
|
12701 | 146 |
%dir %attr (0755, root, other) %{_datadir}/gnome-session |
147 |
%{_datadir}/gnome-session/* |
|
13169 | 148 |
%dir %attr (-, root, other) %{_datadir}/icons |
149 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor |
|
150 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16 |
|
151 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps |
|
152 |
%{_datadir}/icons/hicolor/16x16/apps/session-properties*.png |
|
153 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22 |
|
154 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps |
|
155 |
%{_datadir}/icons/hicolor/22x22/apps/session-properties*.png |
|
156 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24 |
|
157 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps |
|
158 |
%{_datadir}/icons/hicolor/24x24/apps/session-properties*.png |
|
159 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32 |
|
160 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps |
|
161 |
%{_datadir}/icons/hicolor/32x32/apps/session-properties*.png |
|
162 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable |
|
163 |
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps |
|
164 |
%{_datadir}/icons/hicolor/scalable/apps/session-properties.svg |
|
9397 | 165 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
166 |
%{_datadir}/pixmaps/* |
|
11478 | 167 |
%{_datadir}/xsessions |
13437 | 168 |
#%attr (0755, root, sys) %{_datadir}/autostart |
9397 | 169 |
%dir %attr(0755, root, bin) %{_mandir} |
170 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
171 |
%{_mandir}/man1/* |
|
172 |
||
173 |
%files root |
|
9780 | 174 |
%defattr (-, root, sys) |
9397 | 175 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
176 |
%{_sysconfdir}/gconf/schemas/gnome-session.schemas |
|
177 |
||
178 |
%if %build_l10n |
|
179 |
%files l10n |
|
180 |
%defattr (-, root, bin) |
|
181 |
%dir %attr (0755, root, sys) %{_datadir} |
|
182 |
%attr (-, root, other) %{_datadir}/locale |
|
183 |
%endif |
|
184 |
||
185 |
%changelog |
|
13437 | 186 |
* Mon Sep 08 2008 - [email protected] |
187 |
- Removed ${_datadir}/autostart which is not being used according to spec. |
|
188 |
since autostart for GNOME is under ${_datadir}/gnome/autostart. |
|
13169 | 189 |
* Tue Aug 19 2008 - [email protected] |
190 |
- Add %attr (-, root, other) for subfolders under %{_datadir}/icons, this |
|
191 |
will resolve install conflict issue. |
|
12892
fea5dbe7e10e
* SUNWgnome-session.spec : Remove reference to man5 in %files as
mattman
parents:
12701
diff
changeset
|
192 |
* Wed Jul 23 2008 - [email protected] |
fea5dbe7e10e
* SUNWgnome-session.spec : Remove reference to man5 in %files as
mattman
parents:
12701
diff
changeset
|
193 |
- Remove man5 from %files, default.session.5 removed from gnome-session |
12701 | 194 |
* Thu Jun 19 2008 - [email protected] |
195 |
- Add %{_libdir}/gnome-session/helpers for 2.23.4 tarball. |
|
196 |
- Add %{_datadir}/gnome-session fpr 2.23.4 tarball. |
|
11478 | 197 |
* Thu Jan 17 2008 - [email protected] |
198 |
- Add %{_datadir}/xsessions to %files for 2.21.5 tarball. |
|
11370 | 199 |
* Thu Jan 3 2008 - [email protected] |
200 |
- use gconf-install.script instead of an inline script |
|
10572 | 201 |
* Fri Sep 28 2007 - [email protected] |
202 |
- delete Nevada X deps |
|
203 |
- delete some unneeded env vars |
|
9998 | 204 |
* Wed Jun 06 2007 - [email protected] |
205 |
- remove %if %with_hal section because it is useless. |
|
9780 | 206 |
* Tue Apr 24 2007 - [email protected] |
207 |
- s/0755/-/ in defattr so that files are not made all executable |
|
9397 | 208 |
* Sun Jan 28 2007 - add /usr/openwin/lib to library search path, needed |
209 |
for libXau on s10 |
|
210 |
* Mon Jan 22 2007 - [email protected] |
|
211 |
- Add %{_datadir}/icons to %files for new gnome-session tarball. |
|
212 |
* Tue Oct 31 2006 - [email protected] |
|
213 |
- Added l10n package. Fixes 6488189. |
|
214 |
* Mon Oct 30 2006 - [email protected] |
|
215 |
- move patch gnome-session-01-gnome-volcheck-default-session.diff |
|
216 |
to ../patches/ |
|
217 |
* Mon Sep 04 2006 - [email protected] |
|
218 |
- New Manpage tarball |
|
219 |
* Fri Jul 26 2006 - [email protected] |
|
220 |
- Only apply the gnome-volcheck-default-session.diff patch if HAL is not |
|
221 |
present on the system. |
|
222 |
* Fri Jul 28 2006 - [email protected] |
|
223 |
- Remove l10n pkg as nothing installed. |
|
224 |
* Wed Jul 26 2006 - [email protected] |
|
225 |
- Add Build/Requires SUNWgnome-desktop-prefs/-devel for gnome-settings-daemon. |
|
226 |
* Fri Jul 14 2006 - [email protected] |
|
227 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
228 |
part of 6448317 |
|
229 |
* Thu Jun 29 2006 - [email protected] |
|
230 |
- update postrun scripts |
|
231 |
* Fri Jun 23 2006 - [email protected] |
|
232 |
- Removed gnome-smproxy manpage because it is no longer needed |
|
233 |
* Sun Jun 11 2006 - [email protected] |
|
234 |
- change group from other to bin/sys |
|
235 |
* Thu May 25 2006 - [email protected] |
|
236 |
- use post/preun scripts to install schemas into the merged gconf files |
|
237 |
* Fri May 12 2006 - [email protected] |
|
238 |
- Add dummy autostart location so that we at least have it on the |
|
239 |
system if people want to use it. |
|
240 |
* Wed May 10 2006 - [email protected] |
|
241 |
- merge -share pkg(s) into the base pkg(s) |
|
242 |
* Mon Feb 20 2006 - [email protected] |
|
243 |
- Update Build/Requires after running check-deps.pl script. |
|
244 |
* Tue Feb 14 2006 - [email protected] |
|
245 |
- Add Build/Requires SUNWgnome-panel/-devel for gnome-desktop. |
|
246 |
* Fri Feb 10 2006 - [email protected] |
|
247 |
- Added BuildRequires lines to ensure it is built in the correct order. |
|
248 |
* Sat Dec 3 2005 - [email protected] |
|
249 |
- add %post script that runs update-desktop-database |
|
250 |
* Thu May 19 2005 - [email protected] |
|
251 |
- Update to 2.10 and fix packaging. |
|
252 |
* Tue Nov 16 2004 - [email protected] |
|
253 |
- merged devel-share into share (included default.session(5) only) |
|
254 |
* Sat Oct 02 2004 - [email protected] |
|
255 |
- added %pkgbuild_postprocess |
|
256 |
* Sat Sep 11 2004 - [email protected] |
|
257 |
- Set LDFLAGS so Xrandr and Xrender can be found. |
|
258 |
* Thu Sep 09 2004 - [email protected] |
|
259 |
- Added gnome-session-remove.1 manpage |
|
260 |
* Mon Aug 30 2004 - [email protected] |
|
261 |
- Bug 5091588 : include files should be in a separate devel package |
|
262 |
* Mon Aug 23 2004 - [email protected] |
|
263 |
- s/SUNWpl5u/SUNWperl584usr/ |
|
264 |
* Wed Aug 18 2004 [email protected] |
|
265 |
- Change manpage perms for Solaris integration. |
|
266 |
* Sat Jun 26 2004 [email protected] |
|
267 |
- Changed install location to /usr/... |
|
268 |
* Wed Jun 2 2004 - [email protected] |
|
269 |
- Added %{_datadir}/locale to install l10n messages |
|
270 |
* Fri Mar 28 2004 - [email protected] |
|
271 |
- Removed flash.gif from distribution |
|
272 |
* Wed Mar 24 2004 - [email protected] |
|
273 |
- Added SGML man page integration |
|
274 |
* Thu Mar 04 2004 - <[email protected]> |
|
275 |
- fix 2 more gconf clashes |
|
276 |
* Sat Feb 28 2004 - <[email protected]> |
|
277 |
- fix gconf dir permissions (a+rX) |
|
278 |
- remove clashing gconf.xml file |
|
279 |
* Mon Feb 23 2004 - <[email protected]> |
|
280 |
- install gconf schemas at end of install stage. |