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