~singpolyma/biboumi

3119ec72f32abf0dbd1edf7fc2f302fc9dd60ced — louiz’ 7 years ago 327c821
Force LANG to en_US when generating biboumi.spec (fixes the date format)
1 files changed, 3 insertions(+), 0 deletions(-)

M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +3 -0
@@ 265,7 265,10 @@ else()
endif()
configure_file(unit/biboumi.service.cmake biboumi.service)

# The date MUST be in english format
set(ENV{LANG} "en_US.utf-8")
execute_process(COMMAND "date" "+%a %b %d %Y" OUTPUT_VARIABLE RPM_DATE
                OUTPUT_STRIP_TRAILING_WHITESPACE)
unset(ENV{LANG})

configure_file(packaging/biboumi.spec.cmake biboumi.spec)