+2008-04-09 Henry Zhang <
[email protected]>
+
+ * patches/virt-manager-04-temporary-patch.diff:
+ Change the patch to fix AllY bug, 6686007
+
#
# spec file for package SUNWIPython
#
# includes module(s): ipython
#
# 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: liyuan
#
%include Solaris.inc
%use ipython = ipython.spec
Name: SUNWIPython
Summary: Enhanced interactive Python shell
Version: %{ipython.version}
Source: %{name}-manpages-0.1.tar.gz
SUNW_BaseDir: %{_basedir}
SUNW_Copyright: %{name}.copyright
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
Requires: SUNWPython
BuildRequires: SUNWPython-devel
%prep
rm -rf %name-%version
mkdir %name-%version
%ipython.prep -d %name-%version
cd %{_builddir}/%name-%version
gzcat %SOURCE0 | tar xf -
%build
export PKG_CONFIG_PATH=%{_pkg_config_path}
export MSGFMT="/usr/bin/msgfmt"
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
export PYTHON="/usr/bin/python"
export CPPFLAGS="-I/usr/include/python2.4"
export CFLAGS="%optflags -I%{_includedir} -I/usr/include/python2.4"
export RPM_OPT_FLAGS="$CFLAGS"
export LDFLAGS="%_ldflags"
%ipython.build -d %name-%version
%install
%ipython.install -d %name-%version
# install man page
rm -rf $RPM_BUILD_ROOT%{_mandir}
cd %{_builddir}/%name-%version/sun-manpages
make install DESTDIR=$RPM_BUILD_ROOT
# Delete irunner because it depends on pexpect which is not in Solaris.
rm -rf $RPM_BUILD_ROOT%{_bindir}/irunner
rm -rf $RPM_BUILD_ROOT%{_libdir}/python2.4/site-packages/IPython/irunner.*
%{?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) %{_bindir}
%{_bindir}/*
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/*
%dir %attr(0755, root, sys) %{_datadir}
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/*
%{_mandir}/*/*
%dir %attr (0755, root, other) %{_docdir}
%{_docdir}/*
%changelog
* Mon Mar 31 2008 - [email protected]
- Add copyright file
* Mon Sep 03 2007 - [email protected]
- Remove irunner for we do not use it.
* Sun Sep 02 2007 - [email protected]
- Initial version.