Pre-4.14 RPM tools used to compile the spec file properly when
this syntax:
(1) %if %{build_type}
was used in Requires section and this syntax:
(2) %if "%{build_type}"
was used in %files/%packages section.
In RPM 4.14 version, this doesn't compile. Similarly, removing the ""
in (2) doesn't work in pre-4.14 RPM, just like adding "" in (1).
This patch changes combination of syntax in these %if statements
that can be succesfully compiled under both: pre-4.14 and 4.14 RPM in Tizen.
Change-Id: If8bf4410623a8fc693dda169fea467283c6f4cfc
-%{!?build_type:%define build_type "RELEASE"}
+%{!?build_type:%define build_type RELEASE}
Name: yaca
Version: 0.0.6
BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(openssl1.1)
BuildRequires: boost-devel
-%if %{build_type} == "COVERAGE"
+%if "%build_type" == "COVERAGE"
BuildRequires: lcov
%endif
Requires(post): /sbin/ldconfig
%{python3_sitelib}/%{name}
## Coverage Package ###########################################################
-%if "%{build_type}" == "COVERAGE"
+%if "%build_type" == "COVERAGE"
%package coverage
Summary: Yet Another Crypto API code coverage data
Group: Security/Other