From da9ddb6b0625ca919456914f6c45d94b45123924 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Feb 12 2019 15:30:34 +0000 Subject: https://fedoraproject.org/wiki/Changes/Python_Extension_Flags --- diff --git a/pygrib.spec b/pygrib.spec index e2b3f66..7beaa82 100644 --- a/pygrib.spec +++ b/pygrib.spec @@ -134,14 +134,14 @@ cp setup.cfg.template setup.cfg echo "grib_api_libname = grib_api" >> setup.cfg %endif -CFLAGS="%{optflags}" %{__python3} setup.py build +%py3_build %install # this setting triggers installation of man pages by the setup.py file export MAN_DIR=/usr/share/man/ -%{__python3} setup.py install --skip-build --root %{buildroot} +%py3_install # correct wrong write permission for group chmod 755 %{buildroot}/%{python3_sitearch}/*.so