[4.0] Fix : Added backward-compatibility 99/114299/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/4.0/unified/20170816.013234 accepted/tizen/4.0/unified/20170816.015801 accepted/tizen/4.0/unified/20170828.222300 accepted/tizen/common/20170214.173418 accepted/tizen/ivi/20170214.011143 accepted/tizen/mobile/20170214.011106 accepted/tizen/tv/20170214.011119 accepted/tizen/unified/20170309.035916 accepted/tizen/wearable/20170214.011130 submit/tizen/20170213.093416 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100005 submit/tizen_4.0_unified/20170814.115522 submit/tizen_unified/20170308.100413 tizen_4.0.m1_release
authorhk57.kim <hk57.kim@samsung.com>
Mon, 13 Feb 2017 01:46:43 +0000 (10:46 +0900)
committerhk57.kim <hk57.kim@samsung.com>
Mon, 13 Feb 2017 01:46:43 +0000 (10:46 +0900)
- This is for Tizen 4.0
- Added backward-compatibility that does not deteriorate 4.0 Configurability

Change-Id: Ida6e15895d1449f9650b9332c8f02a224605c49a
Signed-off-by: hk57.kim <hk57.kim@samsung.com>
packaging/gupnp.spec

index fc02a32..2a30a67 100644 (file)
@@ -13,8 +13,15 @@ BuildRequires:  pkgconfig(gssdp-1.0)
 BuildRequires:  pkgconfig(libsoup-2.4)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(uuid)
+# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# if ivi ||"undefined"
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
 BuildRequires:  gobject-introspection-devel
 BuildRequires:  vala
+%define intro yes
+%else
+%define intro no
+%endif
 
 
 %description
@@ -37,7 +44,7 @@ Files for development with gupnp.
 %build
 # Note that enabling-intro only adds additional files in devel package.
 # There is no different in the main binary package.
-%configure --prefix=/usr --with-context-manager=network-manager --enable-introspection=yes
+%configure --prefix=/usr --with-context-manager=network-manager --enable-introspection=%{intro}
 
 make %{?jobs:-j%jobs}
 
@@ -68,7 +75,11 @@ rm -rf %{buildroot}
 #/usr/lib/*.a
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*
+# This is for backward-compatibility. This does not deteriorate 4.0 Configurability
+# if ivi ||"undefined"
+%if "%{?profile}" != "wearable" && "%{?profile}" != "tv" && "%{?profile}" != "common" && "%{?profile}" != "mobile"
 %{_datadir}/gir-1.0/GUPnP-1.0.gir
 %{_libdir}/girepository-1.0/GUPnP-1.0.typelib
 %{_datadir}/vala/vapi/gupnp-1.0.deps
 %{_datadir}/vala/vapi/gupnp-1.0.vapi
+%endif