fix python bytecode compile
This commit is contained in:
parent
ca959965b5
commit
eaf487282b
@ -1,7 +1,3 @@
|
||||
# This package depends on automagic byte compilation
|
||||
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
|
||||
%global _python_bytecompile_extra 1
|
||||
|
||||
# these are all substituted by autoconf
|
||||
%define pot_file libsmbios
|
||||
%define lang_dom libsmbios-2.4
|
||||
@ -148,6 +144,9 @@ find %{buildroot}/%{_includedir} out/libsmbios_c -exec touch -r $TOPDIR/configur
|
||||
|
||||
mv out/libsmbios_c out/libsmbios_c-%{_arch}
|
||||
|
||||
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_3
|
||||
%py_byte_compile %{python3} %{buildroot}%{python3_sitearch}/
|
||||
|
||||
rename %{pot_file}.mo %{lang_dom}.mo $(find %{buildroot}/%{_datadir} -name %{pot_file}.mo)
|
||||
%find_lang %{lang_dom}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user