%bcond_with emulator Name: gst-plugins-emulator Version: 1.2.8 Release: 0 Summary: GStreamer Decoder and Encoder Plugins for Emulator Group: Multimedia/Libraries License: LGPL-2.0+ Source0: %{name}-%{version}.tar.gz Source1001: packaging/%{name}.manifest BuildRequires: pkgconfig(gstreamer-1.0) BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) BuildRequires: pkgconfig(glib-2.0) %if %{with emulator} ExclusiveArch: %{ix86} x86_64 %else ExclusiveArch: %endif %description It includes video/audio decoders and encoders for Emulator Its codec set is determined after communicating with emulator %prep %setup -q %build cp %{SOURCE1001} . ./autogen.sh # Add gcc version check as address-of-packed-member warnings are not introduced by GCC-6 %define gccversion %(gcc -dumpversion | cut -f1 -d.) %if %{gccversion} >= 9 CFLAGS+=" -Wno-error=address-of-packed-member" %configure CFLAGS="$CFLAGS" --disable-static \ --disable-nls \ --prefix=%{_prefix} \ %else %configure --disable-static \ --disable-nls \ --prefix=%{_prefix} \ %endif make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %manifest gst-plugins-emulator.manifest %defattr(-,root,root,-) %{_libdir}/gstreamer-1.0/libgstemul.so %license LICENSE.LGPLv2+