diff options
author | Pawel Kowalski <p.kowalski2@partner.samsung.com> | 2020-02-26 08:45:58 +0100 |
---|---|---|
committer | Yunjin Lee <yunjin-.lee@samsung.com> | 2020-03-18 19:28:38 +0900 |
commit | 0d319abe5063d6423ce4bddeb151e3fd658e695d (patch) | |
tree | 277ae0dfa13d71795fe6bd626c547e738ffa934c | |
parent | 37e3b8b14980d6ffadf1316d8be0fd50c28ec54b (diff) | |
download | askuser-popup-0d319abe5063d6423ce4bddeb151e3fd658e695d.tar.gz askuser-popup-0d319abe5063d6423ce4bddeb151e3fd658e695d.tar.bz2 askuser-popup-0d319abe5063d6423ce4bddeb151e3fd658e695d.zip |
Improve spec file
+ fix build break for DEBUG mode
+ remove Fortran flags
+ fix indentation
Change-Id: I108aaefce9be466ae5b7bc7b8f262bb6ccd74fe1
-rwxr-xr-x | packaging/org.tizen.askuser-popup.spec | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/packaging/org.tizen.askuser-popup.spec b/packaging/org.tizen.askuser-popup.spec index b0265a6..38c71a5 100755 --- a/packaging/org.tizen.askuser-popup.spec +++ b/packaging/org.tizen.askuser-popup.spec @@ -37,22 +37,25 @@ cp -a %SOURCE1001 . %build export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE" export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE" -export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE" + +%{!?build_type:%define build_type "RELEASE"} + +%if %{?build_type} == "DEBUG" +export CFLAGS="$CFLAGS -Wp,-U_FORTIFY_SOURCE" +export CXXFLAGS="$CXXFLAGS -Wp,-U_FORTIFY_SOURCE" +%endif export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE" export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE" -export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE" %ifarch %{ix86} export CFLAGS="$CFLAGS -DTIZEN_EMULATOR_MODE" export CXXFLAGS="$CXXFLAGS -DTIZEN_EMULATOR_MODE" -export FFLAGS="$FFLAGS -DTIZEN_EMULATOR_MODE" %endif -%{!?build_type:%define build_type "Release"} %cmake . -DCMAKE_INSTALL_PREFIX=%PREFIX \ -DTZ_SYS_RO_PACKAGES=%TZ_SYS_RO_PACKAGES \ - -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \ + -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \ -DCMAKE_BUILD_TYPE=%{build_type} \ -DVERSION=%version @@ -75,5 +78,3 @@ make %{?_smp_mflags} %{PREFIX}/bin/ %{PREFIX}/res/icon/ %{PREFIX}/res/edje/ - - |