2008-10-15 20:06:53 +00:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
Name: sympy
|
2009-12-27 16:01:16 +00:00
|
|
|
Version: 0.6.6
|
2010-02-15 14:36:42 +00:00
|
|
|
Release: 3%{?dist}
|
2008-10-15 20:06:53 +00:00
|
|
|
Summary: A Python library for symbolic mathematics
|
|
|
|
Group: Development/Languages
|
|
|
|
License: BSD
|
|
|
|
URL: http://code.google.com/p/sympy/
|
|
|
|
Source0: http://sympy.googlecode.com/files/%{name}-%{version}.tar.gz
|
2010-02-15 14:36:42 +00:00
|
|
|
# Upstream tried to graft in another project as a private copy; we rip
|
|
|
|
# it out (rhbz# 551576):
|
|
|
|
Patch0: sympy-0.6.6-strip-internal-mpmath.diff
|
2008-10-15 20:06:53 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-devel
|
2010-02-15 14:43:47 +00:00
|
|
|
BuildRequires: python-mpmath
|
2010-02-15 13:32:48 +00:00
|
|
|
Requires: python-mpmath
|
2008-10-15 20:06:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
SymPy aims to become a full-featured computer algebra system (CAS)
|
|
|
|
while keeping the code as simple as possible in order to be
|
|
|
|
comprehensible and easily extensible. SymPy is written entirely in
|
|
|
|
Python and does not require any external libraries.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2010-02-15 14:36:42 +00:00
|
|
|
%patch0 -p1
|
|
|
|
rm -rf sympy/mpmath doc/src/modules/mpmath
|
2008-10-15 20:06:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2009-12-27 16:25:47 +00:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
# Remove extra files
|
|
|
|
rm -f %{buildroot}%{_bindir}/{,doc}test
|
2008-10-15 20:06:53 +00:00
|
|
|
|
|
|
|
%clean
|
2009-12-27 16:25:47 +00:00
|
|
|
rm -rf %{buildroot}
|
2008-10-15 20:06:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README LICENSE
|
2009-12-27 16:01:16 +00:00
|
|
|
%{python_sitelib}/sympy/
|
|
|
|
%{python_sitelib}/sympy-%{version}-*.egg-info
|
2008-10-15 20:06:53 +00:00
|
|
|
%{_bindir}/isympy
|
|
|
|
%{_mandir}/man1/isympy.1*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2010-02-15 14:36:42 +00:00
|
|
|
* Mon Feb 15 2010 Conrad Meyer <konrad@tylerc.org> - 0.6.6-3
|
|
|
|
- Patch around private copy nicely; avoid breakage from trying to replace
|
|
|
|
a directory with a symlink.
|
|
|
|
|
2010-02-15 13:32:48 +00:00
|
|
|
* Mon Feb 15 2010 Conrad Meyer <konrad@tylerc.org> - 0.6.6-2
|
|
|
|
- Remove private copy of system lib 'mpmath' (rhbz #551576).
|
|
|
|
|
2009-12-27 16:01:16 +00:00
|
|
|
* Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.6.6-1
|
|
|
|
- Update to 0.6.6.
|
|
|
|
|
2009-11-07 10:29:54 +00:00
|
|
|
* Sat Nov 07 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.6.5-1
|
|
|
|
- Update to 0.6.5.
|
|
|
|
|
2009-07-27 05:15:33 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 04:37:32 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-05 00:37:42 +00:00
|
|
|
* Thu Dec 4 2008 Conrad Meyer <konrad@tylerc.org> - 0.6.3-1
|
|
|
|
- Bump to 0.6.3, supports python 2.6.
|
|
|
|
|
2008-11-29 17:21:16 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.2-3
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-10-15 20:06:53 +00:00
|
|
|
* Mon Oct 13 2008 Conrad Meyer <konrad@tylerc.org> - 0.6.2-2
|
|
|
|
- Patch to remove extraneous shebangs.
|
|
|
|
|
|
|
|
* Sun Oct 12 2008 Conrad Meyer <konrad@tylerc.org> - 0.6.2-1
|
|
|
|
- Initial package.
|