gst-plugins-good: Split package for cairo to remove cairo dependency in headless... 11/280111/1 accepted/tizen/unified/20220825.053116 submit/tizen/20220824.084449
authorHaesu Gwon <haesu.gwon@samsung.com>
Wed, 24 Aug 2022 05:10:41 +0000 (14:10 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Wed, 24 Aug 2022 05:10:41 +0000 (14:10 +0900)
[Version] 1.20.0-33
[Issue Type] Improvement

Change-Id: Ia6f86fb7723d7e5f55c30ed811edeecb05aed38e

packaging/gstreamer.spec

index 8571c04..4ad7a0e 100644 (file)
@@ -62,7 +62,7 @@
 
 Name:           %{_name}
 Version:        1.20.0
-Release:        32
+Release:        33
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
@@ -236,8 +236,6 @@ BuildRequires:  pkgconfig(vconf)
 BuildRequires:  pkgconfig(vpx)
 BuildRequires:  pkgconfig(zlib)
 %if "%{tizen_profile_name}" != "tv"
-BuildRequires:  pkgconfig(cairo)
-BuildRequires:  pkgconfig(cairo-gobject)
 BuildRequires:  pkgconfig(libpng) >= 1.2
 BuildRequires:  pkgconfig(libv4l2)
 %endif
@@ -270,6 +268,20 @@ Enhances:       gst-plugins-good
 This package provides complementary plugins for gst-plugins-good and
 plugins not included in official Tizen images, which may be used for development / experimental purposes.
 
+%package -n gst-plugins-good-cairo
+Summary:        Cairo plugin for gst-plugins-good
+Group:          Multimedia/Framework
+%if "%{tizen_profile_name}" != "tv"
+BuildRequires:  pkgconfig(cairo)
+BuildRequires:  pkgconfig(cairo-gobject)
+%endif
+Requires:       gst-plugins-good = %{version}
+Enhances:       gst-plugins-good
+
+%description -n gst-plugins-good-cairo
+This package provides cairo plugin for gst-plugins-good and
+this is not included in Tizen headless image.
+
 %endif
 
 #######################################################
@@ -1022,7 +1034,6 @@ rm -rf $RPM_BUILD_ROOT
 %{_lib_gstreamer_dir}/libgstximagesrc.so
 %endif # x
 %if "%{tizen_profile_name}" != "tv"
-%{_lib_gstreamer_dir}/libgstcairo.so
 %{_lib_gstreamer_dir}/libgsteffectv.so
 %{_lib_gstreamer_dir}/libgstflv.so
 %{_lib_gstreamer_dir}/libgstimagefreeze.so
@@ -1052,6 +1063,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_lib_gstreamer_dir}/libgstpng.so
 %endif
 
+%files -n gst-plugins-good-cairo
+%manifest gst-plugins-good.manifest
+%defattr(-, root, root)
+%license subprojects/gst-plugins-good/COPYING
+%if "%{tizen_profile_name}" != "tv"
+%{_lib_gstreamer_dir}/libgstcairo.so
+%endif
+
 %endif
 
 ###################### gst-plugins-bad ######################