author | hh150184 |
Tue, 24 Jan 2006 11:56:37 +0000 | |
branch | gnome-2-12 |
changeset 19207 | b59a653a3329 |
parent 6016 | b54189f766bc |
child 6689 | ccad859aecd3 |
permissions | -rw-r--r-- |
5518 | 1 |
# |
2 |
# spec file for package gnome-nettool |
|
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: gnome-nettool |
|
10 |
License: GPL |
|
11 |
Group: System/GUI/GNOME |
|
6016
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5528
diff
changeset
|
12 |
Version: 1.3.92 |
5518 | 13 |
Release: 1 |
14 |
Distribution: Java Desktop System |
|
15 |
Vendor: Sun Microsystems, Inc. |
|
16 |
Summary: GNOME Networking Tools |
|
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
17 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/1.3/%{name}-%{version}.tar.bz2 |
5518 | 18 |
URL: http://www.gnome.org |
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
20 |
Docdir: %{_defaultdocdir}/%{name} |
|
21 |
Autoreqprov: on |
|
22 |
||
23 |
%define libgnomeui_version 2.0.0 |
|
24 |
%define GConf_version 2.2.0 |
|
25 |
||
26 |
Requires: libgnomeui >= %{libgnomeui_version} |
|
27 |
Requires: GConf >= %{GConf_version} |
|
28 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version} |
|
29 |
BuildRequires: GConf-devel >= %{GConf_version} |
|
30 |
||
31 |
%description |
|
32 |
GNOME Nettool is a set of front-ends to various networking command-line |
|
33 |
tools, like ping, netstat, ifconfig, whois, traceroute, finger. |
|
34 |
||
35 |
%prep |
|
36 |
%setup -q |
|
37 |
||
38 |
||
39 |
%build |
|
40 |
%ifos linux |
|
41 |
if [ -x /usr/bin/getconf ]; then |
|
42 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
43 |
fi |
|
44 |
%else |
|
45 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
46 |
%endif |
|
47 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
48 |
CPUS=1 |
|
49 |
fi |
|
50 |
||
51 |
CFLAGS="$RPM_OPT_FLAGS" \ |
|
52 |
./configure \ |
|
53 |
--prefix=%{_prefix} \ |
|
54 |
--sysconfdir=%{_sysconfdir} \ |
|
55 |
--mandir=%{_mandir} |
|
56 |
make -j $CPUS |
|
57 |
||
58 |
%install |
|
59 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
60 |
||
61 |
%clean |
|
62 |
rm -rf $RPM_BUILD_ROOT |
|
63 |
||
64 |
%files |
|
65 |
%defattr (-, root, root) |
|
66 |
%{_bindir}/* |
|
67 |
%{_datadir}/applications/ |
|
68 |
%{_datadir}/gnome-nettool/ |
|
69 |
%{_datadir}/pixmaps/ |
|
70 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
71 |
||
72 |
%changelog |
|
6016
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5528
diff
changeset
|
73 |
* Tue Sep 27 2005 - [email protected] |
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5528
diff
changeset
|
74 |
- Bump to 1.3.92. |
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5528
diff
changeset
|
75 |
|
5528
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
76 |
* Mon Aug 15 2005 - [email protected] |
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
77 |
- Bump to 1.3.91. |
8eaf8a1cb170
* *.spec: Bump to latest available versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
78 |
|
5518 | 79 |
* Tue May 24 2005 - [email protected] |
80 |
- Initial spec |