2008-10-15 20:06:53 +00:00
|
|
|
Name: sympy
|
2014-03-14 23:03:02 +00:00
|
|
|
Version: 0.7.5
|
2014-06-08 07:50:47 +00:00
|
|
|
Release: 3%{?dist}
|
2008-10-15 20:06:53 +00:00
|
|
|
Summary: A Python library for symbolic mathematics
|
|
|
|
License: BSD
|
2013-07-01 21:03:59 +00:00
|
|
|
URL: http://sympy.org/
|
2013-10-18 21:25:49 +00:00
|
|
|
Source0: https://github.com/%{name}/%{name}/releases/download/%{name}-%{version}/%{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):
|
2014-03-14 23:03:02 +00:00
|
|
|
Patch0: %{name}-0.7.5-strip-internal-mpmath.patch
|
|
|
|
# The test driver disables Unicode output, but the printing test expects to
|
|
|
|
# see Unicode output. Until upstream fixes this, patch the test so that it
|
|
|
|
# expects Unicode output if Unicode output is active, otherwise ASCII output.
|
|
|
|
Patch1: %{name}-0.7.5-test.patch
|
2014-09-04 04:27:28 +00:00
|
|
|
# Fix a bug in ellipse.is_tangent (bz 1135677)
|
|
|
|
Patch2: %{name}-0.7.5-is-tangent.patch
|
2008-10-15 20:06:53 +00:00
|
|
|
BuildArch: noarch
|
2013-07-01 21:03:59 +00:00
|
|
|
|
2014-03-14 23:03:02 +00:00
|
|
|
BuildRequires: gcc-gfortran
|
2013-07-01 21:03:59 +00:00
|
|
|
BuildRequires: gettext
|
2013-08-02 16:36:41 +00:00
|
|
|
BuildRequires: graphviz
|
2014-03-14 23:03:02 +00:00
|
|
|
BuildRequires: ImageMagick
|
|
|
|
BuildRequires: librsvg2-tools
|
2013-10-18 21:25:49 +00:00
|
|
|
BuildRequires: numpy python3-numpy
|
2014-03-14 23:03:02 +00:00
|
|
|
BuildRequires: numpy-f2py python3-numpy-f2py
|
2013-10-18 21:25:49 +00:00
|
|
|
BuildRequires: python2-devel python3-devel
|
2014-03-14 23:03:02 +00:00
|
|
|
BuildRequires: python-matplotlib python3-matplotlib
|
2013-10-18 21:25:49 +00:00
|
|
|
BuildRequires: python-mpmath python3-mpmath
|
2013-07-01 21:03:59 +00:00
|
|
|
BuildRequires: python-sphinx
|
2014-03-14 23:03:02 +00:00
|
|
|
BuildRequires: scipy python3-scipy
|
2013-07-01 21:03:59 +00:00
|
|
|
BuildRequires: tex(latex)
|
|
|
|
BuildRequires: tex-dvipng
|
2014-03-14 23:03:02 +00:00
|
|
|
BuildRequires: xorg-x11-fonts-Type1
|
|
|
|
BuildRequires: xorg-x11-server-Xvfb
|
2013-07-01 21:03:59 +00:00
|
|
|
|
|
|
|
Requires: python-matplotlib
|
2010-02-15 13:32:48 +00:00
|
|
|
Requires: python-mpmath
|
2013-07-01 21:03:59 +00:00
|
|
|
Requires: python-pyglet
|
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.
|
|
|
|
|
2013-10-18 21:25:49 +00:00
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: A Python3 library for symbolic mathematics
|
|
|
|
Requires: python3-matplotlib
|
|
|
|
Requires: python3-mpmath
|
|
|
|
Requires: python3-pyglet
|
|
|
|
|
|
|
|
%description -n python3-%{name}
|
|
|
|
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.
|
|
|
|
|
2013-07-01 21:03:59 +00:00
|
|
|
%package texmacs
|
|
|
|
Summary: TeXmacs integration for sympy
|
|
|
|
Requires: %{name} = %{version}-%{release}, TeXmacs
|
|
|
|
|
|
|
|
%description texmacs
|
|
|
|
This package contains a TeXmacs plugin for sympy.
|
|
|
|
|
|
|
|
%package examples
|
|
|
|
Summary: Sympy examples
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
This package contains example input for sympy.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for sympy
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
HTML documentation for sympy.
|
|
|
|
|
2008-10-15 20:06:53 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2013-07-01 21:03:59 +00:00
|
|
|
%patch0 -b .mpmath
|
2014-03-14 23:03:02 +00:00
|
|
|
%patch1
|
2014-09-04 04:27:28 +00:00
|
|
|
%patch2
|
2010-02-15 14:36:42 +00:00
|
|
|
rm -rf sympy/mpmath doc/src/modules/mpmath
|
2013-10-18 21:25:49 +00:00
|
|
|
rm -rf %{name}-%{version}/sympy/mpmath %{name}-%{version}/doc/src/module/mpmath
|
|
|
|
|
2013-12-09 21:37:03 +00:00
|
|
|
# Make a copy for building the python3 version
|
2014-03-14 23:03:02 +00:00
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
|
|
# Workaround for bz 1075826. Remove this when that bug is resolved.
|
|
|
|
mkdir -p doc/_build/html
|
|
|
|
cp -p doc/src/_static/sympylogo.png doc
|
2010-09-06 18:04:07 +00:00
|
|
|
|
2014-09-04 04:27:28 +00:00
|
|
|
# Workaround for mpmath brokenness (bz 1127796)
|
|
|
|
sed -e 's/import raises/&, XFAIL/' \
|
|
|
|
-e '/^def test_roots_preprocessed():/i@XFAIL' \
|
|
|
|
-i sympy/polys/tests/test_polyroots.py
|
|
|
|
sed -i '/^def test_nroots():/i@XFAIL' sympy/polys/tests/test_polytools.py
|
|
|
|
|
2008-10-15 20:06:53 +00:00
|
|
|
%build
|
2013-10-18 21:25:49 +00:00
|
|
|
# Build the python2 version
|
|
|
|
python2 setup.py build
|
|
|
|
|
|
|
|
# Build the python3 version
|
2014-03-14 23:03:02 +00:00
|
|
|
pushd %{py3dir}
|
2013-10-18 21:25:49 +00:00
|
|
|
python3 setup.py build
|
2014-03-14 23:03:02 +00:00
|
|
|
popd
|
2008-10-15 20:06:53 +00:00
|
|
|
|
2013-07-01 21:03:59 +00:00
|
|
|
# Build the documentation
|
2014-03-14 23:03:02 +00:00
|
|
|
cd doc
|
2013-07-01 21:03:59 +00:00
|
|
|
make html
|
|
|
|
make cheatsheet
|
2014-03-14 23:03:02 +00:00
|
|
|
pushd %{py3dir}/doc
|
2013-10-18 21:25:49 +00:00
|
|
|
make cheatsheet
|
2014-03-14 23:03:02 +00:00
|
|
|
popd
|
2013-07-01 21:03:59 +00:00
|
|
|
|
2008-10-15 20:06:53 +00:00
|
|
|
%install
|
2014-03-14 23:03:02 +00:00
|
|
|
# Install the python3 version
|
|
|
|
pushd %{py3dir}
|
|
|
|
python3 setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
sed -i 's/env python/python3/' %{buildroot}%{_bindir}/isympy
|
|
|
|
touch -r bin/isympy %{buildroot}%{_bindir}/isympy
|
2014-09-04 04:27:28 +00:00
|
|
|
mv %{buildroot}%{_bindir}/isympy %{buildroot}%{_bindir}/python3-isympy
|
|
|
|
ln -s isympy.1.gz %{buildroot}%{_mandir}/man1/python3-isympy.1.gz
|
2014-03-14 23:03:02 +00:00
|
|
|
popd
|
|
|
|
|
2014-09-04 04:27:28 +00:00
|
|
|
# Install the python2 version
|
|
|
|
python2 setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
sed -i 's/env python/python2/' %{buildroot}%{_bindir}/isympy
|
|
|
|
touch -r bin/isympy %{buildroot}%{_bindir}/isympy
|
|
|
|
|
2013-10-18 21:25:49 +00:00
|
|
|
## Remove extra files
|
2009-12-27 16:25:47 +00:00
|
|
|
rm -f %{buildroot}%{_bindir}/{,doc}test
|
2010-04-27 07:10:13 +00:00
|
|
|
|
2013-10-18 21:25:49 +00:00
|
|
|
## Install the TeXmacs integration
|
2014-03-14 23:03:02 +00:00
|
|
|
sed 's/python/python3/' data/TeXmacs/bin/tm_sympy > \
|
|
|
|
%{buildroot}%{_bindir}/tm_sympy
|
|
|
|
touch -r data/TeXmacs/bin/tm_sympy %{buildroot}%{_bindir}/tm_sympy
|
2013-07-01 21:03:59 +00:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/TeXmacs/plugins/sympy
|
|
|
|
cp -a data/TeXmacs/progs %{buildroot}%{_datadir}/TeXmacs/plugins/sympy
|
|
|
|
|
|
|
|
# Don't let an executable script go into the documentation
|
|
|
|
chmod a-x examples/all.py
|
|
|
|
|
|
|
|
# Install the HTML documentation
|
2013-08-02 16:40:31 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}-doc
|
|
|
|
cp -a doc/_build/html %{buildroot}%{_docdir}/%{name}-doc
|
|
|
|
rm -f %{buildroot}%{_docdir}/%{name}-doc/html/.buildinfo
|
|
|
|
rm -fr %{buildroot}%{_docdir}/%{name}-doc/i18n
|
2013-07-01 21:03:59 +00:00
|
|
|
|
2010-04-27 07:10:13 +00:00
|
|
|
%check
|
2013-10-18 21:25:49 +00:00
|
|
|
# The python3 tests fail with Unicode errors without this
|
|
|
|
export LC_ALL=en_US.UTF-8
|
2014-03-14 23:03:02 +00:00
|
|
|
|
|
|
|
let "dnum = $RANDOM % 90 + 10"
|
|
|
|
xvfb-run -n $dnum python2 setup.py test
|
|
|
|
pushd %{py3dir}
|
|
|
|
xvfb-run -n $dnum python3 setup.py test
|
|
|
|
popd
|
2008-10-15 20:06:53 +00:00
|
|
|
|
|
|
|
%files
|
2014-09-04 04:27:28 +00:00
|
|
|
%doc AUTHORS doc/_build/cheatsheet/cheatsheet.pdf
|
|
|
|
%license LICENSE
|
2013-10-18 21:25:49 +00:00
|
|
|
%{python2_sitelib}/sympy/
|
|
|
|
%{python2_sitelib}/sympy-%{version}-*.egg-info
|
2014-09-04 04:27:28 +00:00
|
|
|
%{_bindir}/isympy
|
|
|
|
%{_mandir}/man1/isympy.1*
|
2008-10-15 20:06:53 +00:00
|
|
|
|
2013-10-18 21:25:49 +00:00
|
|
|
%files -n python3-%{name}
|
2014-09-04 04:27:28 +00:00
|
|
|
%doc AUTHORS doc/_build/cheatsheet/cheatsheet.pdf
|
|
|
|
%license LICENSE
|
2013-10-18 21:25:49 +00:00
|
|
|
%{python3_sitelib}/sympy/
|
|
|
|
%{python3_sitelib}/sympy-%{version}-*.egg-info
|
2014-09-04 04:27:28 +00:00
|
|
|
%{_bindir}/python3-isympy
|
|
|
|
%{_mandir}/man1/python3-isympy.1*
|
2013-10-18 21:25:49 +00:00
|
|
|
|
2013-07-01 21:03:59 +00:00
|
|
|
%files texmacs
|
2014-09-04 04:27:28 +00:00
|
|
|
%license data/TeXmacs/LICENSE
|
2013-07-01 21:03:59 +00:00
|
|
|
%{_bindir}/tm_sympy
|
|
|
|
%{_datadir}/TeXmacs/plugins/sympy/
|
|
|
|
|
|
|
|
%files examples
|
|
|
|
%doc examples
|
|
|
|
|
|
|
|
%files doc
|
2013-08-02 16:40:31 +00:00
|
|
|
%docdir %{_docdir}/%{name}-doc/html
|
|
|
|
%{_docdir}/%{name}-doc/html
|
2013-07-01 21:03:59 +00:00
|
|
|
|
2008-10-15 20:06:53 +00:00
|
|
|
%changelog
|
2014-09-04 04:27:28 +00:00
|
|
|
* Wed Sep 3 2014 Jerry James <loganjeerry@gmail.com> - 0.7.5-3
|
|
|
|
- Install both isympy and python3-isympy to comply with packaging standards
|
|
|
|
- Add -is-tangent patch (bz 1135677)
|
|
|
|
- Temporarily disable tests that fail due to mpmath bugs (bz 1127796)
|
|
|
|
- Fix license handling
|
|
|
|
|
2014-06-08 07:50:47 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-20 05:36:59 +00:00
|
|
|
* Mon May 19 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2014-03-14 23:03:02 +00:00
|
|
|
* Thu Mar 13 2014 Jerry James <loganjerry@gmail.com> - 0.7.5-1
|
|
|
|
- Update to 0.7.5 (bz 1066951)
|
|
|
|
- Binaries now default to using python3
|
|
|
|
- Use py3dir macro to simplify python3 build
|
|
|
|
- Add BRs for more comprehensive testing
|
|
|
|
- Workaround bz 1075826
|
|
|
|
- Add -test patch to fix Unicode problem in the tests
|
|
|
|
|
2013-12-09 21:37:03 +00:00
|
|
|
* Mon Dec 9 2013 Jerry James <loganjerry@gmail.com> - 0.7.4-1
|
|
|
|
- Update to 0.7.4
|
|
|
|
- Python 2 and 3 sources are now in the same tarball
|
|
|
|
|
2013-10-18 21:25:49 +00:00
|
|
|
* Fri Oct 18 2013 Jerry James <loganjerry@gmail.com> - 0.7.3-2
|
|
|
|
- Build a python3 subpackage (bz 982759)
|
|
|
|
|
2013-08-02 16:36:41 +00:00
|
|
|
* Fri Aug 2 2013 Jerry James <loganjerry@gmail.com> - 0.7.3-1
|
|
|
|
- Update to 0.7.3
|
|
|
|
- Upstream dropped all tutorial translations
|
|
|
|
- Add graphviz BR for documentation
|
|
|
|
- Sources now distributed from github instead of googlecode
|
2013-08-02 16:40:31 +00:00
|
|
|
- Adapt to versionless _docdir in Rawhide
|
2013-08-02 16:36:41 +00:00
|
|
|
|
2013-07-01 21:03:59 +00:00
|
|
|
* Mon Jun 17 2013 Jerry James <loganjerry@gmail.com> - 0.7.2-1
|
|
|
|
- Update to 0.7.2 (bz 866044)
|
|
|
|
- Add python-pyglet R (bz 890312)
|
|
|
|
- Package the TeXmacs integration
|
|
|
|
- Build and provide documentation
|
|
|
|
- Provide examples
|
|
|
|
- Minor spec file cleanups
|
|
|
|
|
2013-02-15 01:03:56 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-21 22:19:22 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-14 06:04:46 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-11 23:02:20 +00:00
|
|
|
* Tue Oct 11 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.7.1-1
|
|
|
|
- Update to 0.7.1.
|
|
|
|
|
2011-02-09 17:19:57 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.7-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-09-06 18:04:07 +00:00
|
|
|
* Mon Aug 30 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.6.7-5
|
|
|
|
- Patch around BZ #564504.
|
|
|
|
|
2010-07-31 11:19:42 +00:00
|
|
|
* Sat Jul 31 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.7-4
|
|
|
|
- fix a python 2.7 incompatibility
|
|
|
|
|
2010-07-22 06:46:24 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-04-27 07:10:13 +00:00
|
|
|
* Tue Apr 27 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.6.7-2
|
|
|
|
- Added %%check phase.
|
|
|
|
|
2010-04-27 06:45:44 +00:00
|
|
|
* Tue Apr 27 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.6.7-1
|
|
|
|
- Update to 0.6.7.
|
|
|
|
|
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.
|