base-specs/gnome-nettool.spec
author gheet
Tue, 26 Aug 2008 13:27:39 +0000
changeset 13285 ce15225eaad7
child 13326 847a3a6d0825
permissions -rw-r--r--
2008-08-26 Ghee Teo <[email protected]> First putback for the gnome-nettool port for OpenSolaris. * SUNWgnome-nettool.spec: * base-specs/gnome-nettool.spec: * copyright/SUNWgnome-nettool.copyright: * manpages/Makefile: * manpages/man1/gnome-nettool.1: * 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
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    14
Version:            2.22.0
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
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    17
Source:		    http://ftp.gnome.org/pub/GNOME/sources/gnome-nettool/2.22/gnome-nettool-%{version}.tar.bz2
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    18
Patch1:             %{name}-01-sun-patch.diff
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    19
SUNW_BaseDir:       %{_basedir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    20
BuildRoot:          %{_tmppath}/%{name}-%{version}-build
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    21
%include default-depend.inc
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    22
Requires:           SUNWgnome-base-libs
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
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    49
aclocal $ACLOCAL_FLAGS -I .
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    50
#autoheader
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    51
#automake -a -c -f
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    52
automake --add-missing
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    53
autoconf
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    54
CFLAGS="$RPM_OPT_FLAGS"
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    55
./configure \
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    56
    --prefix=%{_prefix} \
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    57
    --datadir=%{_datadir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    58
make -j $CPUS
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    59
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
%install
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    62
rm -rf $RPM_BUILD_ROOT
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    63
make install DESTDIR=$RPM_BUILD_ROOT
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    64
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    65
%if %build_l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    66
cd $RPM_BUILD_ROOT%{_datadir}/locale
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    67
# Rename dirs that are symlinks on the installed system.
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    68
mv de_DE de
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    69
mv fi_FI fi
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    70
mv fr_FR fr
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    71
mv it_IT it
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    72
mv no_NO no
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    73
mv ru_RU ru
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    74
%else
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    75
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    76
%endif
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    77
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    78
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    79
%if %{!?_without_gtk_doc:0}%{?_without_gtk_doc:1}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    80
rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    81
%endif
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    82
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    83
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    84
%clean
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    85
#rm -rf $RPM_BUILD_ROOT
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    86
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    87
%files
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    88
%defattr (-, root, bin)
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    89
%dir %attr (0755, root, bin) %{_bindir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    90
%{_bindir}/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    91
%dir %attr (0755, root, other) %{_datadir}/applications
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    92
%{_datadir}/applications/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    93
%dir %attr (0755, root, other) %{_datadir}/icons
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    94
%{_datadir}/icons/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    95
%dir %attr (0755, root, other) %{_datadir}/%{name}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    96
%{_datadir}/%{name}/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    97
%dir %attr (0755, root, other) %{_datadir}/gnome
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    98
%{_datadir}/gnome/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    99
%dir %attr (0755, root, other) %{_datadir}/omf
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   100
%{_datadir}/omf/*
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
%if %build_l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   103
%files l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   104
%defattr (-, root, bin)
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   105
%dir %attr (0755, root, sys) %{_datadir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   106
%attr (-, root, other) %{_datadir}/locale
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   107
%endif
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   108
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   109
%changelog
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   110
* Mon Aug 04 2008 - [email protected]
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   111
- Initial spec