[packages/python3-sympy] - moved from python-sympy.spec, updated to 1.11.1 for python 3.8+
qboosh
qboosh at pld-linux.org
Thu Jan 5 18:08:44 CET 2023
commit 346298e4c2637a2e806700583a571bbd8d082b65
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jan 5 18:09:40 2023 +0100
- moved from python-sympy.spec, updated to 1.11.1 for python 3.8+
docs-build.patch | 20 +++----
python-sympy.spec => python3-sympy.spec | 93 ++++++---------------------------
2 files changed, 25 insertions(+), 88 deletions(-)
---
diff --git a/python-sympy.spec b/python3-sympy.spec
similarity index 60%
rename from python-sympy.spec
rename to python3-sympy.spec
index 4376889..613c464 100644
--- a/python-sympy.spec
+++ b/python3-sympy.spec
@@ -2,43 +2,30 @@
# Conditional build:
%bcond_without doc # HTML and PDF documentation
%bcond_without tests # unit tests
-%bcond_with python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Python 2 library for symbolic mathematics
-Summary(pl.UTF-8): Biblioteka Pythona 2 do matematyki symbolicznej
-Name: python-sympy
-Version: 1.7.1
-Release: 3
+
+Summary: Python 3 library for symbolic mathematics
+Summary(pl.UTF-8): Biblioteka Pythona 3 do matematyki symbolicznej
+Name: python3-sympy
+Version: 1.11.1
+Release: 1
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/sympy/
Source0: https://files.pythonhosted.org/packages/source/s/sympy/sympy-%{version}.tar.gz
-# Source0-md5: f5973bcbe33fdc86203ca397cc901994
+# Source0-md5: 232141d248ab4164e92c8ac59a996914
Patch0: docs-build.patch
URL: https://www.sympy.org/
BuildRequires: gettext
BuildRequires: graphviz
-BuildRequires: rpmbuild(macros) >= 1.714
-BuildRequires: sed >= 4.0
-%if %{with python2}
-BuildRequires: python-devel >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-devel-tools
-BuildRequires: python-mpmath >= 0.19
-BuildRequires: python-numpy
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-devel >= 1:3.5
+BuildRequires: python3-devel >= 1:3.8
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-devel-tools
BuildRequires: python3-mpmath >= 0.19
BuildRequires: python3-numpy
%endif
-%endif
+BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: sed >= 4.0
%if %{with doc}
BuildRequires: fonts-TTF-DejaVu
BuildRequires: pydoc3
@@ -53,9 +40,10 @@ BuildRequires: texlive-latex
BuildRequires: texlive-latex-ams
BuildRequires: texlive-latex-pgf
%endif
-Requires: python-matplotlib
-Requires: python-modules >= 1:2.7
-Requires: python-pyglet
+Requires: python3-matplotlib
+Requires: python3-modules >= 1:3.8
+Requires: python3-pyglet
+Conflicts: python-sympy < 1.5.1-2
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -71,30 +59,11 @@ SymPy ma być w pełni funkcjonalnym systemem algebry komputerowej
rozszerzalny kod. Jest pisany całkowicie w Pythonie i nie wymaga
żadnych zewnętrznych bibliotek.
-%package -n python3-sympy
-Summary: Python 3 library for symbolic mathematics
-Summary(pl.UTF-8): Biblioteka Pythona 3 do matematyki symbolicznej
-Group: Libraries/Python
-Requires: python3-matplotlib
-Requires: python3-modules >= 1:3.5
-Requires: python3-pyglet
-
-%description -n python3-sympy
-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.
-
-%description -n python3-sympy -l pl.UTF-8
-SymPy ma być w pełni funkcjonalnym systemem algebry komputerowej
-(CAS), a jednocześnie mieć jak najprostszy, czytelny i łatwo
-rozszerzalny kod. Jest pisany całkowicie w Pythonie i nie wymaga
-żadnych zewnętrznych bibliotek.
-
%package doc
Summary: Documentation for SymPy module
Summary(pl.UTF-8): Dokumentacja do SymPy
Group: Documentation
+Obsoletes: python-sympy-doc == 1.7.1
%description doc
HTML documentation for SymPy.
@@ -107,13 +76,7 @@ Dokumentacja do SymPy w formacie HTML.
%patch0 -p1
%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
%py3_build %{?with_tests:test}
-%endif
%if %{with doc}
pydir=$(pwd)/build-3/lib
@@ -127,7 +90,6 @@ PYTHONPATH=$pydir \
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python3}
%py3_install
%{__mv} $RPM_BUILD_ROOT%{_bindir}/isympy{,3}
@@ -136,37 +98,13 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-sympy-%{version}
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-sympy-%{version}
find $RPM_BUILD_ROOT%{_examplesdir}/python3-sympy-%{version} -name '*.py' \
| xargs sed -i '1s|^#!.*python\b|#!%{__python3}|'
-%endif
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-find $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -name '*.py' \
- | xargs sed -i '1s|^#!.*python\b|#!%{__python}|'
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%doc AUTHORS LICENSE README.md
-%attr(755,root,root) %{_bindir}/isympy
-%{py_sitescriptdir}/isympy.py[co]
-%{py_sitescriptdir}/sympy
-%{py_sitescriptdir}/sympy-%{version}-*.egg-info
-%{_examplesdir}/%{name}-%{version}
-%endif
-
-%if %{with python3}
-%files -n python3-sympy
-%defattr(644,root,root,755)
-%doc AUTHORS LICENSE README.md
%attr(755,root,root) %{_bindir}/isympy3
%{py3_sitescriptdir}/isympy.py
%{py3_sitescriptdir}/__pycache__/isympy.cpython-*.py[co]
@@ -174,7 +112,6 @@ rm -rf $RPM_BUILD_ROOT
%{py3_sitescriptdir}/sympy-%{version}-*.egg-info
%{_mandir}/man1/isympy.1*
%{_examplesdir}/python3-sympy-%{version}
-%endif
%if %{with doc}
%files doc
diff --git a/docs-build.patch b/docs-build.patch
index 6052705..c0a9e91 100644
--- a/docs-build.patch
+++ b/docs-build.patch
@@ -1,10 +1,10 @@
---- sympy-1.7.1/doc/Makefile~ 2020-11-18 01:03:10.000000000 +0100
-+++ sympy-1.7.1/doc/Makefile 2021-03-12 09:34:45.978437636 +0100
-@@ -44,7 +44,6 @@
- -rm -rf sphinx
- -rm -f $(PDFFILES)
-
--html: SPHINXOPTS += -W --keep-going
- html: _build/logo/sympy-notailtext-favicon.ico
- mkdir -p src/.static
- mkdir -p _build/html
+--- sympy-1.11.1/doc/Makefile.orig 2023-01-04 19:37:36.910055980 +0100
++++ sympy-1.11.1/doc/Makefile 2023-01-04 19:42:23.068505727 +0100
+@@ -60,7 +60,6 @@ html:
+ # Force colors on CI. Set NO_COLOR=1 on the command line to disable this.
+ _html: export FORCE_COLOR = 1
+ _html: $(BUILDDIR)/html/pics/*.png
+-_html: SPHINXOPTS += -W --keep-going
+ _html: $(BUILDDIR)/logo/sympy-notailtext-favicon.ico
+ mkdir -p $(SOURCEDIR)/.static
+ mkdir -p $(BUILDDIR)/html
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sympy.git/commitdiff/346298e4c2637a2e806700583a571bbd8d082b65
More information about the pld-cvs-commit
mailing list