libgtop.spec revision 10917
11842N/A#
11842N/A# spec file for package libgtop
11842N/A#
11842N/A# Copyright (c) 2005 Sun Microsystems, Inc.
11842N/A# This file and all modifications and additions to the pristine
14388N/A# package are under the same license as the package itself.
11841N/A#
11841N/A# Owner: henryz
11842N/A#
17185N/AName: libgtop
11842N/ALicense: GPL
11841N/AGroup: System/Libraries/GNOME
11841N/AVersion: 2.19.5
11841N/ARelease: 1
11841N/ADistribution: Java Desktop System
11841N/AVendor: Sun Microsystems, Inc.
11841N/ASummary: libgtop System Information Library
11841N/ASource: http://ftp.gnome.org/pub/GNOME/sources/libgtop/2.19/libgtop-%{version}.tar.bz2
19109N/AURL: http://www.gnome.org
18688N/A# The G_GNUC_INTERNAL portions of the 01-solaris patch are in bugzilla 440678.
18688N/A#owner:henryz date:2006-11-15 type:feature
11841N/A#This patch make libgtop run at Solaris
11841N/APatch1: libgtop-01-solaris.diff
12665N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
11841N/ADocdir: %{_defaultdocdir}/dir
11841N/AAutoreqprov: on
13092N/A
11841N/A%define glib2_version 2.4.0
20857N/A
20857N/ARequires: glib2 >= %{glib2_version}
16401N/ABuildRequires: glib2-devel >= %{glib2_version}
11841N/ARequires: libgnome
11841N/ABuildRequires: libgnome
11841N/A
11841N/A%description
11841N/Alibgtop is a library that fetches information about the running system such as
11841N/Acpu and memory usage, active processes etc.
11841N/A
11841N/AOn Linux systems, these information are taken directly from the /proc
11841N/Afilesystem while on other systems a server is used to read those
11841N/Ainformation from /dev/kmem or whatever.
11841N/A
11841N/A%package devel
13092N/ASummary: libgtop System Information Development Library
13092N/AGroup: Development/Libraries/GNOME
11841N/ARequires: %{name} = %{version}
11841N/ARequires: glib2-devel >= %{glib2_version}
11841N/A
11841N/A%description devel
11841N/Alibgtop is a library that fetches information about the running system such as
11841N/Acpu and memory usage, active processes etc.
11841N/A
13092N/AOn Linux systems, these information are taken directly from the /proc
13092N/Afilesystem while on other systems a server is used to read those
13092N/Ainformation from /dev/kmem or whatever.
11841N/A
17515N/A%prep
11841N/A%setup -q
11841N/A%patch1 -p1
11841N/A
11841N/A%build
11841N/A%ifos linux
11841N/Aif [ -x /usr/bin/getconf ]; then
11841N/A CPUS=`getconf _NPROCESSORS_ONLN`
11841N/Afi
11841N/A%else
11841N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
11841N/A%endif
14388N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
14388N/A CPUS=1
14388N/Afi
11841N/A
11841N/ACFLAG="$RPM_OPT_FLAGS" \
11841N/A./configure --prefix=%{_prefix} \
11841N/A --sysconfdir=%{_sysconfdir}
17515N/Amake -j $CPUS
13107N/A
13092N/A%install
13092N/Amake DESTDIR=$RPM_BUILD_ROOT install
13092N/A#Copy zh_HK from zh_TW
11841N/A#Fixes bug 4930405
11841N/Ainstall -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
11841N/Ainstall --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
11841N/A#remove unpackaged files
11841N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
11841N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
11841N/Arm -rf $RPM_BUILD_ROOT%{_prefix}/info
11841N/A
11841N/A%clean
11841N/Arm -rf $RPM_BUILD_ROOT
17515N/A
17515N/A%post
14388N/A/sbin/ldconfig
14388N/A
13107N/A%postun
13107N/A/sbin/ldconfig
13092N/A
13092N/A%files
11841N/A%defattr(-, root, root)
11841N/A%{_datadir}/locale/*/LC_MESSAGES/libgtop-2.0.mo
11841N/A%{_libdir}/*.so.*
11841N/A
16401N/A%files devel
19199N/A%defattr(-, root, root)
19516N/A%{_includedir}/libgtop-2.0
%{_libdir}/pkgconfig/libgtop-2.0.pc
%{_libdir}/*.so
%changelog
* Tue Jul 10 2007 - damien.carbery@sun.com
- Bump to 2.19.5.
* Tue Jun 19 2007 - damien.carbery@sun.com
- Bump to 2.19.4. Remove upstream patch, 02-pid_t-type.
* Wed Jun 06 2007 - damien.carbery@sun.com
- Add patch, 02-pid_t-type, to fix #444815.
* Tue Jun 05 2007 - damien.carbery@sun.com
- Bump to 2.19.3.
* Mon May 19 2007 - hua.zhang@sun.com
- Bump to 2.19.2
* Mon Mar 05 2007 - damien.carbery@sun.com
- Bump to 2.14.8.
* Tue Feb 13 2007 - damien.carbery@sun.com
- Bump to 2.14.7.
* Mon Jan 15 2007 - damien.carbery@sun.com
- Bump to 2.14.6.
* Tue Dec 05 2006 - damien.carbery@sun.com
- Bump to 2.14.5.
* Thu Nov 16 2006 - hua.zhang@sun.com
- add patch comments.
* Tue Sep 26 2006 - damien.carbery@sun.com
- Bump to 2.14.4.
* Wed Sep 06 2006 - damien.carbery@sun.com
- Bump to 2.14.3.
* Fri Jul 28 2006 - damien.carbery@sun.com
- Bump to 2.14.2.
* Wed July 19 2006 - hua.zhang@sun.com
- add one patch so that libgtop can be installed at Solaris,
also I fix some bugs
* Fri Apr 10 2006 - damien.carbery@sun.com
- Bump to 2.14.1.
* Mon Mar 13 2006 - damien.carbery@sun.com
- Bump to 2.14.0.
* Tue Jan 24 2006 - damien.carbery@sun.com
- Bump to 2.13.3.
* Sun Jan 15 2006 - damien.carbery@sun.com
- Bump to 2.13.2
* Sat Sep 17 2005 - glynn.foster@sun.com
- Bump to 2.12.0
* Mon Aug 15 2005 - damien.carbery@sun.com
- Bump to 2.11.91.
* Wed Jun 15 2005 - matt.keenan@sun.com
- Bump to 2.10.2
* Wed May 18 2005 - glynn.foster@sun.com
- Bump to 2.10.1
* Wed Sep 01 2004 - laszlo.kovacs@sun.com
- remove all info files
* Thu Jul 08 2004 - damien.donlon@sun.com
- Updated l10n content to libgtop-l10n-po-1.2.tar.bz2
* Wed Jul 07 2004 - niall.power@sun.com
- port to rpm4
* Wed Jul 07 2004 - dermot.mccluskey@sun.com
- added "-j $CPUS" to make to speed up builds
* Wed May 12 2004 - damien.donlon@sun.com
- Updated l10n content to libgtop-l10n-po-1.1.tar.bz2
* Thu Apr 08 2004 - <niall.power@sun.com>
- bump to 2.6.0
* Wed Feb 11 2004 - <matt.keenan@sun.com>
- Upped l10n to 0.7
* Thu Jan 29 2004 - <dermot.mccluskey@sun.com>
- Add dependency on libgnome
* Tue Dec 16 2003 - <glynn.foster@sun.com>
- Bump to 2.5.0 and merge patches.
* Tue Oct 14 2003 - <niall.power@sun.com>
- update to version 2.0.5, reset release
* Thu Aug 14 2003 - <laca@sun.com>
- move lib*.so to -devel, remove *.a, *.la
* Tue May 13 2003 - Laszlo.Kovacs@Sun.COM
- Initial Sun release