Remove Profile Build Dependency 26/99126/1
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 22 Nov 2016 03:59:00 +0000 (12:59 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 22 Nov 2016 03:59:00 +0000 (12:59 +0900)
- This is for Tizen 4.0.
  (4.0 Configurability & Building Block prohibits the usage of
  profile macro; the value of "profile" will become "undefined"
  unconditionally.)

- Enabling intro or not, the result of binary (main package) is
  not changed. Only the devel package gets bigger, which cannot
  affect the size of non-ivi profiles.

Change-Id: I862bba1c36f381da10b7d471f8a0fcd163b740e3
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/gupnp.spec

index c3e28a1..fc02a32 100644 (file)
@@ -1,9 +1,3 @@
-%if "%{profile}" == "ivi"
-%define intro yes
-%else
-%define intro no
-%endif
-
 Name: gupnp
 Summary:    GUPnP is an framework for creating UPnP devices & control points
 Version:    0.20.5
@@ -19,10 +13,8 @@ BuildRequires:  pkgconfig(gssdp-1.0)
 BuildRequires:  pkgconfig(libsoup-2.4)
 BuildRequires:  pkgconfig(libxml-2.0)
 BuildRequires:  pkgconfig(uuid)
-%if "%{profile}" == "ivi"
 BuildRequires:  gobject-introspection-devel
 BuildRequires:  vala
-%endif
 
 
 %description
@@ -43,7 +35,9 @@ Files for development with gupnp.
 %setup -q -n %{name}-%{version}
 
 %build
-%configure --prefix=/usr --with-context-manager=network-manager --enable-introspection=%{intro}
+# 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
 
 make %{?jobs:-j%jobs}
 
@@ -74,9 +68,7 @@ rm -rf %{buildroot}
 #/usr/lib/*.a
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*
-%if "%{profile}" == "ivi"
 %{_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