summaryrefslogtreecommitdiffstats
path: root/python/python-reinteract.spec
blob: 322be14b0fe5f65c9ff7819b71a4e532d9caec28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

%global upname  reinteract
Name:           python-%{upname}
Version:        0.4.3
Release:        1%{?dist}
Summary:        Interactive shell for Python

Group:          Development/Languages
License:        BSD
URL:            http://www.reinteract.org/
Source0:        http://www.reinteract.org/download/sources/reinteract-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  desktop-file-utils
Requires:       pygtk2 numpy python-matplotlib sox
Requires:       hicolor-icon-theme


%description
Reinteract is a system for interactive experimentation with
Python. Reinteract worksheets contain Python code combined with the
results of that code, formatted as text or graphical plots. Unlike a
traditional shell, you can go back and edit previously entered
statements, and the results will update. Among other things,
Reinteract is suitable for experimentation with the Python language
and for data analysis using the NumPy and SciPy packages.


%prep
%setup -q -n %{upname}-%{version}


%build
%configure
make


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-validate \
  $RPM_BUILD_ROOT%{_datadir}/applications/reinteract.desktop


 
%clean
rm -rf $RPM_BUILD_ROOT


%post
update-desktop-database &> /dev/null || :
update-mime-database %{_datadir}/mime &> /dev/null || :

touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
update-desktop-database &> /dev/null || :
update-mime-database %{_datadir}/mime &> /dev/null || :

touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ] ; then
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_bindir}/%{upname}
%{_datadir}/applications/%{upname}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{upname}.svg
%{_datadir}/mime/packages/%{upname}.xml
%{_datadir}/%{upname}
%{python_sitelib}/*


%changelog
* Sat Feb 28 2009 Michel Salim <salimma@fedoraproject.org> - 0.4.3-1
- Initial package