10139N/A#
10139N/A# spec file for package gtkperf
10139N/A#
10139N/A# Copyright (c) 2005 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
17185N/A%define owner dermot
10139N/A#
17181N/A
17181N/A%define OSR 12725:0.40
17181N/A
10139N/AName: gtkperf
10139N/ALicense: GPL
10139N/AGroup: System/GUI/GNOME
10139N/AVersion: 0.40
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
18615N/AVendor: Sourceforge
10139N/ASummary: GTK+ performance testing tool
10139N/ASource: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}_%{version}.tar.gz
18039N/A#owner:jedy date:2010-01-11 type:branding
18039N/APatch1: gtkperf-01-cflags.diff
10139N/AURL: http://sourceforge.net/projects/gtkperf
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/AAutoreqprov: on
10139N/A
10139N/A%define gtk2_version 2.5.3
10139N/A
10139N/ARequires: gtk2 >= %{gtk2_version}
10139N/ABuildRequires: gtk2-devel >= %{gtk2_version}
10139N/A
10139N/A%description
10139N/AGTK+ performance testing tool. It is meant for measuring perfomance of
10139N/Adifferent widgets and themes. Can be also used to find out ways of
10139N/Aimproving GTK+ application-level performance.
10139N/A
10139N/A%prep
10139N/A%setup -q -n %name
18039N/A%patch1 -p1
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
10139N/Afi
10139N/A%else
10139N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10139N/A%endif
10139N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10139N/A CPUS=1
10139N/Afi
10139N/A
17959N/A# create dummy config.rpath required by AC_REQUIRE_AUX_FILE
18801N/A# otherwise automake complains and fails.
17959N/Atouch config.rpath
17959N/A
10139N/Aaclocal $ACLOCAL_FLAGS
10139N/Aautoheader
18029N/Aautomake -a -c -f
10139N/Aautoconf
10139N/A./configure \
10139N/A --prefix=%{_prefix} \
18029N/A --bindir=%{_bindir} \
10139N/A --sysconfdir=%{_sysconfdir} \
10139N/A --libexecdir=%{_libexecdir} \
10139N/A --localstatedir=/var/lib \
10139N/A --disable-nls
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/Arm -rf $RPM_BUILD_ROOT%{_prefix}/doc
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr (-, root, root)
10139N/A%{_bindir}/*
10139N/A%{_datadir}/*
10139N/A
10139N/A%changelog
10139N/A* Thu Aug 24 2006 - laca@sun.com
10139N/A- autotoolize to avoid weird autom4te error when configure runs autoheader
10139N/A* Wed Nov 30 2005 - damien.carbery@sun.com
10139N/A- Bump to 0.40. Remove upstream patch.
10139N/A* Mon Oct 24 2005 - damien.carbery@sun.com
10139N/A- Initial Sun release.