SUNWgnome-menu-editor.spec
author daniell
Wed, 13 Oct 2010 16:43:58 +0000
branchopensolaris-2009-06
changeset 20159 f18a6979f732
parent 14173 fe63d4719576
child 15556 79756053d7da
permissions -rw-r--r--
6965295 [CVE-2010-1205/CVE-2010-2249] Multiple security issues in libpng 1.2 versions before 1.2.44

#
# spec file for package SUNWgnome-menu-editor
#
# includes module(s): alacarte
#
# Copyright 2007 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: jedy
#
%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_Copyright: %{name}.copyright
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
BuildRequires: SUNWpython-setuptools

%if %build_l10n
%package l10n
Summary:                 %{summary} - l10n files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires:                %{name}
%endif

%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

%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
%endif

%clean
rm -rf $RPM_BUILD_ROOT
rm -rf ${RPM_BUILD_ROOT}DISABLE

%post
%include icon-cache.script

%files
%doc -d alacarte-%{alacarte.version} AUTHORS
%doc(bzip2) -d alacarte-%{alacarte.version} ChangeLog
%doc(bzip2) -d alacarte-%{alacarte.version} COPYING
%defattr(-, root, bin)
%{_bindir}/
%attr (-, root, bin) %{_libdir}/python*
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/doc
%{_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/*

%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%endif

%changelog
* Fri Sep 19 2008 - [email protected]
- Set permissions on /usr/share/doc.
* Tue Sep 16 2008 - [email protected]
- Add copyright files.
* Tue Oct 12 2007 - [email protected]
- Take the ownership from harrylu and change the inline postinstall
  script to an include. 
* Tue Apr 24 2007 - [email protected]
- use $BASEDIR instead of $PKG_INSTALL_ROOT to fix diskless install
  (CR 6537817)
* Thu Nov 02 2006 - [email protected]
- Added l10n package. Fixes 6493499
* 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