9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-system-monitor
|
|
3 |
#
|
|
4 |
# includes module(s): gnome-system-monitor
|
|
5 |
#
|
9782
|
6 |
# Copyright 2007 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: dkenny
|
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
%use gnomesystemmonitor = gnome-system-monitor.spec
|
|
14 |
|
|
15 |
Name: SUNWgnome-system-monitor
|
|
16 |
Summary: GNOME system monitor
|
|
17 |
Version: %{default_pkg_version}
|
|
18 |
SUNW_BaseDir: %{_basedir}
|
|
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
20 |
Source: %{name}-manpages-0.1.tar.gz
|
|
21 |
|
|
22 |
%include default-depend.inc
|
|
23 |
|
|
24 |
Requires: SUNWgnome-doc-utils
|
|
25 |
Requires: SUNWgnome-config
|
|
26 |
Requires: SUNWgnome-base-libs
|
|
27 |
Requires: SUNWgnome-libs
|
|
28 |
Requires: SUNWgnome-themes
|
|
29 |
Requires: SUNWlibgtop
|
|
30 |
Requires: SUNWgnome-panel
|
|
31 |
Requires: SUNWperl-xml-parser
|
|
32 |
Requires: SUNWlibC
|
|
33 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
34 |
BuildRequires: SUNWgnome-libs-devel
|
|
35 |
BuildRequires: SUNWgnome-themes-devel
|
|
36 |
BuildRequires: SUNWgnome-doc-utils-devel
|
|
37 |
BuildRequires: SUNWgnome-config-devel
|
|
38 |
BuildRequires: SUNWlibgtop-devel
|
|
39 |
BuildRequires: SUNWgnome-panel-devel
|
|
40 |
BuildRequires: SUNWperl-xml-parser
|
|
41 |
Requires: SUNWpostrun
|
|
42 |
|
|
43 |
%if %build_l10n
|
|
44 |
%package l10n
|
|
45 |
Summary: %{summary} - l10n files
|
|
46 |
SUNW_BaseDir: %{_basedir}
|
|
47 |
%include default-depend.inc
|
|
48 |
Requires: %{name}
|
|
49 |
%endif
|
|
50 |
|
|
51 |
%package root
|
|
52 |
Summary: GNOME system monitor - platform dependent, / file system
|
|
53 |
SUNW_BaseDir: /
|
|
54 |
%include default-depend.inc
|
|
55 |
Requires: SUNWpostrun-root
|
|
56 |
Requires: SUNWgnome-config
|
|
57 |
|
|
58 |
%prep
|
|
59 |
rm -rf %name-%version
|
|
60 |
mkdir %name-%version
|
|
61 |
%gnomesystemmonitor.prep -d %name-%version
|
|
62 |
cd %{_builddir}/%name-%version
|
|
63 |
gzcat %SOURCE0 | tar xf -
|
|
64 |
|
|
65 |
%build
|
|
66 |
export CFLAGS="%optflags"
|
|
67 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
68 |
export LDFLAGS="%_ldflags -lsocket -lnsl"
|
9794
|
69 |
export CXXFLAGS="%cxx_optflags"
|
|
70 |
%if %cc_is_gcc
|
|
71 |
%else
|
|
72 |
export CXX="${CXX} -norunpath"
|
|
73 |
%endif
|
9397
|
74 |
|
|
75 |
%gnomesystemmonitor.build -d %name-%version
|
|
76 |
|
|
77 |
%install
|
|
78 |
%gnomesystemmonitor.install -d %name-%version
|
|
79 |
|
9468
|
80 |
##rm -r $RPM_BUILD_ROOT%{_prefix}/var/scrollkeeper
|
|
81 |
rm -r $RPM_BUILD_ROOT/var/lib/scrollkeeper
|
|
82 |
rm -r $RPM_BUILD_ROOT/var
|
9397
|
83 |
|
|
84 |
%if %build_l10n
|
|
85 |
%else
|
|
86 |
# REMOVE l10n FILES
|
|
87 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
88 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
|
|
89 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
|
|
90 |
%endif
|
|
91 |
|
|
92 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
93 |
|
|
94 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
95 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
96 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
97 |
|
|
98 |
%clean
|
|
99 |
rm -rf $RPM_BUILD_ROOT
|
|
100 |
|
|
101 |
%post
|
|
102 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
103 |
echo '/usr/bin/update-desktop-database'
|
|
104 |
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
|
|
105 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
106 |
echo '/usr/bin/scrollkeeper-update'
|
9782
|
107 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
9397
|
108 |
|
|
109 |
%postun
|
9782
|
110 |
test -x $BASEDIR/lib/postrun || exit 0
|
9397
|
111 |
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
|
|
112 |
echo '/usr/bin/update-desktop-database'
|
|
113 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
114 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
115 |
echo '/usr/bin/scrollkeeper-update'
|
|
116 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
117 |
|
|
118 |
%post root
|
|
119 |
( echo 'test -x /usr/bin/gconftool-2 || {';
|
|
120 |
echo ' echo "ERROR: gconftool-2 not found"';
|
|
121 |
echo ' exit 0';
|
|
122 |
echo '}';
|
|
123 |
echo 'umask 0022';
|
|
124 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults';
|
|
125 |
echo 'export GCONF_CONFIG_SOURCE';
|
|
126 |
echo '/usr/bin/gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/*.schemas'
|
|
127 |
) | $BASEDIR/var/lib/postrun/postrun -u -c JDS_wait
|
|
128 |
|
|
129 |
%preun root
|
|
130 |
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
|
|
131 |
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
|
|
132 |
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
|
|
133 |
echo ' exit 0';
|
|
134 |
echo '}';
|
|
135 |
echo 'umask 0022';
|
|
136 |
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
|
|
137 |
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
|
|
138 |
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
|
|
139 |
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
|
|
140 |
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
|
|
141 |
echo 'schemas="$SDIR/gnome-system-monitor.schemas"';
|
|
142 |
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
|
|
143 |
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
|
|
144 |
|
|
145 |
%files
|
|
146 |
%defattr (-, root, bin)
|
|
147 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
148 |
%{_bindir}/*
|
|
149 |
%dir %attr(0755, root, sys) %{_datadir}
|
|
150 |
%dir %attr(0755, root, other) %{_datadir}/applications
|
|
151 |
%{_datadir}/applications/*
|
|
152 |
%dir %attr(0755, root, other) %{_datadir}/gnome
|
|
153 |
%dir %attr(0755, root, bin) %{_datadir}/gnome/help
|
|
154 |
%{_datadir}/gnome/help/*/C
|
9468
|
155 |
%dir %attr(0755, root, bin) %{_datadir}/omf
|
|
156 |
%{_datadir}/omf/*/*-C.omf
|
9397
|
157 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps
|
|
158 |
%{_datadir}/pixmaps/gnome-system-monitor/side.png
|
|
159 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
160 |
%{_mandir}/*/*
|
|
161 |
|
|
162 |
%files root
|
|
163 |
%defattr (-, root, sys)
|
|
164 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
165 |
%{_sysconfdir}/gconf/schemas/gnome-system-monitor.schemas
|
|
166 |
|
|
167 |
%if %build_l10n
|
|
168 |
%files l10n
|
|
169 |
%defattr (-, root, bin)
|
|
170 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
171 |
%attr (-, root, other) %{_datadir}/locale
|
|
172 |
%dir %attr(0755, root, other) %{_datadir}/gnome
|
|
173 |
%dir %attr(0755, root, bin) %{_datadir}/gnome/help
|
|
174 |
%dir %attr(0755, root, bin) %{_datadir}/gnome/help/gnome-system-monitor
|
|
175 |
%{_datadir}/gnome/help/*/[a-z]*
|
9468
|
176 |
%dir %attr(0755, root, bin) %{_datadir}/omf
|
|
177 |
%dir %attr(0755, root, bin) %{_datadir}/omf/gnome-system-monitor
|
|
178 |
%{_datadir}/omf/*/*-[a-z][a-z].omf
|
9397
|
179 |
%endif
|
|
180 |
|
|
181 |
%changelog
|
9794
|
182 |
* Thu Apr 26 2007 - [email protected]
|
|
183 |
- set CXX to $CXX -norunpath because libtool swallows this option sometimes
|
|
184 |
and leaves compiler paths in the binaries
|
9782
|
185 |
* Tue Apr 24 2007 - [email protected]
|
|
186 |
- use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install
|
|
187 |
(CR 6537817)
|
9468
|
188 |
* Tue Mar 06 2007 - [email protected]
|
|
189 |
- Add the omf files back to %files. Tweak %install and /var references.
|
9397
|
190 |
* Wed Feb 14 2007 - [email protected]
|
|
191 |
- Remove omf files from %files as they aren't in the build! Remove reference
|
|
192 |
to ${_prefix}/var too as it is not installed.
|
|
193 |
* Mon Feb 5 2007 - [email protected]
|
|
194 |
- Add Requires SUNWlibC after check-deps.pl run.
|
|
195 |
* Fri Jan 26 2007 - [email protected]
|
|
196 |
- Delete dependency on SUNWpcre/-devel
|
|
197 |
* Wed Jan 10 2007 - [email protected]
|
|
198 |
- Add to LDFLAGS so that libsocket and libnsl are linked against.
|
|
199 |
* Tue Dec 19 2006 - [email protected]
|
|
200 |
- Add SUNWgnome-themes/-devel dependency for gnome-icon-theme module.
|
|
201 |
* Mon Dec 11 2006 - [email protected]
|
|
202 |
- Add SUNWpcre/-devel dependency.
|
|
203 |
* Wed Nov 22 2006 - [email protected]
|
|
204 |
- 2.17 update: Add SUNWgnome-libs/-devel dependency and add pixmaps to %files.
|
|
205 |
* Mon Sep 04 2006 - [email protected]
|
|
206 |
- New Manpage tarball
|
|
207 |
* Fri Aug 25 2006 - [email protected]
|
|
208 |
- make the postrun scripts use $BASEDIR instead of $PKG_INSTALL_ROOT so
|
|
209 |
that it works during diskless client installation, part of CR6448317
|
|
210 |
* Mon Jul 31 2006 - [email protected]
|
|
211 |
- Remove 'devel' package definition as there is no matching %files section.
|
|
212 |
* Sun Jul 23 2006 - [email protected]
|
|
213 |
- fix gconf schemas installation and attributes
|
|
214 |
* Fri Jul 21 2006 - [email protected]
|
|
215 |
- Delete one sentence for gconf problem.
|
|
216 |
* Thu Jul 20 2006 - [email protected]
|
|
217 |
- Fix omf file bug
|
|
218 |
* Wed Jul 19 2006 - [email protected]
|
|
219 |
- Fix dir perms and merge share pkg into base pkg.
|
|
220 |
* Fri Apr 21 2006 - [email protected]
|
|
221 |
- Inital spec file
|