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