author | chrisk |
Mon, 31 Aug 2009 16:23:04 +0000 | |
changeset 16434 | f21f22550fe9 |
parent 14933 | 5a6e5b08dc39 |
child 16673 | 6d8e16721707 |
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 |
# |
|
16434 | 10 |
%define owner liyuan |
10419 | 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 |
|
14933 | 28 |
BuildRequires: SUNWpython-setuptools |
10419 | 29 |
|
30 |
%prep |
|
31 |
rm -rf %name-%version |
|
32 |
mkdir %name-%version |
|
33 |
%ipython.prep -d %name-%version |
|
34 |
cd %{_builddir}/%name-%version |
|
35 |
gzcat %SOURCE0 | tar xf - |
|
36 |
||
37 |
%build |
|
38 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
|
39 |
export MSGFMT="/usr/bin/msgfmt" |
|
40 |
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" |
|
41 |
export PYTHON="/usr/bin/python" |
|
42 |
export CPPFLAGS="-I/usr/include/python2.4" |
|
43 |
export CFLAGS="%optflags -I%{_includedir} -I/usr/include/python2.4" |
|
44 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
45 |
export LDFLAGS="%_ldflags" |
|
46 |
||
47 |
%ipython.build -d %name-%version |
|
48 |
||
49 |
%install |
|
50 |
%ipython.install -d %name-%version |
|
51 |
||
52 |
# install man page |
|
53 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
54 |
cd %{_builddir}/%name-%version/sun-manpages |
|
55 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
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 | 58 |
rm -rf $RPM_BUILD_ROOT%{_bindir}/irunner |
59 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/python2.4/site-packages/IPython/irunner.* |
|
60 |
||
10419 | 61 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
62 |
||
63 |
%clean |
|
64 |
rm -rf $RPM_BUILD_ROOT |
|
65 |
||
66 |
%files |
|
67 |
%defattr(-,root,bin) |
|
68 |
%dir %attr (0755, root, bin) %{_bindir} |
|
69 |
%{_bindir}/* |
|
70 |
%dir %attr (0755, root, bin) %{_libdir} |
|
71 |
%{_libdir}/* |
|
72 |
%dir %attr(0755, root, sys) %{_datadir} |
|
14846 | 73 |
%doc -d ipython-%{ipython.version} IPython/DPyGetOpt.py |
10419 | 74 |
%dir %attr(0755, root, bin) %{_mandir} |
75 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
76 |
%{_mandir}/*/* |
|
77 |
%dir %attr (0755, root, other) %{_docdir} |
|
13654 | 78 |
%dir %attr (0755, root, other) %{_docdir}/ipython |
79 |
%{_docdir}/ipython/* |
|
10419 | 80 |
|
81 |
%changelog |
|
14846 | 82 |
* Tue Jan 06 2009 - [email protected] |
83 |
- Took out doc/COPYING and doc/Changelog of %doc section. |
|
13654 | 84 |
* Thu Sep 18 2008 - [email protected] |
85 |
- Added %doc to %files for copyright. |
|
11976 | 86 |
* Mon Mar 31 2008 - [email protected] |
87 |
- Add copyright file |
|
10425 | 88 |
* Mon Sep 03 2007 - [email protected] |
89 |
- Remove irunner for we do not use it. |
|
10419 | 90 |
* Sun Sep 02 2007 - [email protected] |
91 |
- Initial version. |