Name: opt_einsum Summary: Read/rewrite/write Python ASTs BuildArch: noarch Version: 3.3.0 Release: 3%{?dist} License: MIT URL: https://pypi.org/project/opt-einsum Source0: opt_einsum.tar.xz BuildRequires: python3-devel python3-setuptools %description Read/rewrite/write Python ASTs %package python3 Summary: Development files for python %description python3 This package contains the python libraries. %prep %setup -q -n %{name} %build CFLAGS="${RPM_OPT_FLAGS}" %{__python3} setup.py build %install %{__python3} setup.py install -O1 --skip-build --root %{buildroot} mkdir -p %{buildroot}%{_libdir} mv -f %{buildroot}/usr/lib/* %{buildroot}%{_libdir}/ %ldconfig_scriptlets %files python3 %doc README.md %{python3_sitearch}/* %changelog * Wed Dec 04 2019 Balint Cristian - initial build