sympy/sympy.spec

185 lines
5.7 KiB
RPMSpec
Raw Normal View History

2008-10-15 20:06:53 +00:00
Name: sympy
Version: 0.7.3
Release: 1%{?dist}
2008-10-15 20:06:53 +00:00
Summary: A Python library for symbolic mathematics
License: BSD
URL: http://sympy.org/
Source0: https://github.com/%{name}/%{name}/releases/download/%{name}-%{veresion}/%{name}-%{version}.tar.gz
# Upstream tried to graft in another project as a private copy; we rip
# it out (rhbz# 551576):
Patch0: %{name}-0.7.3-strip-internal-mpmath.patch
2008-10-15 20:06:53 +00:00
BuildArch: noarch
BuildRequires: gettext
BuildRequires: graphviz
BuildRequires: numpy
BuildRequires: python2-devel
2010-02-15 14:43:47 +00:00
BuildRequires: python-mpmath
BuildRequires: python-sphinx
BuildRequires: tex(latex)
BuildRequires: tex-dvipng
Requires: python-matplotlib
Requires: python-mpmath
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.
%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
%patch0 -b .mpmath
rm -rf sympy/mpmath doc/src/modules/mpmath
2010-09-06 18:04:07 +00:00
2008-10-15 20:06:53 +00:00
%build
# Build the project
2010-04-27 06:45:44 +00:00
python setup.py build
2008-10-15 20:06:53 +00:00
# Build the documentation
cd doc
make html
make cheatsheet
2008-10-15 20:06:53 +00:00
%install
# Install the main project
2010-04-27 06:45:44 +00:00
python setup.py install -O1 --skip-build --root %{buildroot}
2009-12-27 16:25:47 +00:00
# Remove extra files
rm -f %{buildroot}%{_bindir}/{,doc}test
2010-04-27 07:10:13 +00:00
# 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}
rm -f %{buildroot}%{_docdir}/%{name}-doc-%{version}/html/.buildinfo
rm -fr %{buildroot}%{_docdir}/%{name}-doc-%{version}/i18n
2010-04-27 07:10:13 +00:00
%check
python setup.py test
2008-10-15 20:06:53 +00:00
%files
%doc AUTHORS LICENSE PKG-INFO doc/_build/cheatsheet/cheatsheet.pdf
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*
%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
2008-10-15 20:06:53 +00:00
%changelog
* 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
* 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
* 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
* 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
* 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.
* 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
* 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.
* 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.
* 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.
* 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
* 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.