SUNWIPython.spec
author henryz
Wed, 09 Apr 2008 07:35:21 +0000
changeset 12065 ec40d145a28b
parent 11976 798f0ce46ec6
child 13654 c8faa3142749
permissions -rw-r--r--
+2008-04-09 Henry Zhang <[email protected]> + + * patches/virt-manager-04-temporary-patch.diff: + Change the patch to fix AllY bug, 6686007 +
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     1
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     2
# spec file for package SUNWIPython
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     3
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     4
# includes module(s): ipython
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     5
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     6
# Copyright (c) 2005 Sun Microsystems, Inc.
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     8
# package are under the same license as the package itself.
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
     9
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    10
# Owner: liyuan
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    11
#
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    12
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    13
%include Solaris.inc
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    14
%use ipython = ipython.spec
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    15
10422
5ac343fe2135 2007-09-03 Damien Carbery <[email protected]>
dcarbery
parents: 10419
diff changeset
    16
Name:                    SUNWIPython
5ac343fe2135 2007-09-03 Damien Carbery <[email protected]>
dcarbery
parents: 10419
diff changeset
    17
Summary:                 Enhanced interactive Python shell
5ac343fe2135 2007-09-03 Damien Carbery <[email protected]>
dcarbery
parents: 10419
diff changeset
    18
Version:                 %{ipython.version}
5ac343fe2135 2007-09-03 Damien Carbery <[email protected]>
dcarbery
parents: 10419
diff changeset
    19
Source:                  %{name}-manpages-0.1.tar.gz
5ac343fe2135 2007-09-03 Damien Carbery <[email protected]>
dcarbery
parents: 10419
diff changeset
    20
SUNW_BaseDir:            %{_basedir}
11976
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 10436
diff changeset
    21
SUNW_Copyright:          %{name}.copyright
10422
5ac343fe2135 2007-09-03 Damien Carbery <[email protected]>
dcarbery
parents: 10419
diff changeset
    22
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    23
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    24
%include default-depend.inc
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    25
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    26
Requires: SUNWPython
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    27
BuildRequires: SUNWPython-devel
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    28
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    29
%prep
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    30
rm -rf %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    31
mkdir %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    32
%ipython.prep -d %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    33
cd %{_builddir}/%name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    34
gzcat %SOURCE0 | tar xf -
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    35
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    36
%build
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    37
export PKG_CONFIG_PATH=%{_pkg_config_path}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    38
export MSGFMT="/usr/bin/msgfmt"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    39
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    40
export PYTHON="/usr/bin/python"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    41
export CPPFLAGS="-I/usr/include/python2.4"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    42
export CFLAGS="%optflags -I%{_includedir} -I/usr/include/python2.4"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    43
export RPM_OPT_FLAGS="$CFLAGS"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    44
export LDFLAGS="%_ldflags"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    45
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    46
%ipython.build -d %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    47
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    48
%install
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    49
%ipython.install -d %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    50
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    51
# install man page
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    52
rm -rf $RPM_BUILD_ROOT%{_mandir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    53
cd %{_builddir}/%name-%version/sun-manpages
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    54
make install DESTDIR=$RPM_BUILD_ROOT
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    55
10436
2991dfd257dc Add not explaining why irunner files are deleted before packaging.
dcarbery
parents: 10425
diff changeset
    56
# Delete irunner because it depends on pexpect which is not in Solaris.
10425
ef1c8148d1aa 2007-09-03 Li Yuan <[email protected]>
liyuan
parents: 10422
diff changeset
    57
rm -rf $RPM_BUILD_ROOT%{_bindir}/irunner
ef1c8148d1aa 2007-09-03 Li Yuan <[email protected]>
liyuan
parents: 10422
diff changeset
    58
rm -rf $RPM_BUILD_ROOT%{_libdir}/python2.4/site-packages/IPython/irunner.*
ef1c8148d1aa 2007-09-03 Li Yuan <[email protected]>
liyuan
parents: 10422
diff changeset
    59
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    60
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    61
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    62
%clean
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    63
rm -rf $RPM_BUILD_ROOT
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    64
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    65
%files
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    66
%defattr(-,root,bin)
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    67
%dir %attr (0755, root, bin) %{_bindir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    68
%{_bindir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    69
%dir %attr (0755, root, bin) %{_libdir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    70
%{_libdir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    71
%dir %attr(0755, root, sys) %{_datadir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    72
%dir %attr(0755, root, bin) %{_mandir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    73
%dir %attr(0755, root, bin) %{_mandir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    74
%{_mandir}/*/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    75
%dir %attr (0755, root, other) %{_docdir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    76
%{_docdir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    77
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    78
%changelog
11976
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 10436
diff changeset
    79
* Mon Mar 31 2008 - [email protected]
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 10436
diff changeset
    80
- Add copyright file
10425
ef1c8148d1aa 2007-09-03 Li Yuan <[email protected]>
liyuan
parents: 10422
diff changeset
    81
* Mon Sep 03 2007 - [email protected]
ef1c8148d1aa 2007-09-03 Li Yuan <[email protected]>
liyuan
parents: 10422
diff changeset
    82
- Remove irunner for we do not use it.
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    83
* Sun Sep 02 2007 - [email protected]
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    84
- Initial version.