13285
|
1 |
#
|
|
2 |
# spec file for package gnome-nettool
|
|
3 |
#
|
|
4 |
# Copyright (c) 2008 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 |
# Owner: gheet
|
|
9 |
#
|
|
10 |
%include l10n.inc
|
|
11 |
Name: gnome-nettool
|
|
12 |
License: GPL/LGPL
|
|
13 |
Group: System/GUI/GNOME
|
16103
|
14 |
Version: 2.27.4
|
13285
|
15 |
Release: 1
|
|
16 |
Summary: GNOME Network Tools
|
16103
|
17 |
Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-nettool/2.27/gnome-nettool-%{version}.tar.bz2
|
14432
|
18 |
#owner:gheet date:2008-09-10 type:feature bugster:6736233
|
13285
|
19 |
Patch1: %{name}-01-sun-patch.diff
|
|
20 |
SUNW_BaseDir: %{_basedir}
|
|
21 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
22 |
%include default-depend.inc
|
|
23 |
Requires: SUNWgnome-libs
|
|
24 |
|
|
25 |
%if %build_l10n
|
|
26 |
%package l10n
|
|
27 |
Summary: %{summary} - l10n files
|
|
28 |
SUNW_BaseDir: %{_basedir}
|
|
29 |
%include default-depend.inc
|
|
30 |
Requires: %{name}
|
|
31 |
%endif
|
|
32 |
|
|
33 |
%prep
|
|
34 |
rm -rf %name-%version
|
|
35 |
mkdir -p %name-%version
|
|
36 |
%setup -q
|
|
37 |
%patch1 -p1
|
|
38 |
|
|
39 |
%build
|
|
40 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
41 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
42 |
CPUS=1
|
|
43 |
fi
|
|
44 |
|
|
45 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
|
|
46 |
export CFLAGS="%optflags -I/usr/include"
|
|
47 |
export RPM_OPT_FLAGS="$CFLAGS"
|
|
48 |
|
15451
|
49 |
libtoolize --force --copy
|
13285
|
50 |
aclocal $ACLOCAL_FLAGS -I .
|
15451
|
51 |
autoheader
|
|
52 |
automake -a -c -f
|
|
53 |
#automake --add-missing
|
13285
|
54 |
autoconf
|
|
55 |
CFLAGS="$RPM_OPT_FLAGS"
|
|
56 |
./configure \
|
|
57 |
--prefix=%{_prefix} \
|
|
58 |
--datadir=%{_datadir}
|
|
59 |
make -j $CPUS
|
|
60 |
|
|
61 |
|
|
62 |
%install
|
|
63 |
rm -rf $RPM_BUILD_ROOT
|
|
64 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
65 |
|
|
66 |
%if %build_l10n
|
|
67 |
%else
|
|
68 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
69 |
%endif
|
|
70 |
|
|
71 |
|
|
72 |
%if %{!?_without_gtk_doc:0}%{?_without_gtk_doc:1}
|
|
73 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
|
|
74 |
%endif
|
|
75 |
|
|
76 |
|
|
77 |
%clean
|
|
78 |
#rm -rf $RPM_BUILD_ROOT
|
|
79 |
|
|
80 |
%files
|
|
81 |
%defattr (-, root, bin)
|
|
82 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
83 |
%{_bindir}/*
|
|
84 |
%dir %attr (0755, root, other) %{_datadir}/applications
|
|
85 |
%{_datadir}/applications/*
|
|
86 |
%dir %attr (0755, root, other) %{_datadir}/icons
|
|
87 |
%{_datadir}/icons/*
|
|
88 |
%dir %attr (0755, root, other) %{_datadir}/%{name}
|
|
89 |
%{_datadir}/%{name}/*
|
|
90 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
91 |
%{_datadir}/gnome/*
|
|
92 |
%dir %attr (0755, root, other) %{_datadir}/omf
|
|
93 |
%{_datadir}/omf/*
|
|
94 |
|
|
95 |
%if %build_l10n
|
|
96 |
%files l10n
|
|
97 |
%defattr (-, root, bin)
|
|
98 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
99 |
%attr (-, root, other) %{_datadir}/locale
|
|
100 |
%endif
|
|
101 |
|
|
102 |
%changelog
|
15902
|
103 |
* Mon Jun 15 2009 - [email protected]
|
|
104 |
- Bump to 2.26.2
|
15628
|
105 |
* Wed Apr 15 2009 - [email protected]
|
|
106 |
- Bump to 2.26.1
|
13822
|
107 |
* Mon Sep 29 2008 - [email protected]
|
|
108 |
- Bump to 2.22.1.
|
13492
|
109 |
* Wed Sep 10 2008 - [email protected]
|
|
110 |
- Update 01-sun-patch.diff to enable ping hostname.
|
13285
|
111 |
* Mon Aug 04 2008 - [email protected]
|
|
112 |
- Initial spec
|