diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2017-01-13 14:12:14 +0900 |
---|---|---|
committer | kyungwook tak <k.tak@samsung.com> | 2017-01-15 17:25:41 -0800 |
commit | 43ef1005882dc78473f81b05b9e499e87598c94c (patch) | |
tree | f8ef96c489d863d9b586ca537b8bad079ed0d094 | |
parent | 1485fff9135882a494e3adbd75f6e4fc59e51340 (diff) | |
download | csr-framework-43ef1005882dc78473f81b05b9e499e87598c94c.tar.gz csr-framework-43ef1005882dc78473f81b05b9e499e87598c94c.tar.bz2 csr-framework-43ef1005882dc78473f81b05b9e499e87598c94c.zip |
Version Comparision String Fix
It should be prepared for cases where the Tizen version is
3.1.0, 3.0.1, 4.0, or whatever larger than 3.0.
Change-Id: Id914455c62684b32fce4f0a974b418292f2e3bff
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-rw-r--r-- | packaging/csr-framework.spec | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/csr-framework.spec b/packaging/csr-framework.spec index 5325fdd..226679e 100644 --- a/packaging/csr-framework.spec +++ b/packaging/csr-framework.spec @@ -41,7 +41,7 @@ BuildRequires: pkgconfig(capi-appfw-application) BuildRequires: pkgconfig(elementary) BuildRequires: pkgconfig(efl-extension) BuildRequires: pkgconfig(icu-i18n) -%if "%{?tizen_version}" == "3.0" +%if 0%{?tizen_version_major} >= 3 BuildRequires: pkgconfig(libtzplatform-config) BuildRequires: pkgconfig(cynara-client) %else @@ -67,7 +67,7 @@ file contents and checking url to prevent malicious items. %global test_dir %{rw_data_dir}/%{service_name}-test %global test_res_dir %{ro_data_dir}/%{service_name}-test -%if "%{?tizen_version}" == "3.0" +%if 0%{?tizen_version_major} >= 3 %global service_user security_fw %global service_group security_fw %global test_user owner @@ -88,7 +88,7 @@ file contents and checking url to prevent malicious items. Summary: CSR framework (common library) License: Apache-2.0 Group: Security/Libraries -%if "%{?tizen_version}" == "3.0" +%if 0%{?tizen_version_major} >= 3 BuildRequires: pkgconfig(cynara-creds-socket) %else BuildRequires: pkgconfig(libsmack) @@ -187,7 +187,7 @@ Content Screening and Reputation framework (test program) %else -DWITH_SAMPLE_ENGINE:BOOL=OFF \ %endif -%if "%{?tizen_version}" == "3.0" +%if 0%{?tizen_version_major} >= 3 -DTZ_SYS_STORAGE=%TZ_SYS_STORAGE \ -DTZ_SYS_RW_APP=%TZ_SYS_RW_APP \ -DTZ_SYS_RO_APP=%TZ_SYS_RO_APP \ @@ -209,7 +209,7 @@ mkdir -p %{buildroot}%{rw_db_dir} mkdir -p %{buildroot}%{ro_db_dir} cp data/scripts/*.sql %{buildroot}%{ro_db_dir} -%if "%{?tizen_version}" == "3.0" +%if 0%{?tizen_version_major} >= 3 mkdir -p %{buildroot}%{upgrade_script_dir} cp data/scripts/500.%{service_name}.sh %{buildroot}%{upgrade_script_dir} %endif @@ -294,7 +294,7 @@ chsmack -a "_" %{test_dir}/test_dir/dir1 %dir %attr(775, %{service_user}, %{service_group}) %{engine_rw_working_dir} # RW area platform upgrade script -%if "%{?tizen_version}" == "3.0" +%if 0%{?tizen_version_major} >= 3 %attr(755, -, -) %{upgrade_script_dir}/500.%{service_name}.sh %endif |