SUNWgnome-nettool.spec revision 18688
10139N/A#
10139N/A# spec file for package SUNWgnome-nettool
10139N/A#
12251N/A# includes module(s): gnome-nettool
10139N/A#
10139N/A# Copyright 2009 Sun Microsystems, Inc.
10139N/A# This file and all modifications and additions to the pristine
10139N/A# package are under the same license as the package itself.
10139N/A#
10139N/A%define owner gheet
11195N/A#
10139N/A%include Solaris.inc
10139N/A%define makeinstall make install
13276N/A%use nettool = gnome-nettool.spec
10139N/A
10139N/AName: SUNWgnome-nettool
10139N/AIPS_package_name: desktop/network/gnome-nettool
10139N/AMeta(info.classification): %{classification_prefix}:Applications/Internet
13276N/ASummary: GNOME Network Tools
10142N/ALicense: GPL v2
12570N/AVendor: Sun Microsystems, Inc.
12773N/AVersion: %{nettool.version}
12773N/ASource: %{name}-manpages-0.1.tar.gz
12773N/ASUNW_BaseDir: %{_basedir}
10139N/ASUNW_Copyright: %{name}.copyright
11195N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10529N/A%include default-depend.inc
12248N/ARequires: SUNWlibgtop
10139N/ARequires: SUNWlibglade
12248N/ARequires: SUNWgnome-libs
10139N/ARequires: SUNWgnome-config
12248N/ARequires: SUNWdesktop-cache
12570N/ABuildRequires: SUNWlibglade-devel
13276N/ABuildRequires: SUNWgnome-config-devel
10139N/A
10139N/A%if %build_l10n
10139N/A%package l10n
10139N/ASummary: %{summary} - l10n files
10139N/ASUNW_BaseDir: %{_basedir}
10139N/A%include default-depend.inc
10139N/ARequires: %{name}
10139N/A%endif
10139N/A
10139N/A%prep
10139N/Arm -rf %name-%version
10139N/Amkdir -p %name-%version
10139N/A%nettool.prep -d %name-%version
10139N/Acd %{_builddir}/%name-%version
10139N/Agzcat %SOURCE0 | tar xf -
10139N/A
10139N/A%build
10139N/Aexport LDFLAGS="%_ldflags"
10139N/Aexport PKG_CONFIG_PATH=%{_pkg_config_path}
10139N/Aexport CFLAGS="%optflags"
10139N/Aexport RPM_OPT_FLAGS="$CFLAGS"
10139N/A%nettool.build -d %name-%version
10139N/A
10139N/A%install
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A%nettool.install -d %name-%version
10139N/Acd %{_builddir}/%name-%version/sun-manpages
10139N/Amake install DESTDIR=$RPM_BUILD_ROOT
10139N/A
10139N/A%if %build_l10n
10139N/A%else
10139N/A# REMOVE l10n FILES
10139N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
10139N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
10139N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/gnome-nettool-[a-z]*.omf
10139N/A%endif
10139N/A
10139N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):supported" $RPM_BUILD_ROOT}
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%post
10139N/A%restart_fmri desktop-mime-cache
10139N/A
10139N/A%postun
10139N/A%restart_fmri desktop-mime-cache
10139N/A
10139N/A%files
10139N/A%doc -d gnome-nettool-%{nettool.version} README AUTHORS
10139N/A%doc(bzip2) -d gnome-nettool-%{nettool.version} COPYING NEWS ChangeLog
10139N/A%dir %attr (0755, root, other) %{_datadir}/doc
10139N/A%defattr (-, root, bin)
12728N/A%dir %attr (0755, root, bin) %{_bindir}
12728N/A%{_bindir}/*
12728N/A%dir %attr (-, root, sys) %{_datadir}
10139N/A%dir %attr (-, root, other) %{_datadir}/applications
10142N/A%{_datadir}/applications/*
10139N/A%dir %attr (-, root, other) %{_datadir}/icons
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor
11195N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16
12248N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/16x16/apps
10139N/A%{_datadir}/icons/hicolor/16x16/apps/*.png
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/22x22/apps
10139N/A%{_datadir}/icons/hicolor/22x22/apps/*.png
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/24x24/apps
10139N/A%{_datadir}/icons/hicolor/24x24/apps/*.png
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/32x32/apps
10139N/A%{_datadir}/icons/hicolor/32x32/apps/*.png
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable
10139N/A%dir %attr (-, root, other) %{_datadir}/icons/hicolor/scalable/apps
10139N/A%{_datadir}/icons/hicolor/scalable/apps/*.svg
10139N/A%dir %attr (0755, root, other) %{_datadir}/%{nettool.name}
10139N/A%dir %attr (0755, root, other) %{_datadir}/%{nettool.name}/dialogs
10139N/A%{_datadir}/%{nettool.name}/dialogs/*
10139N/A%dir %attr (0755, root, other) %{_datadir}/%{nettool.name}/pixmaps
10139N/A%{_datadir}/%{nettool.name}/pixmaps/*
10139N/A%dir %attr (-, root, other) %{_datadir}/gnome
10139N/A%dir %attr (-, root, bin) %{_datadir}/gnome/help
10139N/A#%dir %attr (-, root, other) %{_datadir}/gnome/help/%{nettool.name}
10139N/A#%dir %attr (-, root, other) %{_datadir}/gnome/help/%{nettool.name}/C
10139N/A%{_datadir}/gnome/help/%{nettool.name}/C/*
10139N/A%dir %attr (-, root, bin) %{_datadir}/omf
12773N/A#%dir %attr (-, root, other) %{_datadir}/omf/%{nettool.name}
12773N/A%{_datadir}/omf/%{nettool.name}/*-C.omf
12773N/A%{_mandir}/*/*
12773N/A
12773N/A%if %build_l10n
10139N/A%files l10n
10139N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, sys) %{_datadir}
10139N/A%attr (-, root, other) %{_datadir}/locale
10139N/A%dir %attr (-, root, other) %{_datadir}/gnome
10139N/A%dir %attr (-, root, bin) %{_datadir}/gnome/help
10139N/A#%dir %attr (-, root, other) %{_datadir}/gnome/help/%{nettool.name}
10139N/A#%dir %attr (-, root, other) %{_datadir}/gnome/help/%{nettool.name}/C
10139N/A%{_datadir}/gnome/help/*/[a-z]*
10139N/A%dir %attr (-, root, bin) %{_datadir}/omf
10139N/A#%dir %attr (-, root, other) %{_datadir}/omf/%{nettool.name}
11271N/A%{_datadir}/omf/%{nettool.name}/*-[a-z]*.omf
10139N/A%endif
10139N/A
10139N/A%changelog
10139N/A* Fri Apr 3 2009 - laca@sun.com
10139N/A- use desktop-cache instead of postrun
10139N/A* Tue Sep 23 2008 - dave.lin@sun.com
10139N/A- Change attribute conflict with SUNWgnome-l10n*
10139N/A %{_datadir}/gnome/help/%{nettool.name}
10139N/A %{_datadir}/omf/%{nettool.name}
10139N/A* Wed Sep 10 2008 - ghee.teo@sun.com
10139N/A- add %doc for copyright files.
10139N/A* Wed Sep 10 2008 - takao.fujiwara@sun.com
10139N/A- Updated for l10n omf files.
10139N/A* Mon Aug 25 2008 - ghee.teo@sun.com
10139N/A- initial version created
10139N/A
10139N/A