rpm-software-management / spec-cleaner

spec-cleaner
BSD 3-Clause "New" or "Revised" License
28 stars 34 forks source link

Replace accidentaly not expanded python macros #244

Closed scarabeusiv closed 5 years ago

scarabeusiv commented 5 years ago

With %python_expand some people accidentaly use normal macros ie %python_expand %{python_sitelib} which should be %python_expand %{$python_sitelib}.

Known variables:

python_sitearch
python_sitelib
python_version
python_bin_suffix

If at the begining of the line is %python_expand and any of those variables is found without the $ we should replace it. @mcepl any other variables you can think of?

scarabeusiv commented 5 years ago

Another item is python call should be expanded to $python.