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