diff --git a/python-sympy.spec b/python-sympy.spec new file mode 100644 index 0000000000000000000000000000000000000000..1514aa06abad9d18faf6cb5868ee0c3a37eb8ad6 --- /dev/null +++ b/python-sympy.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sympy +Version: 1.8 +Release: 1 +Summary: Computer algebra system (CAS) in Python +License: BSD and MIT +URL: https://sympy.org +Source0: https://files.pythonhosted.org/packages/88/b1/e4e620f45949a4cc7c935a0c711f6aac24e875810b68c37148c7402d838f/sympy-1.8.tar.gz +BuildArch: noarch + +Requires: python3-mpmath + +%description +SymPy is a Python library for symbolic mathematics. It 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. + +%package -n python3-sympy +Summary: Computer algebra system (CAS) in Python +Provides: python-sympy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-sympy +SymPy is a Python library for symbolic mathematics. It 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. + +%package help +Summary: Development documents and examples for sympy +Provides: python3-sympy-doc +%description help +SymPy is a Python library for symbolic mathematics. It 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. + +%prep +%autosetup -n sympy-1.8 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-sympy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sat Jun 26 2021 Python_Bot +- Package Spec generated diff --git a/sympy-1.8.tar.gz b/sympy-1.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..144871e5b17ef32fa16f0ed0fc23d46a086e2014 Binary files /dev/null and b/sympy-1.8.tar.gz differ