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