diff --git a/python-mpmath.spec b/python-mpmath.spec index 11b5788..20a04aa 100644 --- a/python-mpmath.spec +++ b/python-mpmath.spec @@ -44,7 +44,7 @@ This package contains the HTML documentation for %{name}. %prep %setup -q -n mpmath-all-%{version} %patch0 -p1 -b .buildfix -# Convert line encodings +# Convert line encodings for doc in LICENSE CHANGES PKG-INFO README mpmath/tests/runtests.py; do sed "s|\r||g" $doc > $doc.new && \ touch -r $doc $doc.new && \ @@ -63,11 +63,11 @@ done python setup.py build # Build documentation cd doc -python build.py +python build.py %install rm -rf %{buildroot} -python setup.py install -O1 --skip-build --root %{buildroot} +python setup.py install --skip-build --root %{buildroot} # Get rid of python 3 version that fails to byte-compile rm %{buildroot}%{python_sitelib}/mpmath/libmp/exec_py3.py*