SUNWgnome-nettool.spec
author gheet
Tue, 26 Aug 2008 14:36:02 +0000
changeset 13287 18e1d615e957
parent 13285 ce15225eaad7
child 13326 847a3a6d0825
permissions -rw-r--r--
2008-08-26 Ghee Teo <[email protected]> Updated spec files to make sure directory attributes are correct and also full libraries linkage. * SUNWgnome-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 SUNWgnome-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
# includes module(s): gnome-nettool
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     5
#
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     6
# Copyright 2008 Sun Microsystems, Inc.
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     8
# package are under the same license as the package itself.
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
# Owner: gheet
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    11
#
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    12
%include Solaris.inc
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    13
%define makeinstall make install
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    14
%use nettool = gnome-nettool.spec
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    15
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    16
Name:          SUNWgnome-nettool
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    17
Summary:       GNOME Network Tools
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    18
Version:       %{nettool.version}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    19
Source:        %{name}-manpages-0.1.tar.gz
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
SUNW_Copyright:  %{name}.copyright
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    22
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    23
%include default-depend.inc
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    24
Requires:      SUNWgnome-base-libs
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    25
Requires:      SUNWgnome-libs
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    26
Requires:      SUNWgnome-config
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    27
BuildRequires: SUNWgnome-config-devel
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    28
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    29
%if %build_l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    30
%package l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    31
Summary:       %{summary} - l10n files
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    32
SUNW_BaseDir:  %{_basedir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    33
%include default-depend.inc
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    34
Requires:      %{name}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    35
%endif
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    36
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    37
%prep
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    38
rm -rf %name-%version
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    39
mkdir -p %name-%version
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    40
%nettool.prep -d %name-%version
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    41
cd %{_builddir}/%name-%version
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    42
gzcat %SOURCE0 | tar xf -
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    43
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    44
%build
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    45
export LDFLAGS="%_ldflags"
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    46
export PKG_CONFIG_PATH=%{_pkg_config_path}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    47
export CFLAGS="%optflags" 
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    48
export RPM_OPT_FLAGS="$CFLAGS"
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    49
%nettool.build -d %name-%version
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    50
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    51
%install
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    52
rm -rf $RPM_BUILD_ROOT
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    53
%nettool.install -d %name-%version
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    54
cd %{_builddir}/%name-%version/sun-manpages
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    55
make install DESTDIR=$RPM_BUILD_ROOT
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    56
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    57
%if %build_l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    58
%else
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    59
# REMOVE l10n FILES
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    60
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    61
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    62
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/gnome-nettool-??*.omf
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    63
%endif
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
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    66
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    67
%clean
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    68
rm -rf $RPM_BUILD_ROOT
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    69
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    70
%post
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    71
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    72
  echo '/usr/bin/update-desktop-database'
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    73
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    74
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    75
  echo '/usr/bin/scrollkeeper-update'
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    76
) | $BASEDIR/lib/postrun -b -u -c JDS
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
%postun
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    79
test -x $BASEDIR/lib/postrun || exit 0
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    80
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    81
  echo '/usr/bin/update-desktop-database'
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    82
) | $BASEDIR/lib/postrun -b -u -c JDS
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    83
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    84
  echo '/usr/bin/scrollkeeper-update'
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    85
) | $BASEDIR/lib/postrun -b -u -c JDS
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
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    88
%files
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    89
%defattr (-, root, bin)
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    90
%dir %attr (0755, root, bin) %{_bindir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    91
%{_bindir}/*
13287
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
    92
%dir %attr (-, root, sys) %{_datadir}
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
    93
%dir %attr (-, root, other) %{_datadir}/applications
13285
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    94
%{_datadir}/applications/*
13287
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
    95
%dir %attr (-, root, other) %{_datadir}/icons
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
    96
%dir %attr (-, root, other) %{_datadir}/icons/hicolor
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
    97
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
    98
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
    99
%{_datadir}/icons/hicolor/16x16/apps/*.png
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   100
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   101
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   102
%{_datadir}/icons/hicolor/22x22/apps/*.png
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   103
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   104
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   105
%{_datadir}/icons/hicolor/24x24/apps/*.png
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   106
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   107
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   108
%{_datadir}/icons/hicolor/32x32/apps/*.png
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   109
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   110
%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   111
%{_datadir}/icons/hicolor/scalable/apps/*.svg
13285
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   112
%dir %attr (0755, root, other) %{_datadir}/%{nettool.name}
13287
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   113
%dir %attr (0755, root, other) %{_datadir}/%{nettool.name}/dialogs
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   114
%{_datadir}/%{nettool.name}/dialogs/*
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   115
%dir %attr (0755, root, other) %{_datadir}/%{nettool.name}/pixmaps
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   116
%{_datadir}/%{nettool.name}/pixmaps/*
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   117
%dir %attr (-, root, other) %{_datadir}/gnome
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   118
%dir %attr (-, root, bin) %{_datadir}/gnome/help
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   119
%dir %attr (-, root, other) %{_datadir}/gnome/help/%{nettool.name}
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   120
%dir %attr (-, root, other) %{_datadir}/gnome/help/%{nettool.name}/C
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   121
%{_datadir}/gnome/help/%{nettool.name}/C/*
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   122
%dir %attr (-, root, bin) %{_datadir}/omf
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   123
%dir %attr (-, root, other) %{_datadir}/omf/%{nettool.name}
18e1d615e957 2008-08-26 Ghee Teo <[email protected]>
gheet
parents: 13285
diff changeset
   124
%{_datadir}/omf/%{nettool.name}/*
13285
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   125
%{_mandir}/*/*
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   126
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   127
%if %build_l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   128
%files l10n
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   129
%defattr (-, root, bin)
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   130
%dir %attr (0755, root, sys) %{_datadir}
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   131
%attr (-, root, other) %{_datadir}/locale
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   132
%endif
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   133
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   134
%changelog
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   135
* Mon Aug 25 2008 - [email protected]
ce15225eaad7 2008-08-26 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
   136
- initial version created