From bb9df60c3722f091c2d56025ce427134c58a27ee Mon Sep 17 00:00:00 2001 From: "hk57.kim" Date: Mon, 13 Feb 2017 10:46:43 +0900 Subject: [PATCH] [4.0] Fix : Added backward-compatibility - This is for Tizen 4.0 - Added backward-compatibility that does not deteriorate 4.0 Configurability Change-Id: Ida6e15895d1449f9650b9332c8f02a224605c49a Signed-off-by: hk57.kim --- packaging/gupnp.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packaging/gupnp.spec b/packaging/gupnp.spec index fc02a32..2a30a67 100644 --- a/packaging/gupnp.spec +++ b/packaging/gupnp.spec @@ -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 -- 2.7.4