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