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