Add conditional for building gst010 plugin

Add conditional that can be used to easily enable or disable building of
plugin for gst010 / gstreamer 0.10.  The Fedora default remains
unchanged, both gst / gstreamer 1.0 and gst010 / gstreamer 0.10 plugins
are built.
This commit is contained in:
Tomas Hoger 2018-01-21 14:54:52 +01:00
parent 6757309072
commit 4a50d35527

View File

@ -1,6 +1,13 @@
# enable/disable building of plugin for gstreamer 0.10
%if 0%{?rhel} > 7
%bcond_with gst010
%else
%bcond_without gst010
%endif
Name: libnice
Version: 0.1.13
Release: 10%{?dist}
Release: 11%{?dist}
Summary: GLib ICE implementation
Group: System Environment/Libraries
@ -11,8 +18,10 @@ Patch1: libnice-0.1.13-20160610.patch
BuildRequires: glib2-devel
BuildRequires: gobject-introspection-devel
%if %{with gst010}
BuildRequires: gstreamer-devel
BuildRequires: gstreamer-plugins-base-devel
%endif
BuildRequires: gstreamer1-devel >= 0.11.91
BuildRequires: gstreamer1-plugins-base-devel >= 0.11.91
BuildRequires: gupnp-igd-devel >= 0.1.2
@ -27,6 +36,7 @@ ICE include the Session Initiation Protocol (SIP) and Jingle, XMPP extension
for audio/video calls.
%if %{with gst010}
%package gstreamer
Summary: GStreamer plugin for %{name}
Group: Development/Libraries
@ -34,6 +44,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%description gstreamer
The %{name}-gstreamer package contains a gstreamer 0.10 plugin for %{name}.
%endif
%package gstreamer1
@ -101,8 +112,10 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{_libdir}/girepository-1.0/Nice-0.1.typelib
%if %{with gst010}
%files gstreamer
%{_libdir}/gstreamer-0.10/libgstnice010.so
%endif
%files gstreamer1
@ -124,6 +137,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%changelog
* Wed Jan 24 2018 Tomas Hoger <thoger@redhat.com> - 0.1.13-11
- Add conditional for building with(out) gst010 / GStreamer 0.10 support
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.13-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild