base-specs/gtkperf.spec
author Jon Tibble <meths@btinternet.com>
Thu, 15 Mar 2012 09:58:35 +0000
branchs11express-2010-11
changeset 22104 cde243cbe3f6
parent 18050 01a655763d02
child 20024 6f243dfaaa20
permissions -rw-r--r--
Added tag oi_151a_prestable2 for changeset 47b3f775541a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package gtkperf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16430
diff changeset
     8
%define owner dermot
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
16430
1630b44703c8 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 9397
diff changeset
    10
1630b44703c8 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 9397
diff changeset
    11
%define OSR 12725:0.40
1630b44703c8 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 9397
diff changeset
    12
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
Name:         gtkperf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
License:      GPL
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Group:        System/GUI/GNOME
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Version:      0.40
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Release:      1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
Distribution: Java Desktop System
17864
337913e88a9d 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 17288
diff changeset
    19
Vendor:	      Sourceforge
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Summary:      GTK+ performance testing tool
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Source:       http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}_%{version}.tar.gz
17288
877b4c20cf58 2010-01-11 Jedy Wang <[email protected]>
jedy
parents: 17278
diff changeset
    22
#owner:jedy date:2010-01-11 type:branding 
877b4c20cf58 2010-01-11 Jedy Wang <[email protected]>
jedy
parents: 17278
diff changeset
    23
Patch1:       gtkperf-01-cflags.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
URL:          http://sourceforge.net/projects/gtkperf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
%define gtk2_version 2.5.3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Requires: gtk2 >= %{gtk2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
BuildRequires: gtk2-devel >= %{gtk2_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
GTK+ performance testing tool. It is meant for measuring perfomance of
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
different widgets and themes. Can be also used to find out ways of
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
improving GTK+ application-level performance.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
%setup -q -n %name
17288
877b4c20cf58 2010-01-11 Jedy Wang <[email protected]>
jedy
parents: 17278
diff changeset
    40
%patch1 -p1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
17208
d8524e809139 Create dummy config.rpath to fix automake(1.10.1) failure on OpenSolaris.
davelam
parents: 16434
diff changeset
    54
# create dummy config.rpath required by AC_REQUIRE_AUX_FILE
18050
01a655763d02 2010-05-28 Brian Cameron <[email protected]>
yippi
parents: 17864
diff changeset
    55
# otherwise automake complains and fails.
17208
d8524e809139 Create dummy config.rpath to fix automake(1.10.1) failure on OpenSolaris.
davelam
parents: 16434
diff changeset
    56
touch config.rpath
d8524e809139 Create dummy config.rpath to fix automake(1.10.1) failure on OpenSolaris.
davelam
parents: 16434
diff changeset
    57
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
aclocal $ACLOCAL_FLAGS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
autoheader
17278
f466617a7f14 2010-01-07 Jedy Wang <[email protected]>
jedy
parents: 17208
diff changeset
    60
automake -a  -c -f
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
./configure \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
    --prefix=%{_prefix} \
17278
f466617a7f14 2010-01-07 Jedy Wang <[email protected]>
jedy
parents: 17208
diff changeset
    64
    --bindir=%{_bindir} \
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
    --sysconfdir=%{_sysconfdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
    --libexecdir=%{_libexecdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
    --localstatedir=/var/lib	\
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
    --disable-nls
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
%defattr (-, root, root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
%{_bindir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
%{_datadir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
%changelog
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
* Thu Aug 24 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
- autotoolize to avoid weird autom4te error when configure runs autoheader
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
* Wed Nov 30 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
- Bump to 0.40. Remove upstream patch.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
* Mon Oct 24 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
- Initial Sun release.