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