Merged trunk changes r9797:9829 into 217update branch.
#
# spec file for package SUNWgnome-menu-editor
#
# includes module(s): alacarte
#
# Copyright (c) 2004 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: harrylu
#
%include Solaris.inc
%use alacarte = alacarte.spec
Name: SUNWgnome-menu-editor
Summary: %alacarte.summary
Version: %{default_pkg_version}
Source: %{name}-manpages-0.1.tar.gz
SUNW_BaseDir: %{_basedir}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWgnome-libs
Requires: SUNWgnome-panel
Requires: SUNWgnome-python-libs
Requires: SUNWpostrun
Requires: SUNWPython
BuildRequires: SUNWgnome-libs-devel
BuildRequires: SUNWgnome-python-libs-devel
BuildRequires: SUNWPython
%prep
rm -rf %name-%version
mkdir -p %name-%version
%alacarte.prep -d %name-%version
cd %{_builddir}/%name-%version
gzcat %SOURCE0 | tar xf -
%build
export CFLAGS="%optflags"
export PYTHON="/usr/bin/python"
%alacarte.build -d %name-%version
%install
%alacarte.install -d %name-%version
rm -rf $RPM_BUILD_ROOT%{_mandir}
cd %{_builddir}/%name-%version/sun-manpages
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
rm -rf ${RPM_BUILD_ROOT}DISABLE
%post
( echo 'test -x /usr/bin/gtk-update-icon-cache || exit 0';
echo 'rm -f %{_datadir}/icons/*/icon-theme.cache' ;
echo 'ls -d %{_datadir}/icons/* | xargs -l1 /usr/bin/gtk-update-icon-cache'
) | $PKG_INSTALL_ROOT/usr/lib/postrun -b -u -t 5
%files
%defattr(-, root, bin)
%{_bindir}/
%attr (-, root, bin) %{_libdir}/python*
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/alacarte
%dir %attr (0755, root, other) %{_datadir}/applications
%{_datadir}/applications/*
%attr (-, root, other) %{_datadir}/icons
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/man1
%{_mandir}/man1/*
%changelog
* Fri Nov 16 2006 - [email protected]
- Add missing SUNWPython dependency (for /usr/bin/alacarte).
* Mon Sep 04 2006 - [email protected]
- New Manpage tarball
* Tue Aug 22 2006 - [email protected]
- Divide SFEgnome-menu-editor.spec into alacarte.spec
and SUNWgnome-menu-editor.spec
* Wed Aug 16 2006 - [email protected]
- bump up to 0.9.90 and add patch alacarte-01-force-reload.diff to make
it work on solaris.
* Wed Jul 5 2006 - [email protected]
- rename to SUNWgnome-menu-editor
- delete share subpkg
* Fri Apr 21 2006 - [email protected]
- Initial spec file