Name: sympy Version: 0.7.2 Release: 1%{?dist} Summary: A Python library for symbolic mathematics License: BSD URL: http://sympy.org/ Source0: http://sympy.googlecode.com/files/%{name}-%{version}.tar.gz # Upstream tried to graft in another project as a private copy; we rip # it out (rhbz# 551576): Patch0: sympy-0.7.2-strip-internal-mpmath.patch BuildArch: noarch BuildRequires: gettext BuildRequires: numpy BuildRequires: python2-devel BuildRequires: python-mpmath BuildRequires: python-sphinx BuildRequires: tex(latex) BuildRequires: tex-dvipng Requires: python-matplotlib Requires: python-mpmath Requires: python-pyglet %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. %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. %prep %setup -q %patch0 -b .mpmath rm -rf sympy/mpmath doc/src/modules/mpmath %build # Build the project python setup.py build # Build the documentation cd doc make html make htmli18n make cheatsheet %install # Install the main project python setup.py install -O1 --skip-build --root %{buildroot} # Remove extra files rm -f %{buildroot}%{_bindir}/{,doc}test # Install the TeXmacs integration cp -p data/TeXmacs/bin/tm_sympy %{buildroot}%{_bindir} 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 mkdir -p %{buildroot}%{_docdir}/%{name}-doc-%{version} cp -a doc/_build/html %{buildroot}%{_docdir}/%{name}-doc-%{version} cp -a doc/_build/i18n %{buildroot}%{_docdir}/%{name}-doc-%{version} rm -f %{buildroot}%{_docdir}/%{name}-doc-%{version}/html/.buildinfo rm -f %{buildroot}%{_docdir}/%{name}-doc-%{version}/i18n/*/.buildinfo %check python setup.py test %files %doc AUTHORS LICENSE PKG-INFO doc/_build/cheatsheet/cheatsheet.pdf %{python_sitelib}/sympy/ %{python_sitelib}/sympy-%{version}-*.egg-info %{_bindir}/isympy %{_mandir}/man1/isympy.1* %files texmacs %doc data/TeXmacs/LICENSE %{_bindir}/tm_sympy %{_datadir}/TeXmacs/plugins/sympy/ %files examples %doc examples %files doc %docdir %{_docdir}/%{name}-doc-%{version}/html %{_docdir}/%{name}-doc-%{version}/html %docdir %{_docdir}/%{name}-doc-%{version}/i18n %lang(bg) %{_docdir}/%{name}-doc-%{version}/i18n/bg/ %lang(cs) %{_docdir}/%{name}-doc-%{version}/i18n/cs/ %lang(de) %{_docdir}/%{name}-doc-%{version}/i18n/de/ %lang(fr) %{_docdir}/%{name}-doc-%{version}/i18n/fr/ %lang(pl) %{_docdir}/%{name}-doc-%{version}/i18n/pl/ %lang(ru) %{_docdir}/%{name}-doc-%{version}/i18n/ru/ %lang(sr) %{_docdir}/%{name}-doc-%{version}/i18n/sr/ %changelog * Mon Jun 17 2013 Jerry James - 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 * Fri Feb 15 2013 Fedora Release Engineering - 0.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Oct 11 2011 Jussi Lehtola - 0.7.1-1 - Update to 0.7.1. * Wed Feb 09 2011 Fedora Release Engineering - 0.6.7-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Aug 30 2010 Jussi Lehtola - 0.6.7-5 - Patch around BZ #564504. * Sat Jul 31 2010 David Malcolm - 0.6.7-4 - fix a python 2.7 incompatibility * Thu Jul 22 2010 David Malcolm - 0.6.7-3 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Tue Apr 27 2010 Jussi Lehtola - 0.6.7-2 - Added %%check phase. * Tue Apr 27 2010 Jussi Lehtola - 0.6.7-1 - Update to 0.6.7. * Mon Feb 15 2010 Conrad Meyer - 0.6.6-3 - Patch around private copy nicely; avoid breakage from trying to replace a directory with a symlink. * Mon Feb 15 2010 Conrad Meyer - 0.6.6-2 - Remove private copy of system lib 'mpmath' (rhbz #551576). * Sun Dec 27 2009 Jussi Lehtola - 0.6.6-1 - Update to 0.6.6. * Sat Nov 07 2009 Jussi Lehtola - 0.6.5-1 - Update to 0.6.5. * Sun Jul 26 2009 Fedora Release Engineering - 0.6.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Dec 4 2008 Conrad Meyer - 0.6.3-1 - Bump to 0.6.3, supports python 2.6. * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.6.2-3 - Rebuild for Python 2.6 * Mon Oct 13 2008 Conrad Meyer - 0.6.2-2 - Patch to remove extraneous shebangs. * Sun Oct 12 2008 Conrad Meyer - 0.6.2-1 - Initial package.