summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Kowalski <p.kowalski2@partner.samsung.com>2020-03-09 09:41:43 +0100
committerPawel Kowalski <p.kowalski2@partner.samsung.com>2020-03-18 11:11:58 +0100
commit6df942b27da3d56cc8e29df309ae4c791aa0ac32 (patch)
tree51bb278f3abe2747f1810de0d3cf619fc5242d13
parent9774d3d767c1019264313146022cee82a59e2d76 (diff)
downloadaskuser-popup-6df942b27da3d56cc8e29df309ae4c791aa0ac32.tar.gz
askuser-popup-6df942b27da3d56cc8e29df309ae4c791aa0ac32.tar.bz2
askuser-popup-6df942b27da3d56cc8e29df309ae4c791aa0ac32.zip
Improve spec file
+ fix build break for DEBUG mode + remove Fortran flags + fix indentation Change-Id: I0b3e3cacaaebe2a2a2a7b79f33aafebed1aa8d6f
-rwxr-xr-xpackaging/org.tizen.askuser-popup.spec13
1 files changed, 8 insertions, 5 deletions
diff --git a/packaging/org.tizen.askuser-popup.spec b/packaging/org.tizen.askuser-popup.spec
index 9c9e6bd..929bd35 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