From 311c13454cfade2a05029493dafe1a458bd89e8e Mon Sep 17 00:00:00 2001 From: Vasiliy Glazov Date: Thu, 9 Jul 2020 10:58:56 +0200 Subject: [PATCH] Move zbar plugin to separate subpackage Plugin zbar require some heavy libs like ImageMagick-libs graphviz gtk2 and others. Without it gstreamer1-plugins-bad-free-extras can be used on gtk2-less systems and requires more then ten megabytes less. For example I don't need all this for pulseeffects package. --- gstreamer1-plugins-bad-free.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/gstreamer1-plugins-bad-free.spec b/gstreamer1-plugins-bad-free.spec index c1dff0f..039def1 100644 --- a/gstreamer1-plugins-bad-free.spec +++ b/gstreamer1-plugins-bad-free.spec @@ -157,6 +157,19 @@ extra "bad" plugins for sources (mythtv), sinks (fbdev) and effects (pitch) which are not used very much and require additional libraries to be installed. +%package zbar +Summary: GStreamer "bad" plugins zbar plugin +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description zbar +GStreamer is a streaming media framework, based on graphs of elements which +operate on media data. + +gstreamer-plugins-bad contains plug-ins that aren't tested well enough, +or the code is not of good enough quality. + +This package (%{name}-zbar) contains the zbar +plugin which allows decode bar codes. %package fluidsynth Summary: GStreamer "bad" plugins fluidsynth plugin @@ -493,9 +506,11 @@ rm $RPM_BUILD_ROOT%{_bindir}/playout %{_libdir}/gstreamer-%{majorminor}/libgstopenjpeg.so %{_libdir}/gstreamer-%{majorminor}/libgstspandsp.so %{_libdir}/gstreamer-%{majorminor}/libgstteletext.so -%{_libdir}/gstreamer-%{majorminor}/libgstzbar.so %{_libdir}/gstreamer-%{majorminor}/libgstva.so +%files zbar +# Plugins with external dependencies +%{_libdir}/gstreamer-%{majorminor}/libgstzbar.so %files fluidsynth # Plugins with external dependencies