author | davelam |
Wed, 24 Feb 2010 04:10:23 +0000 | |
branch | gnome-2-28 |
changeset 18642 | 478b5460cc36 |
parent 18484 | 3b6334cb0ec1 |
child 17162 | bf0efb42ea1f |
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 |
# |
|
16434 | 10 |
%define owner erwannc |
9397 | 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 |
16097 | 41 |
Requires: SUNWlibcanberra |
9397 | 42 |
|
43 |
%package root |
|
44 |
Summary: %{summary} - / filesystem |
|
45 |
SUNW_BaseDir: / |
|
46 |
%include default-depend.inc |
|
47 |
||
48 |
%package devel |
|
49 |
Summary: %{summary} - development files |
|
50 |
SUNW_BaseDir: %{_basedir} |
|
51 |
%include default-depend.inc |
|
10569 | 52 |
Requires: %{name} |
15650 | 53 |
Requires: SUNWgtk2-devel |
9397 | 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 |
%metacity.prep -d %name-%version |
|
67 |
cd %{_builddir}/%name-%version |
|
68 |
gzcat %SOURCE0 | tar xf - |
|
69 |
||
70 |
%build |
|
71 |
export CFLAGS="%optflags -I/usr/sfw/include -I/usr/X11/include -I/usr/sfw/include/freetype2 -DANSICPP" |
|
72 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
73 |
export LDFLAGS="%_ldflags -L/usr/X11/lib -R/usr/X11/lib -L/usr/sfw/lib -R/usr/sfw/lib -lXrender" |
|
74 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
75 |
||
76 |
%metacity.build -d %name-%version |
|
77 |
||
78 |
%install |
|
79 |
rm -rf $RPM_BUILD_ROOT |
|
80 |
%metacity.install -d %name-%version |
|
81 |
||
82 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
83 |
cd %{_builddir}/%name-%version/sun-manpages |
|
84 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
85 |
||
86 |
# Move demo to demo directory. |
|
87 |
# |
|
88 |
install -d $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin |
|
89 |
mv $RPM_BUILD_ROOT%{_bindir}/metacity-window-demo $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin/metacity-window-demo |
|
90 |
||
91 |
%if %build_l10n |
|
92 |
%else |
|
93 |
# REMOVE l10n FILES |
|
94 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
95 |
%endif |
|
96 |
||
97 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
98 |
||
99 |
%clean |
|
100 |
rm -rf $RPM_BUILD_ROOT |
|
101 |
||
102 |
%post |
|
15556 | 103 |
%restart_fmri desktop-mime-cache gconf-cache |
9397 | 104 |
%ifarch sparc |
105 |
( echo 'test -x /usr/bin/gconftool-2 || {'; |
|
106 |
echo ' echo "ERROR: gconftool-2 not found"'; |
|
107 |
echo ' exit 0'; |
|
108 |
echo '}'; |
|
109 |
echo 'umask 0022'; |
|
110 |
echo "GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults"; |
|
111 |
echo 'export GCONF_CONFIG_SOURCE'; |
|
112 |
echo "SDIR=%{_sysconfdir}/gconf/schemas"; |
|
113 |
echo '/usr/bin/gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE -t bool -s /apps/metacity/general/reduced_resources true' |
|
15556 | 114 |
) | $BASEDIR/lib/postrun -c JDS |
9397 | 115 |
%endif |
116 |
||
15556 | 117 |
%postun |
118 |
%restart_fmri desktop-mime-cache |
|
9397 | 119 |
|
120 |
%files |
|
13609 | 121 |
%doc -d metacity-%{metacity.version} README AUTHORS MAINTAINERS |
122 |
%doc(bzip2) -d metacity-%{metacity.version} NEWS COPYING ChangeLog |
|
123 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 124 |
%defattr (-, root, bin) |
125 |
%dir %attr (0755, root, bin) %{_bindir} |
|
126 |
%{_bindir}/* |
|
127 |
%dir %attr (0755, root, bin) %{_libdir} |
|
128 |
%{_libdir}/lib*.so* |
|
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 |
18431 | 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 |
||
18431 | 143 |
%{_datadir}/themes/AgingGorilla/metacity-1/*.png |
144 |
%{_datadir}/themes/AgingGorilla/metacity-1/metacity-theme-1.xml |
|
145 |
%{_datadir}/themes/Atlanta/metacity-1/metacity-theme-1.xml |
|
146 |
%{_datadir}/themes/Crux/metacity-1/*.png |
|
147 |
%{_datadir}/themes/Crux/metacity-1/metacity-theme-2.xml |
|
148 |
%{_datadir}/themes/Crux/metacity-1/metacity-theme-1.xml |
|
149 |
%{_datadir}/themes/Esco/metacity-1/metacity-theme-1.xml |
|
150 |
%{_datadir}/themes/Metabox/metacity-1/metacity-theme-1.xml |
|
151 |
%{_datadir}/themes/Bright/metacity-1/metacity-theme-1.xml |
|
152 |
%{_datadir}/themes/Bright/metacity-1/metacity-theme-2.xml |
|
153 |
%{_datadir}/themes/Simple/metacity-1/*.png |
|
154 |
%{_datadir}/themes/Simple/metacity-1/metacity-theme-1.xml |
|
155 |
||
9397 | 156 |
%files devel |
157 |
%defattr (-, root, bin) |
|
158 |
%dir %attr (0755, root, bin) %{_includedir} |
|
159 |
%{_includedir}/* |
|
160 |
%dir %attr (0755, root, bin) %{_libdir} |
|
161 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
162 |
%{_libdir}/pkgconfig/* |
|
163 |
%{_prefix}/demo/jds/bin/metacity-window-demo |
|
164 |
||
165 |
%files root |
|
166 |
%defattr (-, root, sys) |
|
167 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
168 |
%{_sysconfdir}/gconf/schemas/metacity.schemas |
|
169 |
||
170 |
%if %build_l10n |
|
171 |
%files l10n |
|
172 |
%defattr (-, root, bin) |
|
173 |
%dir %attr (0755, root, sys) %{_datadir} |
|
174 |
%attr (-, root, other) %{_datadir}/locale |
|
175 |
%endif |
|
176 |
||
177 |
%changelog |
|
18431 | 178 |
* Thu Nov 26 2009 - [email protected] |
179 |
- Fix directory perms. |
|
16097 | 180 |
* Thu Jul 23 2009 - [email protected] |
181 |
- Add Requires: SUNWlibcanberra. |
|
16085 | 182 |
* Tue Jul 21 2009 - [email protected] |
183 |
- Remove %{_libexecdir}/metacity-dialog. |
|
15556 | 184 |
* Fri Apr 3 2009 - [email protected] |
185 |
- use desktop-cache instead of postrun |
|
15133
f3ee596fa947
Add BuildRequires: SUNWgnome-dialog as it requires zenity.
davelam
parents:
14758
diff
changeset
|
186 |
* Wed Feb 18 2009 - [email protected] |
f3ee596fa947
Add BuildRequires: SUNWgnome-dialog as it requires zenity.
davelam
parents:
14758
diff
changeset
|
187 |
- Add BuildRequires: SUNWgnome-dialog as it requires zenity. |
14758 | 188 |
* Fri Dec 12 2008 - [email protected] |
189 |
- Fix gnome/help attribute issue. |
|
13412 | 190 |
* Thu Sep 02 2008 - [email protected] |
191 |
- Unbump to 2.23.377, reworked patch 8. |
|
11370 | 192 |
* Thu Jan 3 2008 - [email protected] |
193 |
- use gconf-install.script instead of an inline script |
|
10569 | 194 |
* Fri Sep 28 2007 - [email protected] |
195 |
- delete SUNWxwrtl and SUNWxorg-clientlibs deps |
|
196 |
- delete some unnecessary env variables |
|
10288 | 197 |
* Tue Aug 07 2007 - [email protected] |
198 |
- Updated for %files for new tarball - change %{_datadir}/control-center to |
|
199 |
%{_datadir}/gnome-control-center. |
|
9891 | 200 |
* Mon May 14 2007 - [email protected] |
201 |
- Added new dir in %files |
|
9397 | 202 |
* Mon Sep 04 2006 - [email protected] |
203 |
- New Manpage tarball |
|
204 |
* Fri Jul 14 2006 - [email protected] |
|
205 |
- update %post/%postun/etc scripts to support diskless client setup, |
|
206 |
part of 6448317 |
|
207 |
* Thu Jun 29 2006 - [email protected] |
|
208 |
- update postrun scripts |
|
209 |
* Sun Jun 11 2006 - [email protected] |
|
210 |
- change group from other to bin/sys |
|
211 |
* Thu May 25 2006 - [email protected] |
|
212 |
- use post/preun scripts to install schemas into the merged gconf files |
|
213 |
* Fri May 12 2006 - [email protected] |
|
214 |
- Small update to dependency list after check-deps.pl run. |
|
215 |
* Thu May 11 2006 - [email protected] |
|
216 |
- Move metacity-window-demo to /usr/share/jds/bin and no longer include |
|
217 |
the useless manpage. |
|
218 |
* Wed May 10 2006 - [email protected] |
|
219 |
- merge -share pkg(s) into the base pkg(s) |
|
220 |
* Fri Feb 17 2006 - [email protected] |
|
221 |
- Update Build/Requires after running check-deps.pl script. |
|
222 |
* Sat Dec 3 2005 - [email protected] |
|
223 |
- add %post script that runs update-desktop-database |
|
224 |
* Thu Jun 02 2005 - [email protected] |
|
225 |
- Install l10n package last since it fails when building |
|
226 |
outside of the official build. |
|
227 |
* Thu May 19 2005 - [email protected] |
|
228 |
- Update to 2.10 and fix packaging. |
|
229 |
* Wed Nov 10 2004 - [email protected] |
|
230 |
- Set reduced_resource key to true on sparc m/c's |
|
231 |
* Fri Oct 08 2004 - [email protected] |
|
232 |
- Added patch metacity-02-enable-Sun-keys-Open-Front.diff. |
|
233 |
Fixes bug 5103120. |
|
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 metacity-message.1, metacity-window-demo.1 manpages |
|
240 |
* Thu Aug 26 2004 - [email protected] |
|
241 |
- Added patch to use sdtprocess instead of gnome-system-monitor. |
|
242 |
* Wed Aug 18 2004 - [email protected] |
|
243 |
- Change manpage perms for Solaris integration. |
|
244 |
* Sat Jun 26 2004 [email protected] |
|
245 |
- Changed install location to /usr/... |
|
246 |
* Wed Jun 2 2004 - [email protected] |
|
247 |
- Added %{_datadir}/locale to install l10n messages |
|
248 |
* Wed Mar 24 2004 - [email protected] |
|
249 |
- Added SGML man page integration |
|
250 |
* Mon Mar 01 2004 - <[email protected]> |
|
251 |
- remove dependencies on SUNWgnome-libs-share and root |
|
252 |
* Thu Feb 26 2004 - <[email protected]> |
|
253 |
- set PERL5LIB for XML::Parser |
|
254 |
* Mon Feb 22 2004 - <[email protected]> |
|
255 |
- install gconf schemas at end of install stage. |
|
256 |
- make clean stage clean stuff up. |
|
15650 | 257 |