Remove Profile Build Dependency 44/91244/7
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 6 Oct 2016 10:54:28 +0000 (10:54 +0000)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 9 Jan 2017 03:53:31 +0000 (12:53 +0900)
This commit completely removes the build dependencies on
Tizen profile or repositories and moves adaptation roles
to meta-*.git so that Tizen becomes configurable.

Note

1. This commit is not required for Tizen 3.0 Release. (for >3.0)
If you don't feel comfortable for Tizen 3.0 Release Schedule,
you may delay merging/SR of this commit.

2. When the maintainer sends SR, JIRA-TRE issue with the following
contents needs to be created for Release Engineering

  For all metas with gst-plugins-good:
  - Add gst-plugins-good-extra-circle for wearable profile+circular devices

  If a meta does not have gst-plugins-good, please do NOT add these.

Change-Id: Ie90cd4400a2ce8dcf415ba090284e7661614c822
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/gst-plugins-good.spec

index 8a67756..5f0e5b0 100644 (file)
@@ -57,6 +57,15 @@ Enhances:       gst-plugins-good
 This package provides complementary plugins for
 %{name}.
 
+%package extra-circle
+Summary:       Extended plugins for circle displays (optional)
+Requires:      %{name} = %{version}
+
+%description extra-circle
+Extended plugins for circle displays (optional)
+Subpackaged because circle displays do not use the one from
+rectangular library.
+
 %prep
 %setup -q -n gst-plugins-good-%{version}
 %setup -q -T -D -a 100
@@ -89,9 +98,6 @@ export CFLAGS+=" -DTIZEN_FEATURE_V4L2SRC_MODIFICATION\
        --disable-taglib\
        --disable-wavpack\
        --enable-experimental\
-%if "%_repository" == "target-circle"
-       --disable-gst_v4l2\
-%endif
 %if "%{TIZEN_PRODUCT_TV}" == "1"
        --disable-equalizer\
        --disable-flv\
@@ -176,9 +182,8 @@ make %{?_smp_mflags} CFLAGS+="-Wno-error" CXXFLAGS+="-Wno-error"
 #%{_libdir}/gstreamer-%{gst_branch}/libgstspectrum.so
 #%{_libdir}/gstreamer-%{gst_branch}/libgstspeex.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstudp.so
-%if "%_repository" != "target-circle"
+# Not used in circular display:
 %{_libdir}/gstreamer-%{gst_branch}/libgstvideo4linux2.so
-%endif
 
 %{_libdir}/gstreamer-%{gst_branch}/libgstvideocrop.so
 %{_libdir}/gstreamer-%{gst_branch}/libgstvideofilter.so
@@ -209,3 +214,8 @@ make %{?_smp_mflags} CFLAGS+="-Wno-error" CXXFLAGS+="-Wno-error"
 %defattr(-, root, root)
 %{_libdir}/gstreamer-%{gst_branch}/libgstaasink.so
 %endif
+
+%post extra-circle
+rm %{_libdir}/gstreamer-%{gst_branch}/libgstvideo4linux2.so
+
+%files extra-circle