diff --git a/nml.spec b/nml.spec index 13e139f..bda197e 100644 --- a/nml.spec +++ b/nml.spec @@ -25,12 +25,11 @@ A tool to compile nml files to grf or nfo files, making newgrf coding easier. %build -CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build +%py3_build %install -rm -rf $RPM_BUILD_ROOT -%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%py3_install gzip docs/nmlc.1 install -Dpm 644 docs/nmlc.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/nmlc.1.gz