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