SUNWgnome-python-desktop.spec
author daniell
Wed, 13 Oct 2010 16:43:58 +0000
branchopensolaris-2009-06
changeset 20159 f18a6979f732
parent 14173 fe63d4719576
child 15572 9595b0e58586
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-python-desktop
#
# includes module(s): gnome-python-desktop
#
# Copyright (c) 2005 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: laca
#
%include Solaris.inc
%use gnome_python_desktop = gnome-python-desktop.spec

Name:              SUNWgnome-python-desktop
Summary:           Python support desktop libraries for GNOME
Version:           %{default_pkg_version}
SUNW_BaseDir:      %{_basedir}
SUNW_Copyright:    %{name}.copyright
BuildRoot:         %{_tmppath}/%{name}-%{version}-build

%include default-depend.inc
Requires: SUNWgnome-python-libs
Requires: SUNWgnome-file-mgr
Requires: SUNWgnome-print
Requires: SUNWgnome-a11y-libs
Requires: SUNWgnome-libs
Requires: SUNWPython-extra
Requires: SUNWjdsrm
Requires: SUNWgnome-config
Requires: SUNWPython
Requires: SUNWgnome-base-libs
Requires: SUNWgnome-vfs
Requires: SUNWlibms
Requires: SUNWlibpopt
Requires: SUNWmlib
Requires: SUNWgnome-gtksourceview
Requires: SUNWgnome-cd-burner
Requires: SUNWgnome-component
Requires: SUNWgnome-media-apps
Requires: SUNWgnome-media-player
Requires: SUNWgnome-panel
Requires: SUNWgnome-wm
Requires: SUNWlibgtop
BuildRequires: SUNWPython-devel
BuildRequires: SUNWgnome-config-devel
BuildRequires: SUNWgnome-python-libs-devel
BuildRequires: SUNWgnome-vfs-devel
BuildRequires: SUNWlibpopt-devel
BuildRequires: SUNWgnome-libs-devel
BuildRequires: SUNWgnome-base-libs-devel
BuildRequires: SUNWgnome-file-mgr-devel
BuildRequires: SUNWgnome-print-devel
BuildRequires: SUNWgnome-a11y-libs-devel
BuildRequires: SUNWPython-extra
BuildRequires: SUNWgnome-component-devel
BuildRequires: SUNWgnome-config-devel
BuildRequires: SUNWgnome-cd-burner-devel
BuildRequires: SUNWgnome-component-devel
BuildRequires: SUNWgnome-media-apps-devel
BuildRequires: SUNWgnome-media-player-devel
BuildRequires: SUNWgnome-panel-devel
BuildRequires: SUNWgnome-wm-devel
BuildRequires: SUNWgnome-gtksourceview-devel
BuildRequires: SUNWlibgtop-devel
BuildRequires: SUNWpython-setuptools

%package devel
Summary:           %{summary} - development files
SUNW_BaseDir:      %{_basedir}
%include default-depend.inc
Requires: %name

%prep
rm -rf %name-%version
mkdir %name-%version
%gnome_python_desktop.prep -d %name-%version

%build
export MSGFMT="/usr/bin/msgfmt"
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
export PYTHON="/usr/bin/python"
export CPPFLAGS="-I/usr/xpg4/include -I/usr/include/python2.4"
export CFLAGS="%optflags -I/usr/xpg4/include -I%{_includedir} -I/usr/include/python2.4"
export RPM_OPT_FLAGS="$CFLAGS"
export LDFLAGS="%_ldflags"

%gnome_python_desktop.build -d %name-%version

%install
%gnome_python_desktop.install -d %name-%version

%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/python?.?/vendor-packages

%files devel
%defattr(-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/*
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/pygtk/*
%if %option_with_gtk_doc
%{_datadir}/gtk-doc/html/*
%endif

%changelog
* Wed Jul 23 2008 - [email protected]
- Wrap gtk-doc in %files with %if %option_with_gtk_doc.
* Wed May 07 2008 - [email protected]
- Remove PERL5LIB setting as it is not necessary.
* Tue Aug 08 2006 - [email protected]
- Add to Build/Requires after running check-deps.pl.
* Sun Jun 11 2006 - [email protected]
- change group from other to bin/sys
* Wed Mar 15 2006 - [email protected]
- Add to Build/Requires after running check-deps.pl.
* Tue Mar 14 2006 - [email protected]
- Set perms for %{_datadir} in devel package.
* Tue Mar 14 2006 - [email protected]
- Initial version because I'm too much of a wuss to merge it into
  SUNWgnome-python-libs.spec