diff --git a/dtc.spec b/dtc.spec index d38045e..906cf6b 100644 --- a/dtc.spec +++ b/dtc.spec @@ -65,6 +65,7 @@ sed -i 's/python2/python3/' pylibfdt/setup.py %ifarch %{e2k} # -MG is an unrecognized option for lcc sed -i 's,-MG,,' Makefile +echo '#define DTC_VERSION "DTC %{version}"' > version_gen.h %endif %build