author | davelam |
Sat, 18 Apr 2009 12:26:03 +0000 | |
changeset 15650 | dbcf7e3715dd |
parent 15556 | 79756053d7da |
child 16085 | 2be11084a20b |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-wm |
|
3 |
# |
|
4 |
# includes module(s): metacity |
|
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 |
# |
|
10 |
# Owner: erwannc |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
||
14 |
%use metacity = metacity.spec |
|
15 |
||
16 |
Name: SUNWgnome-wm |
|
17 |
Summary: GNOME window manager |
|
18 |
Version: %{default_pkg_version} |
|
19 |
Source: %{name}-manpages-0.1.tar.gz |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
12042 | 21 |
SUNW_Copyright: %{name}.copyright |
9397 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
||
24 |
%include default-depend.inc |
|
15650 | 25 |
BuildRequires: SUNWgtk2-devel |
9397 | 26 |
BuildRequires: SUNWxorg-headers |
27 |
BuildRequires: SUNWgnome-libs-devel |
|
28 |
BuildRequires: SUNWgnome-config-devel |
|
15133
f3ee596fa947
Add BuildRequires: SUNWgnome-dialog as it requires zenity.
davelam
parents:
14758
diff
changeset
|
29 |
BuildRequires: SUNWgnome-dialog |
15650 | 30 |
Requires: SUNWxorg-clientlibs |
31 |
Requires: SUNWgtk2 |
|
9397 | 32 |
Requires: SUNWgnome-wm-root |
33 |
Requires: SUNWgnome-libs |
|
34 |
Requires: SUNWgnome-config |
|
15556 | 35 |
Requires: SUNWpostrun |
9397 | 36 |
Requires: SUNWbzip |
37 |
Requires: SUNWzlib |
|
38 |
Requires: SUNWlxml |
|
39 |
Requires: SUNWlibms |
|
15556 | 40 |
Requires: SUNWdesktop-cache |
9397 | 41 |
|
42 |
%package root |
|
43 |
Summary: %{summary} - / filesystem |
|
44 |
SUNW_BaseDir: / |
|
45 |
%include default-depend.inc |
|
46 |
||
47 |
%package devel |
|
48 |
Summary: %{summary} - development files |
|
49 |
SUNW_BaseDir: %{_basedir} |
|
50 |
%include default-depend.inc |
|
10569 | 51 |
Requires: %{name} |
15650 | 52 |
Requires: SUNWgtk2-devel |
9397 | 53 |
|
54 |
%if %build_l10n |
|
55 |
%package l10n |
|
56 |
Summary: %{summary} - l10n files |
|
57 |
SUNW_BaseDir: %{_basedir} |
|
58 |
%include default-depend.inc |
|
59 |
Requires: %{name} |
|
60 |
%endif |
|
61 |
||
62 |
%prep |
|
63 |
rm -rf %name-%version |
|
64 |
mkdir %name-%version |
|
65 |
%metacity.prep -d %name-%version |
|
66 |
cd %{_builddir}/%name-%version |
|
67 |
gzcat %SOURCE0 | tar xf - |
|
68 |
||
69 |
%build |
|
70 |
export CFLAGS="%optflags -I/usr/sfw/include -I/usr/X11/include -I/usr/sfw/include/freetype2 -DANSICPP" |
|
71 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
72 |
export LDFLAGS="%_ldflags -L/usr/X11/lib -R/usr/X11/lib -L/usr/sfw/lib -R/usr/sfw/lib -lXrender" |
|
73 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
74 |
||
75 |
%metacity.build -d %name-%version |
|
76 |
||
77 |
%install |
|
78 |
rm -rf $RPM_BUILD_ROOT |
|
79 |
%metacity.install -d %name-%version |
|
80 |
||
81 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
82 |
cd %{_builddir}/%name-%version/sun-manpages |
|
83 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
84 |
||
85 |
# Move demo to demo directory. |
|
86 |
# |
|
87 |
install -d $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin |
|
88 |
mv $RPM_BUILD_ROOT%{_bindir}/metacity-window-demo $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin/metacity-window-demo |
|
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 |
|
15556 | 102 |
%restart_fmri desktop-mime-cache gconf-cache |
9397 | 103 |
%ifarch sparc |
104 |
( echo 'test -x /usr/bin/gconftool-2 || {'; |
|
105 |
echo ' echo "ERROR: gconftool-2 not found"'; |
|
106 |
echo ' exit 0'; |
|
107 |
echo '}'; |
|
108 |
echo 'umask 0022'; |
|
109 |
echo "GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults"; |
|
110 |
echo 'export GCONF_CONFIG_SOURCE'; |
|
111 |
echo "SDIR=%{_sysconfdir}/gconf/schemas"; |
|
112 |
echo '/usr/bin/gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE -t bool -s /apps/metacity/general/reduced_resources true' |
|
15556 | 113 |
) | $BASEDIR/lib/postrun -c JDS |
9397 | 114 |
%endif |
115 |
||
15556 | 116 |
%postun |
117 |
%restart_fmri desktop-mime-cache |
|
9397 | 118 |
|
119 |
%files |
|
13609 | 120 |
%doc -d metacity-%{metacity.version} README AUTHORS MAINTAINERS |
121 |
%doc(bzip2) -d metacity-%{metacity.version} NEWS COPYING ChangeLog |
|
122 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 123 |
%defattr (-, root, bin) |
124 |
%dir %attr (0755, root, bin) %{_bindir} |
|
125 |
%{_bindir}/* |
|
126 |
%dir %attr (0755, root, bin) %{_libdir} |
|
127 |
%{_libdir}/lib*.so* |
|
128 |
%{_libexecdir}/metacity-dialog |
|
129 |
%dir %attr (0755, root, sys) %{_datadir} |
|
13412 | 130 |
%dir %attr (0755, root, other) %{_datadir}/applications |
13723 | 131 |
%dir %attr (0755, root, other) %{_datadir}/gnome |
132 |
%dir %attr(0755, root, bin) %{_datadir}/gnome/wm-properties |
|
13412 | 133 |
%{_datadir}/applications/* |
13723 | 134 |
%{_datadir}/gnome/wm-properties/* |
14755 | 135 |
%{_datadir}/gnome/help/* |
9397 | 136 |
%{_datadir}/metacity/icons |
137 |
%{_datadir}/themes |
|
10288 | 138 |
%{_datadir}/gnome-control-center/keybindings |
9397 | 139 |
%dir %attr(0755, root, bin) %{_mandir} |
140 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
141 |
%{_mandir}/*/* |
|
142 |
||
143 |
%files devel |
|
144 |
%defattr (-, root, bin) |
|
145 |
%dir %attr (0755, root, bin) %{_includedir} |
|
146 |
%{_includedir}/* |
|
147 |
%dir %attr (0755, root, bin) %{_libdir} |
|
148 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
149 |
%{_libdir}/pkgconfig/* |
|
150 |
%{_prefix}/demo/jds/bin/metacity-window-demo |
|
151 |
||
152 |
%files root |
|
153 |
%defattr (-, root, sys) |
|
154 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
155 |
%{_sysconfdir}/gconf/schemas/metacity.schemas |
|
156 |
||
157 |
%if %build_l10n |
|
158 |
%files l10n |
|
159 |
%defattr (-, root, bin) |
|
160 |
%dir %attr (0755, root, sys) %{_datadir} |
|
161 |
%attr (-, root, other) %{_datadir}/locale |
|
162 |
%endif |
|
163 |
||
164 |
%changelog |
|
15556 | 165 |
* Fri Apr 3 2009 - [email protected] |
166 |
- use desktop-cache instead of postrun |
|
15133
f3ee596fa947
Add BuildRequires: SUNWgnome-dialog as it requires zenity.
davelam
parents:
14758
diff
changeset
|
167 |
* Wed Feb 18 2009 - [email protected] |
f3ee596fa947
Add BuildRequires: SUNWgnome-dialog as it requires zenity.
davelam
parents:
14758
diff
changeset
|
168 |
- Add BuildRequires: SUNWgnome-dialog as it requires zenity. |
14758 | 169 |
* Fri Dec 12 2008 - [email protected] |
170 |
- Fix gnome/help attribute issue. |
|
13412 | 171 |
* Thu Sep 02 2008 - [email protected] |
172 |
- Unbump to 2.23.377, reworked patch 8. |
|
11370 | 173 |
* Thu Jan 3 2008 - [email protected] |
174 |
- use gconf-install.script instead of an inline script |
|
10569 | 175 |
* Fri Sep 28 2007 - [email protected] |
176 |
- delete SUNWxwrtl and SUNWxorg-clientlibs deps |
|
177 |
- delete some unnecessary env variables |
|
10288 | 178 |
* Tue Aug 07 2007 - [email protected] |
179 |
- Updated for %files for new tarball - change %{_datadir}/control-center to |
|
180 |
%{_datadir}/gnome-control-center. |
|
9891 | 181 |
* Mon May 14 2007 - [email protected] |
182 |
- Added new dir in %files |
|
9397 | 183 |
* Mon Sep 04 2006 - [email protected] |
184 |
- New Manpage tarball |
|
185 |
* Fri Jul 14 2006 - [email protected] |
|
186 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
187 |
part of 6448317 |
|
188 |
* Thu Jun 29 2006 - [email protected] |
|
189 |
- update postrun scripts |
|
190 |
* Sun Jun 11 2006 - [email protected] |
|
191 |
- change group from other to bin/sys |
|
192 |
* Thu May 25 2006 - [email protected] |
|
193 |
- use post/preun scripts to install schemas into the merged gconf files |
|
194 |
* Fri May 12 2006 - [email protected] |
|
195 |
- Small update to dependency list after check-deps.pl run. |
|
196 |
* Thu May 11 2006 - [email protected] |
|
197 |
- Move metacity-window-demo to /usr/share/jds/bin and no longer include |
|
198 |
the useless manpage. |
|
199 |
* Wed May 10 2006 - [email protected] |
|
200 |
- merge -share pkg(s) into the base pkg(s) |
|
201 |
* Fri Feb 17 2006 - [email protected] |
|
202 |
- Update Build/Requires after running check-deps.pl script. |
|
203 |
* Sat Dec 3 2005 - [email protected] |
|
204 |
- add %post script that runs update-desktop-database |
|
205 |
* Thu Jun 02 2005 - [email protected] |
|
206 |
- Install l10n package last since it fails when building |
|
207 |
outside of the official build. |
|
208 |
* Thu May 19 2005 - [email protected] |
|
209 |
- Update to 2.10 and fix packaging. |
|
210 |
* Wed Nov 10 2004 - [email protected] |
|
211 |
- Set reduced_resource key to true on sparc m/c's |
|
212 |
* Fri Oct 08 2004 - [email protected] |
|
213 |
- Added patch metacity-02-enable-Sun-keys-Open-Front.diff. |
|
214 |
Fixes bug 5103120. |
|
215 |
* Sat Oct 02 2004 - [email protected] |
|
216 |
- added %pkgbuild_postprocess |
|
217 |
* Sat Sep 11 2004 - [email protected] |
|
218 |
- Set LDFLAGS so Xrandr and Xrender can be found. |
|
219 |
* Thu Sep 09 2004 - [email protected] |
|
220 |
- Added metacity-message.1, metacity-window-demo.1 manpages |
|
221 |
* Thu Aug 26 2004 - [email protected] |
|
222 |
- Added patch to use sdtprocess instead of gnome-system-monitor. |
|
223 |
* Wed Aug 18 2004 - [email protected] |
|
224 |
- Change manpage perms for Solaris integration. |
|
225 |
* Sat Jun 26 2004 [email protected] |
|
226 |
- Changed install location to /usr/... |
|
227 |
* Wed Jun 2 2004 - [email protected] |
|
228 |
- Added %{_datadir}/locale to install l10n messages |
|
229 |
* Wed Mar 24 2004 - [email protected] |
|
230 |
- Added SGML man page integration |
|
231 |
* Mon Mar 01 2004 - <[email protected]> |
|
232 |
- remove dependencies on SUNWgnome-libs-share and root |
|
233 |
* Thu Feb 26 2004 - <[email protected]> |
|
234 |
- set PERL5LIB for XML::Parser |
|
235 |
* Mon Feb 22 2004 - <[email protected]> |
|
236 |
- install gconf schemas at end of install stage. |
|
237 |
- make clean stage clean stuff up. |
|
15650 | 238 |