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