author | convert-repo |
Tue, 28 Sep 2010 11:41:29 +0000 | |
changeset 20122 | 34a34bffcb68 |
parent 17865 | b7ff02e93f66 |
child 20153 | 7d95fb86c182 |
child 20266 | 8bea88f4b589 |
permissions | -rw-r--r-- |
9397 | 1 |
# |
2 |
# spec file for package libgtop |
|
3 |
# |
|
11411 | 4 |
# Copyright (c) 2008 Sun Microsystems, Inc. |
9397 | 5 |
# This file and all modifications and additions to the pristine |
6 |
# package are under the same license as the package itself. |
|
7 |
# |
|
16434 | 8 |
%define owner niall |
9397 | 9 |
# |
16430 | 10 |
|
17852 | 11 |
%define OSR LFI#105446 (gnome Exec. summary):n/a |
16430 | 12 |
|
9397 | 13 |
Name: libgtop |
14562 | 14 |
License: GPL v2 |
9397 | 15 |
Group: System/Libraries/GNOME |
17792 | 16 |
Version: 2.28.1 |
9397 | 17 |
Release: 1 |
18 |
Distribution: Java Desktop System |
|
17865 | 19 |
Vendor: Gnome Community |
9397 | 20 |
Summary: libgtop System Information Library |
16650 | 21 |
Source: http://ftp.gnome.org/pub/GNOME/sources/libgtop/2.28/libgtop-%{version}.tar.bz2 |
9397 | 22 |
URL: http://www.gnome.org |
9937 | 23 |
# The G_GNUC_INTERNAL portions of the 01-solaris patch are in bugzilla 440678. |
15477 | 24 |
#owner:niall date:2006-11-15 type:feature |
25 |
#This patch makes libgtop run on Solaris |
|
9397 | 26 |
Patch1: libgtop-01-solaris.diff |
15495 | 27 |
#owner:bandy date:2009-03-24 type:bug bugzilla:548095 doo:3402 |
28 |
Patch2: libgtop-02-link.diff |
|
17019
294f1481af90
6853550 d.o.o #4751 memory usage information reported by gnome-system-monitor is incorrect
krish_p
parents:
16650
diff
changeset
|
29 |
#owner:krish_p date:2009-11-24 type:bug bugster:6853550 doo:4751 |
294f1481af90
6853550 d.o.o #4751 memory usage information reported by gnome-system-monitor is incorrect
krish_p
parents:
16650
diff
changeset
|
30 |
Patch3: libgtop-03-getvmusage.diff |
9397 | 31 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
32 |
Docdir: %{_defaultdocdir}/dir |
|
33 |
Autoreqprov: on |
|
34 |
||
35 |
%define glib2_version 2.4.0 |
|
36 |
||
37 |
Requires: glib2 >= %{glib2_version} |
|
38 |
BuildRequires: glib2-devel >= %{glib2_version} |
|
39 |
Requires: libgnome |
|
40 |
BuildRequires: libgnome |
|
41 |
||
42 |
%description |
|
43 |
libgtop is a library that fetches information about the running system such as |
|
44 |
cpu and memory usage, active processes etc. |
|
45 |
||
46 |
On Linux systems, these information are taken directly from the /proc |
|
47 |
filesystem while on other systems a server is used to read those |
|
48 |
information from /dev/kmem or whatever. |
|
49 |
||
50 |
%package devel |
|
51 |
Summary: libgtop System Information Development Library |
|
52 |
Group: Development/Libraries/GNOME |
|
53 |
Requires: %{name} = %{version} |
|
54 |
Requires: glib2-devel >= %{glib2_version} |
|
55 |
||
56 |
%description devel |
|
57 |
libgtop is a library that fetches information about the running system such as |
|
58 |
cpu and memory usage, active processes etc. |
|
59 |
||
60 |
On Linux systems, these information are taken directly from the /proc |
|
61 |
filesystem while on other systems a server is used to read those |
|
62 |
information from /dev/kmem or whatever. |
|
63 |
||
64 |
%prep |
|
65 |
%setup -q |
|
66 |
%patch1 -p1 |
|
15495 | 67 |
%patch2 -p1 |
17019
294f1481af90
6853550 d.o.o #4751 memory usage information reported by gnome-system-monitor is incorrect
krish_p
parents:
16650
diff
changeset
|
68 |
%patch3 -p1 |
9397 | 69 |
|
70 |
%build |
|
71 |
%ifos linux |
|
72 |
if [ -x /usr/bin/getconf ]; then |
|
73 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
74 |
fi |
|
75 |
%else |
|
76 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
77 |
%endif |
|
78 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
79 |
CPUS=1 |
|
80 |
fi |
|
81 |
||
11431 | 82 |
aclocal $ACLOCAL_FLAGS -I . |
16052 | 83 |
autoreconf --force --install |
9397 | 84 |
CFLAG="$RPM_OPT_FLAGS" \ |
85 |
./configure --prefix=%{_prefix} \ |
|
86 |
--sysconfdir=%{_sysconfdir} |
|
87 |
make -j $CPUS |
|
88 |
||
89 |
%install |
|
90 |
make DESTDIR=$RPM_BUILD_ROOT install |
|
91 |
#Copy zh_HK from zh_TW |
|
92 |
#Fixes bug 4930405 |
|
93 |
install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES |
|
94 |
install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/ |
|
95 |
#remove unpackaged files |
|
96 |
rm $RPM_BUILD_ROOT%{_libdir}/*.a |
|
97 |
rm $RPM_BUILD_ROOT%{_libdir}/*.la |
|
98 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/info |
|
99 |
||
100 |
%clean |
|
101 |
rm -rf $RPM_BUILD_ROOT |
|
102 |
||
103 |
%post |
|
104 |
/sbin/ldconfig |
|
105 |
||
106 |
%postun |
|
107 |
/sbin/ldconfig |
|
108 |
||
109 |
%files |
|
110 |
%defattr(-, root, root) |
|
111 |
%{_datadir}/locale/*/LC_MESSAGES/libgtop-2.0.mo |
|
112 |
%{_libdir}/*.so.* |
|
113 |
||
114 |
%files devel |
|
115 |
%defattr(-, root, root) |
|
116 |
%{_includedir}/libgtop-2.0 |
|
117 |
%{_libdir}/pkgconfig/libgtop-2.0.pc |
|
118 |
%{_libdir}/*.so |
|
119 |
||
120 |
%changelog |
|
17792 | 121 |
* Sat Apr 3 2010 - [email protected] |
122 |
- Bump to 2.28.1. |
|
17019
294f1481af90
6853550 d.o.o #4751 memory usage information reported by gnome-system-monitor is incorrect
krish_p
parents:
16650
diff
changeset
|
123 |
* Tue Nov 24 2009 - [email protected] |
294f1481af90
6853550 d.o.o #4751 memory usage information reported by gnome-system-monitor is incorrect
krish_p
parents:
16650
diff
changeset
|
124 |
- add libgtop-03-getvmusage.diff, fixes bugster 6853550 (d.o.o 4751) |
16650 | 125 |
* Wed Sep 23 2009 - [email protected] |
126 |
- Bump to 2.28.0 |
|
16052 | 127 |
* Sun Jul 19 2009 - [email protected] |
128 |
- Bump to 2.27.3. |
|
15621 | 129 |
* Wed Apr 15 2009 - [email protected] |
130 |
- Bump to 2.26.1 |
|
15495 | 131 |
* Mon Mar 24 2009 - [email protected] |
132 |
- add libgtop-02-link.diff, fixes d.o.o#3402 |
|
15477 | 133 |
* Mon Mar 23 2009 - [email protected] |
134 |
- Take ownership of spec file + patches |
|
15279 | 135 |
* Mon Mar 02 2009 - [email protected] |
136 |
- Bump to 2.26.0 |
|
15117 | 137 |
* Tue Feb 17 2009 - [email protected] |
138 |
- Bump to 2.25.91 |
|
13456 | 139 |
* Tue Sep 09 2008 - [email protected] |
140 |
- Correct download URL |
|
141 |
||
11494 | 142 |
* Mon Jan 21 2007 - [email protected] |
143 |
- Revert to 2.20.1 because of build issues and module owner choosing not to |
|
144 |
bump because of dependency issues with gnome-system-monitor. |
|
11477 | 145 |
* Thu Jan 17 2007 - [email protected] |
146 |
- Bump to 2.21.5. |
|
11431 | 147 |
* Thu Jan 10 2007 - [email protected] |
148 |
- Call aclocal and autoconf to pick up the modified intltool.m4. |
|
11411 | 149 |
* Tue Jan 08 2007 - [email protected] |
150 |
- Bump to 2.20.1. |
|
10523 | 151 |
* Wed Sep 19 2007 - [email protected] |
152 |
- Bump to 2.20.0. |
|
10373 | 153 |
* Mon Aug 27 2007 - [email protected] |
154 |
- Bump to 2.19.92. |
|
10175 | 155 |
* Tue Jul 10 2007 - [email protected] |
156 |
- Bump to 2.19.5. |
|
10080 | 157 |
* Tue Jun 19 2007 - [email protected] |
158 |
- Bump to 2.19.4. Remove upstream patch, 02-pid_t-type. |
|
10007 | 159 |
* Wed Jun 06 2007 - [email protected] |
160 |
- Add patch, 02-pid_t-type, to fix #444815. |
|
9988 | 161 |
* Tue Jun 05 2007 - [email protected] |
162 |
- Bump to 2.19.3. |
|
9929 | 163 |
* Mon May 19 2007 - [email protected] |
164 |
- Bump to 2.19.2 |
|
9439 | 165 |
* Mon Mar 05 2007 - [email protected] |
166 |
- Bump to 2.14.8. |
|
9397 | 167 |
* Tue Feb 13 2007 - [email protected] |
168 |
- Bump to 2.14.7. |
|
169 |
* Mon Jan 15 2007 - [email protected] |
|
170 |
- Bump to 2.14.6. |
|
171 |
* Tue Dec 05 2006 - [email protected] |
|
172 |
- Bump to 2.14.5. |
|
173 |
* Thu Nov 16 2006 - [email protected] |
|
174 |
- add patch comments. |
|
175 |
* Tue Sep 26 2006 - [email protected] |
|
176 |
- Bump to 2.14.4. |
|
177 |
* Wed Sep 06 2006 - [email protected] |
|
178 |
- Bump to 2.14.3. |
|
179 |
* Fri Jul 28 2006 - [email protected] |
|
180 |
- Bump to 2.14.2. |
|
181 |
* Wed July 19 2006 - [email protected] |
|
182 |
- add one patch so that libgtop can be installed at Solaris, |
|
183 |
also I fix some bugs |
|
184 |
* Fri Apr 10 2006 - [email protected] |
|
185 |
- Bump to 2.14.1. |
|
186 |
* Mon Mar 13 2006 - [email protected] |
|
187 |
- Bump to 2.14.0. |
|
188 |
* Tue Jan 24 2006 - [email protected] |
|
189 |
- Bump to 2.13.3. |
|
190 |
* Sun Jan 15 2006 - [email protected] |
|
191 |
- Bump to 2.13.2 |
|
192 |
* Sat Sep 17 2005 - [email protected] |
|
193 |
- Bump to 2.12.0 |
|
194 |
* Mon Aug 15 2005 - [email protected] |
|
195 |
- Bump to 2.11.91. |
|
196 |
* Wed Jun 15 2005 - [email protected] |
|
197 |
- Bump to 2.10.2 |
|
198 |
* Wed May 18 2005 - [email protected] |
|
199 |
- Bump to 2.10.1 |
|
200 |
* Wed Sep 01 2004 - [email protected] |
|
201 |
- remove all info files |
|
202 |
* Thu Jul 08 2004 - [email protected] |
|
203 |
- Updated l10n content to libgtop-l10n-po-1.2.tar.bz2 |
|
204 |
* Wed Jul 07 2004 - [email protected] |
|
205 |
- port to rpm4 |
|
206 |
* Wed Jul 07 2004 - [email protected] |
|
207 |
- added "-j $CPUS" to make to speed up builds |
|
208 |
* Wed May 12 2004 - [email protected] |
|
209 |
- Updated l10n content to libgtop-l10n-po-1.1.tar.bz2 |
|
210 |
* Thu Apr 08 2004 - <[email protected]> |
|
211 |
- bump to 2.6.0 |
|
212 |
* Wed Feb 11 2004 - <[email protected]> |
|
213 |
- Upped l10n to 0.7 |
|
214 |
* Thu Jan 29 2004 - <[email protected]> |
|
215 |
- Add dependency on libgnome |
|
216 |
* Tue Dec 16 2003 - <[email protected]> |
|
217 |
- Bump to 2.5.0 and merge patches. |
|
218 |
* Tue Oct 14 2003 - <[email protected]> |
|
219 |
- update to version 2.0.5, reset release |
|
220 |
* Thu Aug 14 2003 - <[email protected]> |
|
221 |
- move lib*.so to -devel, remove *.a, *.la |
|
222 |
* Tue May 13 2003 - [email protected] |
|
223 |
- Initial Sun release |