SUNWIPython.spec
author chrisk
Mon, 31 Aug 2009 16:23:04 +0000
changeset 16434 f21f22550fe9
parent 14933 5a6e5b08dc39
child 16673 6d8e16721707
permissions -rw-r--r--
2009-08-31 Christian Kelly <[email protected]> * base-specs/*.spec, *.spec: Change owner field to be parsable with spectool.
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
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 14933
diff changeset
    10
%define owner liyuan
10419
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
14933
5a6e5b08dc39 2009-01-19 Brian Cameron <[email protected]>
yippi
parents: 14846
diff changeset
    28
BuildRequires: SUNWpython-setuptools
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    29
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    30
%prep
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    31
rm -rf %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    32
mkdir %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    33
%ipython.prep -d %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    34
cd %{_builddir}/%name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    35
gzcat %SOURCE0 | tar xf -
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    36
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    37
%build
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    38
export PKG_CONFIG_PATH=%{_pkg_config_path}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    39
export MSGFMT="/usr/bin/msgfmt"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    40
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    41
export PYTHON="/usr/bin/python"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    42
export CPPFLAGS="-I/usr/include/python2.4"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    43
export CFLAGS="%optflags -I%{_includedir} -I/usr/include/python2.4"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    44
export RPM_OPT_FLAGS="$CFLAGS"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    45
export LDFLAGS="%_ldflags"
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    46
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    47
%ipython.build -d %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    48
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    49
%install
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    50
%ipython.install -d %name-%version
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    51
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    52
# install man page
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    53
rm -rf $RPM_BUILD_ROOT%{_mandir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    54
cd %{_builddir}/%name-%version/sun-manpages
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    55
make install DESTDIR=$RPM_BUILD_ROOT
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    56
10436
2991dfd257dc Add not explaining why irunner files are deleted before packaging.
dcarbery
parents: 10425
diff changeset
    57
# 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
    58
rm -rf $RPM_BUILD_ROOT%{_bindir}/irunner
ef1c8148d1aa 2007-09-03 Li Yuan <[email protected]>
liyuan
parents: 10422
diff changeset
    59
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
    60
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    61
%{?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
    62
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    63
%clean
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    64
rm -rf $RPM_BUILD_ROOT
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    65
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    66
%files
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    67
%defattr(-,root,bin)
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    68
%dir %attr (0755, root, bin) %{_bindir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    69
%{_bindir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    70
%dir %attr (0755, root, bin) %{_libdir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    71
%{_libdir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    72
%dir %attr(0755, root, sys) %{_datadir}
14846
d85e8caedce2 2009-01-06 Christian Kelly <[email protected]>
chrisk
parents: 13654
diff changeset
    73
%doc -d ipython-%{ipython.version} IPython/DPyGetOpt.py
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    74
%dir %attr(0755, root, bin) %{_mandir}
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    75
%dir %attr(0755, root, bin) %{_mandir}/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    76
%{_mandir}/*/*
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    77
%dir %attr (0755, root, other) %{_docdir}
13654
c8faa3142749 2008-09-18 Li Yuan <liyuan@match>
liyuan
parents: 11976
diff changeset
    78
%dir %attr (0755, root, other) %{_docdir}/ipython
c8faa3142749 2008-09-18 Li Yuan <liyuan@match>
liyuan
parents: 11976
diff changeset
    79
%{_docdir}/ipython/*
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    80
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    81
%changelog
14846
d85e8caedce2 2009-01-06 Christian Kelly <[email protected]>
chrisk
parents: 13654
diff changeset
    82
* Tue Jan 06 2009 - [email protected] 
d85e8caedce2 2009-01-06 Christian Kelly <[email protected]>
chrisk
parents: 13654
diff changeset
    83
- Took out doc/COPYING and doc/Changelog of %doc section.
13654
c8faa3142749 2008-09-18 Li Yuan <liyuan@match>
liyuan
parents: 11976
diff changeset
    84
* Thu Sep 18 2008 - [email protected]
c8faa3142749 2008-09-18 Li Yuan <liyuan@match>
liyuan
parents: 11976
diff changeset
    85
- Added %doc to %files for copyright.
11976
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 10436
diff changeset
    86
* Mon Mar 31 2008 - [email protected]
798f0ce46ec6 2008-03-31 Li Yuan <[email protected]>
liyuan
parents: 10436
diff changeset
    87
- Add copyright file
10425
ef1c8148d1aa 2007-09-03 Li Yuan <[email protected]>
liyuan
parents: 10422
diff changeset
    88
* Mon Sep 03 2007 - [email protected]
ef1c8148d1aa 2007-09-03 Li Yuan <[email protected]>
liyuan
parents: 10422
diff changeset
    89
- Remove irunner for we do not use it.
10419
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    90
* Sun Sep 02 2007 - [email protected]
ece4471e32c2 2007-09-02 Li Yuan <[email protected]>
liyuan
parents:
diff changeset
    91
- Initial version.