1 |
lebedov |
146157 |
%define module sympy |
2 |
|
|
%define name python-%{module} |
3 |
|
|
%define version 0.7.1 |
4 |
|
|
%define release %mkrel 1 |
5 |
|
|
|
6 |
|
|
Summary: Python library for symbolic mathematics |
7 |
|
|
Name: %{name} |
8 |
|
|
Version: %{version} |
9 |
|
|
Release: %{release} |
10 |
|
|
Source0: http://sympy.googlecode.com/files/%{module}-%{version}.tar.gz |
11 |
|
|
License: BSD |
12 |
|
|
Group: Development/Python |
13 |
|
|
Url: http://sympy.googlecode.com/ |
14 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
15 |
|
|
Requires: python-numpy |
16 |
|
|
Suggests: python-gmpy >= 1.03, python-pyglet |
17 |
|
|
BuildRequires: python-sphinx, python-docutils |
18 |
|
|
BuildArch: noarch |
19 |
|
|
%py_requires -d |
20 |
|
|
|
21 |
|
|
%description |
22 |
|
|
SymPy is a Python library for symbolic mathematics. It aims to become |
23 |
|
|
a full-featured computer algebra system (CAS) while keeping the code |
24 |
|
|
as simple as possible in order to be comprehensible and easily |
25 |
|
|
extensible. SymPy is written entirely in Python and does not require |
26 |
|
|
any external libraries, except optionally for plotting support. |
27 |
|
|
|
28 |
|
|
%prep |
29 |
|
|
%setup -q -n %{module}-%{version} |
30 |
|
|
|
31 |
|
|
%install |
32 |
|
|
%__rm -rf %{buildroot} |
33 |
|
|
%__python setup.py install --root=%{buildroot} |
34 |
|
|
%make -C doc html |
35 |
|
|
%__rm -f %{buildroot}%{_bindir}/test %{buildroot}%{_bindir}/doctest %{buildroot}%{_bindir}/py.bench |
36 |
|
|
|
37 |
|
|
%clean |
38 |
|
|
%__rm -rf %{buildroot} |
39 |
|
|
|
40 |
|
|
%files |
41 |
|
|
%defattr(-,root,root) |
42 |
|
|
%doc AUTHORS README LICENSE TODO examples/ doc/_build/html |
43 |
|
|
%_bindir/isympy |
44 |
|
|
%_mandir/man1/isympy.* |
45 |
|
|
%dir %{py_sitedir}/%{module} |
46 |
|
|
%{py_sitedir}/%{module}/* |
47 |
|
|
%{py_sitedir}/%{module}-*.egg-info |
48 |
|
|
|