File do-not-use-native-optimizations.patch of Package bard

Index: bard-0.4.0+git.20210103.03583d5/setup.py
===================================================================
--- bard-0.4.0+git.20210103.03583d5.orig/setup.py
+++ bard-0.4.0+git.20210103.03583d5/setup.py
@@ -5,11 +5,8 @@ from bard import __version__
 
 BOOST_PYTHON_LIB = os.getenv('BOOST_PYTHON_LIB', 'boost_python-py3')
 
-extra_compile_args = ['-std=gnu++17', '-fopenmp', '-Ofast', '-mtune=native',
+extra_compile_args = ['-std=gnu++17', '-fopenmp', '-Ofast',
                       '-funroll-loops']
-machine = os.uname().machine
-if machine not in ['ppc64', 'ppc64le']:
-    extra_compile_args.append('-march=native')
 
 bard_ext = Extension('bard.bard_ext',
                      define_macros=[('MAJOR_VERSION', '1'),
openSUSE Build Service is sponsored by