File gstreamer-plugin-gstflump3dec.spec of Package gstreamer-plugin-gstflump3dec.14009
#
# spec file for package gstreamer-plugin-gstflump3dec.spec
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%ifarch x86_64
%define bit64 (64bit)
%endif
%define pkgname gst-fluendo-mp3
Name: gstreamer-plugin-gstflump3dec
Version: 0.10.21
Release: 0
Summary: GStreamer plug-in from Fluendo for MP3 support
License: MIT
Group: Productivity/Multimedia/Other
Url: http://shop.fluendo.com
Source: gst-fluendo-mp3-20130324.tar.bz2
Source5: getsource.sh
Patch0: strip-ipp.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gstreamer-0_10-plugins-base-devel
BuildRequires: gstreamer-plugins-base-devel
BuildRequires: gstreamer-utils
BuildRequires: libtool
Requires: gstreamer
Conflicts: gst-fluendo-plugins
Provides: gst-fluendo-mp3 = 18.0.10.21
Obsoletes: gst-fluendo-mp3 <= 18
Provides: gstreamer-fluendo-mp3 = 18.0.10.21
Obsoletes: gstreamer-fluendo-mp3 <= 18
Provides: gstreamer1(decoder-audio/mpeg)(mpegaudioversion=1)(mpegversion=1)(layer=3)()%{?bit64}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64 ppc
%define gst_0_10_libdir %{_libdir}/gstreamer-0.10
%define gst_1_0_libdir %{_libdir}/gstreamer-1.0
%description
This package contains the gstreamer MP3 decoder library from Fluendo
built for gstreamer 1.0 .
%package -n gstreamer-0_10-plugin-gstflump3dec
Summary: GStreamer plug-in from Fluendo for MP3 support
Group: Productivity/Multimedia/Other
Requires: gstreamer010
Conflicts: gst-fluendo-plugins
Provides: gst-fluendo-mp3 = 18
Obsoletes: gst-fluendo-mp3 < 18
Provides: gstreamer-0_10-fluendo-mp3 = 18.0.10.21
Obsoletes: gstreamer-0_10-fluendo-mp3 <= 18
%description -n gstreamer-0_10-plugin-gstflump3dec
This package contains the gstreamer MP3 decoder library from Fluendo
built for gstreamer 0.10 .
%prep
%setup -q -n %{pkgname}
%patch0 -p1
cp -Ra ../%{pkgname} ../%{pkgname}-1.0
# Force the detection of gst 1.0 to fail so we build the 0.10 version
sed -ie "s/AG_GST_DETECT_VERSION(\[1.0.0\],/AG_GST_DETECT_VERSION(\[2.0.0\],/" configure.ac
%build
./autogen.sh
./configure --prefix=%{_prefix} --libdir=%{_libdir} --with-gstreamer-api=0.10
make
pushd ../%{pkgname}-1.0
./autogen.sh
./configure --prefix=%{_prefix} --libdir=%{_libdir} --with-gstreamer-api=1.0
make
popd
%install
%{make_install}
pushd ../%{pkgname}-1.0
%{make_install}
popd
# test section
gst-inspect-0.10 --gst-plugin-path=%{buildroot}%{gst_0_10_libdir} flump3dec
gst-inspect-1.0 --gst-plugin-path=%{buildroot}%{gst_1_0_libdir} flump3dec
%clean
rm -rf "%{buildroot}"
%files -n gstreamer-0_10-plugin-gstflump3dec
%defattr(-,root,root)
%doc README
%license LICENSE
%{gst_0_10_libdir}/libgst*.so*
%{gst_0_10_libdir}/libgst*.la
%files
%defattr(-,root,root)
%doc README
%license LICENSE
%{gst_1_0_libdir}/libgst*.so*
%{gst_1_0_libdir}/libgst*.la
%changelog