Set build_type default value in a different way 41/28741/3
authorJacek Bukarewicz <j.bukarewicz@samsung.com>
Wed, 15 Oct 2014 08:21:00 +0000 (10:21 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 16 Oct 2014 14:10:19 +0000 (07:10 -0700)
Apparently gbs couldn't parse previous construct properly and installed
debug libraries regardless of build_type.

Change-Id: I84c6456efc692da9f1bec94b071d8107a540f3d8
Signed-off-by: Jacek Bukarewicz <j.bukarewicz@samsung.com>
packaging/cynara.spec

index e8d0bc8..7f02901 100644 (file)
@@ -33,7 +33,9 @@ BuildRequires: pkgconfig(libsystemd-journal)
 %global state_path %{_localstatedir}/%{name}/
 %global tests_dir %{_datarootdir}/%{name}/tests
 
-%global build_type %{?build_type:%build_type}%{!?build_type:RELEASE}
+%if !%{defined build_type}
+%define build_type RELEASE
+%endif
 
 %if %{?build_type} == "DEBUG"