author | ginnchen |
Mon, 12 Apr 2010 08:07:21 +0000 | |
branch | gnome-2-28 |
changeset 18675 | d625b72c91d8 |
parent 18400 | 5613b4277952 |
child 17793 | 208207fdc93f |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package SUNWgnome-system-monitor |
|
3 |
# |
|
4 |
# includes module(s): gnome-system-monitor |
|
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 |
%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} |
|
11953 | 19 |
SUNW_Copyright: %{name}.copyright |
9397 | 20 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
21 |
Source: %{name}-manpages-0.1.tar.gz |
|
22 |
||
23 |
%include default-depend.inc |
|
24 |
||
15650 | 25 |
Requires: SUNWsigcpp |
26 |
Requires: SUNWgtkmm |
|
27 |
Requires: SUNWgtk2 |
|
9397 | 28 |
Requires: SUNWgnome-config |
29 |
Requires: SUNWgnome-libs |
|
18400 | 30 |
Requires: SUNWgnome-icon-theme |
9397 | 31 |
Requires: SUNWlibgtop |
32 |
Requires: SUNWgnome-panel |
|
33 |
Requires: SUNWperl-xml-parser |
|
34 |
Requires: SUNWlibC |
|
15556 | 35 |
Requires: SUNWdesktop-cache |
36 |
Requires: %{name}-root |
|
15650 | 37 |
BuildRequires: SUNWgtk2-devel |
9397 | 38 |
BuildRequires: SUNWgnome-libs-devel |
18400 | 39 |
BuildRequires: SUNWgnome-icon-theme |
10645 | 40 |
BuildRequires: SUNWgnome-doc-utils |
9397 | 41 |
BuildRequires: SUNWgnome-config-devel |
42 |
BuildRequires: SUNWlibgtop-devel |
|
43 |
BuildRequires: SUNWgnome-panel-devel |
|
44 |
BuildRequires: SUNWperl-xml-parser |
|
15482
aab34cf76907
Add BuildRequires of SUNWglibmm-devel,SUNWgtkmm-devel.
davelam
parents:
15477
diff
changeset
|
45 |
BuildRequires: SUNWglibmm-devel |
aab34cf76907
Add BuildRequires of SUNWglibmm-devel,SUNWgtkmm-devel.
davelam
parents:
15477
diff
changeset
|
46 |
BuildRequires: SUNWgtkmm-devel |
9397 | 47 |
|
48 |
%if %build_l10n |
|
49 |
%package l10n |
|
50 |
Summary: %{summary} - l10n files |
|
51 |
SUNW_BaseDir: %{_basedir} |
|
52 |
%include default-depend.inc |
|
53 |
Requires: %{name} |
|
54 |
%endif |
|
55 |
||
56 |
%package root |
|
57 |
Summary: GNOME system monitor - platform dependent, / file system |
|
58 |
SUNW_BaseDir: / |
|
59 |
%include default-depend.inc |
|
60 |
||
61 |
%prep |
|
62 |
rm -rf %name-%version |
|
63 |
mkdir %name-%version |
|
64 |
%gnomesystemmonitor.prep -d %name-%version |
|
65 |
cd %{_builddir}/%name-%version |
|
66 |
gzcat %SOURCE0 | tar xf - |
|
67 |
||
68 |
%build |
|
69 |
export CFLAGS="%optflags" |
|
70 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
71 |
export LDFLAGS="%_ldflags -lsocket -lnsl" |
|
9794 | 72 |
export CXXFLAGS="%cxx_optflags" |
73 |
%if %cc_is_gcc |
|
74 |
%else |
|
75 |
export CXX="${CXX} -norunpath" |
|
76 |
%endif |
|
9397 | 77 |
|
78 |
%gnomesystemmonitor.build -d %name-%version |
|
79 |
||
80 |
%install |
|
81 |
%gnomesystemmonitor.install -d %name-%version |
|
82 |
||
9468 | 83 |
##rm -r $RPM_BUILD_ROOT%{_prefix}/var/scrollkeeper |
10351 | 84 |
#rm -r $RPM_BUILD_ROOT/var/lib/scrollkeeper |
85 |
#rm -r $RPM_BUILD_ROOT/var |
|
9397 | 86 |
|
87 |
%if %build_l10n |
|
88 |
%else |
|
89 |
# REMOVE l10n FILES |
|
90 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
91 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]* |
|
92 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
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 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
98 |
cd %{_builddir}/%name-%version/sun-manpages |
|
99 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
100 |
||
101 |
%clean |
|
102 |
rm -rf $RPM_BUILD_ROOT |
|
103 |
||
104 |
%post |
|
15556 | 105 |
%restart_fmri desktop-mime-cache gconf-cache |
9397 | 106 |
|
107 |
%postun |
|
15556 | 108 |
%restart_fmri desktop-mime-cache |
9397 | 109 |
|
110 |
%files |
|
13628 | 111 |
%doc -d gnome-system-monitor-%{gnomesystemmonitor.version} README AUTHORS |
112 |
%doc(bzip2) -d gnome-system-monitor-%{gnomesystemmonitor.version} COPYING NEWS ChangeLog |
|
113 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
9397 | 114 |
%defattr (-, root, bin) |
115 |
%dir %attr (0755, root, bin) %{_bindir} |
|
116 |
%{_bindir}/* |
|
117 |
%dir %attr(0755, root, sys) %{_datadir} |
|
118 |
%dir %attr(0755, root, other) %{_datadir}/applications |
|
119 |
%{_datadir}/applications/* |
|
120 |
%dir %attr(0755, root, other) %{_datadir}/gnome |
|
121 |
%dir %attr(0755, root, bin) %{_datadir}/gnome/help |
|
122 |
%{_datadir}/gnome/help/*/C |
|
9468 | 123 |
%dir %attr(0755, root, bin) %{_datadir}/omf |
124 |
%{_datadir}/omf/*/*-C.omf |
|
9397 | 125 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
126 |
%{_datadir}/pixmaps/gnome-system-monitor/side.png |
|
15295 | 127 |
%{_datadir}/pixmaps/gnome-system-monitor/upload.svg |
128 |
%{_datadir}/pixmaps/gnome-system-monitor/download.svg |
|
9397 | 129 |
%dir %attr(0755, root, bin) %{_mandir} |
130 |
%{_mandir}/*/* |
|
131 |
||
132 |
%files root |
|
133 |
%defattr (-, root, sys) |
|
134 |
%attr (0755, root, sys) %dir %{_sysconfdir} |
|
135 |
%{_sysconfdir}/gconf/schemas/gnome-system-monitor.schemas |
|
136 |
||
137 |
%if %build_l10n |
|
138 |
%files l10n |
|
139 |
%defattr (-, root, bin) |
|
140 |
%dir %attr (0755, root, sys) %{_datadir} |
|
141 |
%attr (-, root, other) %{_datadir}/locale |
|
142 |
%dir %attr(0755, root, other) %{_datadir}/gnome |
|
143 |
%dir %attr(0755, root, bin) %{_datadir}/gnome/help |
|
144 |
%dir %attr(0755, root, bin) %{_datadir}/gnome/help/gnome-system-monitor |
|
145 |
%{_datadir}/gnome/help/*/[a-z]* |
|
9468 | 146 |
%dir %attr(0755, root, bin) %{_datadir}/omf |
147 |
%dir %attr(0755, root, bin) %{_datadir}/omf/gnome-system-monitor |
|
148 |
%{_datadir}/omf/*/*-[a-z][a-z].omf |
|
9397 | 149 |
%endif |
150 |
||
151 |
%changelog |
|
15556 | 152 |
* Fri Apr 3 2009 - [email protected] |
153 |
- use desktop-cache instead of postrun |
|
15482
aab34cf76907
Add BuildRequires of SUNWglibmm-devel,SUNWgtkmm-devel.
davelam
parents:
15477
diff
changeset
|
154 |
* Tue Mar 24 2009 - [email protected] |
aab34cf76907
Add BuildRequires of SUNWglibmm-devel,SUNWgtkmm-devel.
davelam
parents:
15477
diff
changeset
|
155 |
- Add BuildRequires of SUNWglibmm-devel SUNWgtkmm-devel. |
15477 | 156 |
* Mon Mar 23 2009 - Niall Power <[email protected]> |
157 |
- Take ownership of spec file |
|
13628 | 158 |
* Wed Sep 17 2008 - Henry Zhang <[email protected]> |
159 |
- Add %doc to %files for copyright |
|
11370 | 160 |
* Thu Jan 3 2008 - [email protected] |
161 |
- use gconf-install.script instead of an inline script |
|
10645 | 162 |
* Thu Oct 11 2007 - [email protected] |
163 |
- Remove install dependency on SUNWgnome-doc-utils and change the build |
|
164 |
dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils. |
|
10350 | 165 |
* Sat Aug 18 2007 - [email protected] |
166 |
- Comment out removal of /var dirs as they are no longer installed. |
|
9794 | 167 |
* Thu Apr 26 2007 - [email protected] |
168 |
- set CXX to $CXX -norunpath because libtool swallows this option sometimes |
|
169 |
and leaves compiler paths in the binaries |
|
9782 | 170 |
* Tue Apr 24 2007 - [email protected] |
171 |
- use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install |
|
172 |
(CR 6537817) |
|
9468 | 173 |
* Tue Mar 06 2007 - [email protected] |
174 |
- Add the omf files back to %files. Tweak %install and /var references. |
|
9397 | 175 |
* Wed Feb 14 2007 - [email protected] |
176 |
- Remove omf files from %files as they aren't in the build! Remove reference |
|
177 |
to ${_prefix}/var too as it is not installed. |
|
178 |
* Mon Feb 5 2007 - [email protected] |
|
179 |
- Add Requires SUNWlibC after check-deps.pl run. |
|
180 |
* Fri Jan 26 2007 - [email protected] |
|
181 |
- Delete dependency on SUNWpcre/-devel |
|
182 |
* Wed Jan 10 2007 - [email protected] |
|
183 |
- Add to LDFLAGS so that libsocket and libnsl are linked against. |
|
184 |
* Tue Dec 19 2006 - [email protected] |
|
185 |
- Add SUNWgnome-themes/-devel dependency for gnome-icon-theme module. |
|
186 |
* Mon Dec 11 2006 - [email protected] |
|
187 |
- Add SUNWpcre/-devel dependency. |
|
188 |
* Wed Nov 22 2006 - [email protected] |
|
189 |
- 2.17 update: Add SUNWgnome-libs/-devel dependency and add pixmaps to %files. |
|
190 |
* Mon Sep 04 2006 - [email protected] |
|
191 |
- New Manpage tarball |
|
192 |
* Fri Aug 25 2006 - [email protected] |
|
193 |
- make the postrun scripts use $BASEDIR instead of $PKG_INSTALL_ROOT so |
|
194 |
that it works during diskless client installation, part of CR6448317 |
|
195 |
* Mon Jul 31 2006 - [email protected] |
|
196 |
- Remove 'devel' package definition as there is no matching %files section. |
|
197 |
* Sun Jul 23 2006 - [email protected] |
|
198 |
- fix gconf schemas installation and attributes |
|
199 |
* Fri Jul 21 2006 - [email protected] |
|
200 |
- Delete one sentence for gconf problem. |
|
201 |
* Thu Jul 20 2006 - [email protected] |
|
202 |
- Fix omf file bug |
|
203 |
* Wed Jul 19 2006 - [email protected] |
|
204 |
- Fix dir perms and merge share pkg into base pkg. |
|
205 |
* Fri Apr 21 2006 - [email protected] |
|
206 |
- Inital spec file |
|
15650 | 207 |