base-specs/gnome-nettool.spec
author gheet
Thu, 23 Jul 2009 17:10:16 +0000
changeset 16103 6f8f8809f615
parent 15902 2480f9131304
child 16427 63d81b085adb
permissions -rw-r--r--
2009-07-23 Ghee Teo <[email protected]> doo#10233:Upreved to 2.27.4 and reworked patch. * base-specs/gnome-nettool.spec: * patches/gnome-nettool-01-sun-patch.diff:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13285
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     1
#
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     2
# spec file for package gnome-nettool
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     3
#
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     4
# Copyright (c) 2008 Sun Microsystems, Inc.
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     6
# package are under the same license as the package itself.
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     7
#
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     8
# Owner: gheet
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     9
#
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    10
%include l10n.inc
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    11
Name:               gnome-nettool
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    12
License:	    GPL/LGPL
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    13
Group:		    System/GUI/GNOME
16103
6f8f8809f615 2009-07-23 Ghee Teo <[email protected]>
gheet
parents: 15902
diff changeset
    14
Version:            2.27.4
13285
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    15
Release:	    1
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    16
Summary:	    GNOME Network Tools
16103
6f8f8809f615 2009-07-23 Ghee Teo <[email protected]>
gheet
parents: 15902
diff changeset
    17
Source:		    http://ftp.gnome.org/pub/GNOME/sources/gnome-nettool/2.27/gnome-nettool-%{version}.tar.bz2
14432
b1ee47db7642 2008-10-09 Ghee Teo - <[email protected]>
gheet
parents: 13822
diff changeset
    18
#owner:gheet date:2008-09-10 type:feature bugster:6736233
13285
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    19
Patch1:             %{name}-01-sun-patch.diff
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    20
SUNW_BaseDir:       %{_basedir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    21
BuildRoot:          %{_tmppath}/%{name}-%{version}-build
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    22
%include default-depend.inc
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    23
Requires:           SUNWgnome-libs
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    24
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    25
%if %build_l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    26
%package l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    27
Summary:                 %{summary} - l10n files
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    28
SUNW_BaseDir:		 %{_basedir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    29
%include default-depend.inc
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    30
Requires:	 %{name}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    31
%endif
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    32
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    33
%prep
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    34
rm -rf %name-%version
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    35
mkdir -p %name-%version
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    36
%setup -q 
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    37
%patch1 -p1
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    38
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    39
%build
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    40
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    41
if test "x$CPUS" = "x" -o $CPUS = 0; then
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    42
    CPUS=1
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    43
fi
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    44
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    45
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    46
export CFLAGS="%optflags -I/usr/include"
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    47
export RPM_OPT_FLAGS="$CFLAGS"
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    48
15451
8ee2740eb12d 2009-03-19 ghee teo <[email protected]>
gheet
parents: 14432
diff changeset
    49
libtoolize --force --copy
13285
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    50
aclocal $ACLOCAL_FLAGS -I .
15451
8ee2740eb12d 2009-03-19 ghee teo <[email protected]>
gheet
parents: 14432
diff changeset
    51
autoheader
8ee2740eb12d 2009-03-19 ghee teo <[email protected]>
gheet
parents: 14432
diff changeset
    52
automake -a -c -f
8ee2740eb12d 2009-03-19 ghee teo <[email protected]>
gheet
parents: 14432
diff changeset
    53
#automake --add-missing
13285
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    54
autoconf
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    55
CFLAGS="$RPM_OPT_FLAGS"
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    56
./configure \
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    57
    --prefix=%{_prefix} \
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    58
    --datadir=%{_datadir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    59
make -j $CPUS
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    60
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    61
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    62
%install
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    63
rm -rf $RPM_BUILD_ROOT
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    64
make install DESTDIR=$RPM_BUILD_ROOT
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    65
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    66
%if %build_l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    67
%else
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    68
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    69
%endif
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    70
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    71
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    72
%if %{!?_without_gtk_doc:0}%{?_without_gtk_doc:1}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    73
rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    74
%endif
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    75
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    76
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    77
%clean
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    78
#rm -rf $RPM_BUILD_ROOT
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    79
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    80
%files
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    81
%defattr (-, root, bin)
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    82
%dir %attr (0755, root, bin) %{_bindir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    83
%{_bindir}/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    84
%dir %attr (0755, root, other) %{_datadir}/applications
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    85
%{_datadir}/applications/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    86
%dir %attr (0755, root, other) %{_datadir}/icons
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    87
%{_datadir}/icons/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    88
%dir %attr (0755, root, other) %{_datadir}/%{name}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    89
%{_datadir}/%{name}/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    90
%dir %attr (0755, root, other) %{_datadir}/gnome
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    91
%{_datadir}/gnome/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    92
%dir %attr (0755, root, other) %{_datadir}/omf
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    93
%{_datadir}/omf/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    94
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    95
%if %build_l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    96
%files l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    97
%defattr (-, root, bin)
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    98
%dir %attr (0755, root, sys) %{_datadir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    99
%attr (-, root, other) %{_datadir}/locale
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   100
%endif
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   101
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   102
%changelog
15902
2480f9131304 2009-06-15 Ghee Teo - <[email protected]>
gheet
parents: 15650
diff changeset
   103
* Mon Jun 15 2009 - [email protected]
2480f9131304 2009-06-15 Ghee Teo - <[email protected]>
gheet
parents: 15650
diff changeset
   104
- Bump to 2.26.2
15628
2d07f9379a86 2009-04-16 Dave Lin <[email protected]>
davelam
parents: 15451
diff changeset
   105
* Wed Apr 15 2009 - [email protected]
2d07f9379a86 2009-04-16 Dave Lin <[email protected]>
davelam
parents: 15451
diff changeset
   106
- Bump to 2.26.1
13822
903591b24a9d 2008-09-29 Christian Kelly <[email protected]>
chrisk
parents: 13492
diff changeset
   107
* Mon Sep 29 2008 - [email protected]
903591b24a9d 2008-09-29 Christian Kelly <[email protected]>
chrisk
parents: 13492
diff changeset
   108
- Bump to 2.22.1.
13492
fa06dfd3a477 2008-09-10 Takao Fujiwara <[email protected]>
fujiwara
parents: 13326
diff changeset
   109
* Wed Sep 10 2008 - [email protected]
fa06dfd3a477 2008-09-10 Takao Fujiwara <[email protected]>
fujiwara
parents: 13326
diff changeset
   110
- Update 01-sun-patch.diff to enable ping hostname.
13285
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   111
* Mon Aug 04 2008 - [email protected]
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   112
- Initial spec