author | hh150184 |
Tue, 24 Jan 2006 11:56:37 +0000 | |
branch | gnome-2-12 |
changeset 19207 | b59a653a3329 |
parent 6306 | bd43732ccff2 |
child 6923 | 45fbffcf5f44 |
permissions | -rw-r--r-- |
6165 | 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 |
# |
|
8 |
||
9 |
Name: gtkperf |
|
10 |
License: GPL |
|
11 |
Group: System/GUI/GNOME |
|
6306
bd43732ccff2
* gtkperf.spec: Bump to 0.40. Remove upstream patch.
dc144907
parents:
6165
diff
changeset
|
12 |
Version: 0.40 |
6165 | 13 |
Release: 1 |
14 |
Distribution: Java Desktop System |
|
15 |
Vendor: Sun Microsystems, Inc. |
|
16 |
Summary: GTK+ performance testing tool |
|
17 |
Source: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}_%{version}.tar.gz |
|
18 |
URL: http://sourceforge.net/projects/gtkperf |
|
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
20 |
Autoreqprov: on |
|
21 |
||
22 |
%define gtk2_version 2.5.3 |
|
23 |
||
24 |
Requires: gtk2 >= %{gtk2_version} |
|
25 |
BuildRequires: gtk2-devel >= %{gtk2_version} |
|
26 |
||
27 |
%description |
|
28 |
GTK+ performance testing tool. It is meant for measuring perfomance of |
|
29 |
different widgets and themes. Can be also used to find out ways of |
|
30 |
improving GTK+ application-level performance. |
|
31 |
||
32 |
%prep |
|
33 |
%setup -q -n %name |
|
34 |
||
35 |
%build |
|
36 |
%ifos linux |
|
37 |
if [ -x /usr/bin/getconf ]; then |
|
38 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
39 |
fi |
|
40 |
%else |
|
41 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
42 |
%endif |
|
43 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
44 |
CPUS=1 |
|
45 |
fi |
|
46 |
||
47 |
./configure \ |
|
48 |
--prefix=%{_prefix} \ |
|
49 |
--sysconfdir=%{_sysconfdir} \ |
|
50 |
--libexecdir=%{_libexecdir} \ |
|
51 |
--localstatedir=/var/lib \ |
|
52 |
--disable-nls |
|
53 |
make -j $CPUS |
|
54 |
||
55 |
%install |
|
56 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
57 |
||
58 |
%clean |
|
59 |
rm -rf $RPM_BUILD_ROOT |
|
60 |
||
61 |
%files |
|
62 |
%defattr (-, root, root) |
|
63 |
%{_bindir}/* |
|
64 |
%{_datadir}/* |
|
65 |
||
66 |
%changelog |
|
6306
bd43732ccff2
* gtkperf.spec: Bump to 0.40. Remove upstream patch.
dc144907
parents:
6165
diff
changeset
|
67 |
* Wed Nov 30 2005 - [email protected] |
bd43732ccff2
* gtkperf.spec: Bump to 0.40. Remove upstream patch.
dc144907
parents:
6165
diff
changeset
|
68 |
- Bump to 0.40. Remove upstream patch. |
bd43732ccff2
* gtkperf.spec: Bump to 0.40. Remove upstream patch.
dc144907
parents:
6165
diff
changeset
|
69 |
|
6165 | 70 |
* Mon Oct 24 2005 - [email protected] |
71 |
- Initial Sun release. |