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