diff options
| author | Michel Alexandre Salim <msalim@cs.indiana.edu> | 2009-02-28 13:39:53 -0500 |
|---|---|---|
| committer | Michel Alexandre Salim <msalim@cs.indiana.edu> | 2009-02-28 13:39:53 -0500 |
| commit | b6e771675b9d38aaa00c414f477ef00148f6a3b1 (patch) | |
| tree | 3bbae171338559d24281b2849b5b645256d7bc52 /python | |
| parent | 5d0ac1eb29be184980f9231e67eb88e98da6c341 (diff) | |
| download | specs-b6e771675b9d38aaa00c414f477ef00148f6a3b1.tar.gz specs-b6e771675b9d38aaa00c414f477ef00148f6a3b1.tar.xz specs-b6e771675b9d38aaa00c414f477ef00148f6a3b1.zip | |
Add python-reinteract
Diffstat (limited to 'python')
| -rw-r--r-- | python/python-reinteract.spec | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/python/python-reinteract.spec b/python/python-reinteract.spec new file mode 100644 index 0000000..d515288 --- /dev/null +++ b/python/python-reinteract.spec @@ -0,0 +1,85 @@ +%{!?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 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 examples +%{_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 + |
