2008-07-14 Darren Kenny <
[email protected]>
* base-specs/evince.spec,
patches/evince-03-static-enum.diff:
Add patch to fix crash when using presentation mode (bug#6724495), and
logged upstream bugzilla bug#542924.
#
# spec file for package SUNWgnome-system-monitor
#
# includes module(s): gnome-system-monitor
#
# Copyright 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: henry
#
%include Solaris.inc
%use gnomesystemmonitor = gnome-system-monitor.spec
Name: SUNWgnome-system-monitor
Summary: GNOME system monitor
Version: %{default_pkg_version}
SUNW_BaseDir: %{_basedir}
SUNW_Copyright: %{name}.copyright
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-manpages-0.1.tar.gz
%include default-depend.inc
Requires: SUNWgnome-config
Requires: SUNWgnome-base-libs
Requires: SUNWgnome-libs
Requires: SUNWgnome-themes
Requires: SUNWlibgtop
Requires: SUNWgnome-panel
Requires: SUNWperl-xml-parser
Requires: SUNWlibC
BuildRequires: SUNWgnome-base-libs-devel
BuildRequires: SUNWgnome-libs-devel
BuildRequires: SUNWgnome-themes-devel
BuildRequires: SUNWgnome-doc-utils
BuildRequires: SUNWgnome-config-devel
BuildRequires: SUNWlibgtop-devel
BuildRequires: SUNWgnome-panel-devel
BuildRequires: SUNWperl-xml-parser
Requires: SUNWpostrun
%if %build_l10n
%package l10n
Summary: %{summary} - l10n files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
Requires: %{name}
%endif
%package root
Summary: GNOME system monitor - platform dependent, / file system
SUNW_BaseDir: /
%include default-depend.inc
Requires: SUNWpostrun-root
Requires: SUNWgnome-config
%prep
rm -rf %name-%version
mkdir %name-%version
%gnomesystemmonitor.prep -d %name-%version
cd %{_builddir}/%name-%version
gzcat %SOURCE0 | tar xf -
%build
export CFLAGS="%optflags"
export RPM_OPT_FLAGS="$CFLAGS"
export LDFLAGS="%_ldflags -lsocket -lnsl"
export CXXFLAGS="%cxx_optflags"
%if %cc_is_gcc
%else
export CXX="${CXX} -norunpath"
%endif
%gnomesystemmonitor.build -d %name-%version
%install
%gnomesystemmonitor.install -d %name-%version
##rm -r $RPM_BUILD_ROOT%{_prefix}/var/scrollkeeper
#rm -r $RPM_BUILD_ROOT/var/lib/scrollkeeper
#rm -r $RPM_BUILD_ROOT/var
%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
%endif
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
rm -rf $RPM_BUILD_ROOT%{_mandir}
cd %{_builddir}/%name-%version/sun-manpages
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
echo '/usr/bin/update-desktop-database'
) | $BASEDIR/lib/postrun -b -u -c JDS_wait
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
%postun
test -x $BASEDIR/lib/postrun || exit 0
( echo 'test -x /usr/bin/update-desktop-database || exit 0';
echo '/usr/bin/update-desktop-database'
) | $BASEDIR/lib/postrun -b -u -c JDS
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
echo '/usr/bin/scrollkeeper-update'
) | $BASEDIR/lib/postrun -b -u -c JDS
%post root
%include gconf-install.script
%preun root
test -x $BASEDIR/var/lib/postrun/postrun || exit 0
( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {';
echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"';
echo ' exit 0';
echo '}';
echo 'umask 0022';
echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults';
echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2';
echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib';
echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH';
echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas';
echo 'schemas="$SDIR/gnome-system-monitor.schemas"';
echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas'
) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a
%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr(0755, root, sys) %{_datadir}
%dir %attr(0755, root, other) %{_datadir}/applications
%{_datadir}/applications/*
%dir %attr(0755, root, other) %{_datadir}/gnome
%dir %attr(0755, root, bin) %{_datadir}/gnome/help
%{_datadir}/gnome/help/*/C
%dir %attr(0755, root, bin) %{_datadir}/omf
%{_datadir}/omf/*/*-C.omf
%dir %attr (0755, root, other) %{_datadir}/pixmaps
%{_datadir}/pixmaps/gnome-system-monitor/side.png
%dir %attr(0755, root, bin) %{_mandir}
%{_mandir}/*/*
%files root
%defattr (-, root, sys)
%attr (0755, root, sys) %dir %{_sysconfdir}
%{_sysconfdir}/gconf/schemas/gnome-system-monitor.schemas
%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%dir %attr(0755, root, other) %{_datadir}/gnome
%dir %attr(0755, root, bin) %{_datadir}/gnome/help
%dir %attr(0755, root, bin) %{_datadir}/gnome/help/gnome-system-monitor
%{_datadir}/gnome/help/*/[a-z]*
%dir %attr(0755, root, bin) %{_datadir}/omf
%dir %attr(0755, root, bin) %{_datadir}/omf/gnome-system-monitor
%{_datadir}/omf/*/*-[a-z][a-z].omf
%endif
%changelog
* Thu Jan 3 2008 - [email protected]
- use gconf-install.script instead of an inline script
* Thu Oct 11 2007 - [email protected]
- Remove install dependency on SUNWgnome-doc-utils and change the build
dependency from SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils.
* Sat Aug 18 2007 - [email protected]
- Comment out removal of /var dirs as they are no longer installed.
* Thu Apr 26 2007 - [email protected]
- set CXX to $CXX -norunpath because libtool swallows this option sometimes
and leaves compiler paths in the binaries
* Tue Apr 24 2007 - [email protected]
- use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install
(CR 6537817)
* Tue Mar 06 2007 - [email protected]
- Add the omf files back to %files. Tweak %install and /var references.
* Wed Feb 14 2007 - [email protected]
- Remove omf files from %files as they aren't in the build! Remove reference
to ${_prefix}/var too as it is not installed.
* Mon Feb 5 2007 - [email protected]
- Add Requires SUNWlibC after check-deps.pl run.
* Fri Jan 26 2007 - [email protected]
- Delete dependency on SUNWpcre/-devel
* Wed Jan 10 2007 - [email protected]
- Add to LDFLAGS so that libsocket and libnsl are linked against.
* Tue Dec 19 2006 - [email protected]
- Add SUNWgnome-themes/-devel dependency for gnome-icon-theme module.
* Mon Dec 11 2006 - [email protected]
- Add SUNWpcre/-devel dependency.
* Wed Nov 22 2006 - [email protected]
- 2.17 update: Add SUNWgnome-libs/-devel dependency and add pixmaps to %files.
* Mon Sep 04 2006 - [email protected]
- New Manpage tarball
* Fri Aug 25 2006 - [email protected]
- make the postrun scripts use $BASEDIR instead of $PKG_INSTALL_ROOT so
that it works during diskless client installation, part of CR6448317
* Mon Jul 31 2006 - [email protected]
- Remove 'devel' package definition as there is no matching %files section.
* Sun Jul 23 2006 - [email protected]
- fix gconf schemas installation and attributes
* Fri Jul 21 2006 - [email protected]
- Delete one sentence for gconf problem.
* Thu Jul 20 2006 - [email protected]
- Fix omf file bug
* Wed Jul 19 2006 - [email protected]
- Fix dir perms and merge share pkg into base pkg.
* Fri Apr 21 2006 - [email protected]
- Inital spec file