This commit is contained in:
Sergey Zhemoytel 2024-02-11 14:58:58 +00:00
parent bbd951a5c1
commit 8b04ac050e
2 changed files with 27 additions and 30 deletions

View file

@ -1,2 +1,2 @@
sources:
gstreamer-1.12.4.tar.xz: 71ed76a339252d551c5da6bdcb641c31bea77612
gstreamer-1.18.6.tar.xz: e97c68734794df6cc80a7aeff71b85262087e175

View file

@ -12,17 +12,19 @@
Summary: GStreamer Streaming-media framework runtime
Name: %{oname}%{api}
Version: 1.12.4
Version: 1.18.6
Release: 1
License: LGPLv2+
Group: Sound
Url: http://gstreamer.freedesktop.org/
Source0: http://gstreamer.freedesktop.org/src/gstreamer/%{oname}-%{version}.tar.xz
URL: https://gstreamer.freedesktop.org
Source0: %{url}/src/gstreamer/%{oname}-%{version}.tar.xz
Source1: gstreamer.prov
Patch0: gstreamer-inspect-rpm-format.patch
BuildRequires: meson
BuildRequires: chrpath
BuildRequires: bison
BuildRequires: flex
BuildRequires: bash-completion-devel
%ifarch %{ix86}
BuildRequires: nasm
%endif
@ -44,9 +46,14 @@ BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(libxml-2.0) >= 2.4.9
BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(libunwind)
BuildRequires: pkgconfig(gmp)
BuildRequires: pkgconfig(gsl)
%ifnarch %{arm} %{mips}
BuildRequires: pkgconfig(valgrind)
%endif
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(libcap)
%description
GStreamer is a streaming-media framework, based on graphs of filters which
@ -184,46 +191,32 @@ applications and plugins for GStreamer.
# we list all of the files we really need to trap incomplete doc builds
# then we catch the rest with *, you can safely ignore the errors from this
## gstreamer API
%{_datadir}/gtk-doc/html/*
%{_datadir}/gir-1.0/Gst-%{api}.gir
%{_datadir}/gir-1.0/GstBase-%{api}.gir
%{_datadir}/gir-1.0/GstCheck-%{api}.gir
%{_datadir}/gir-1.0/GstController-%{api}.gir
%{_datadir}/gir-1.0/GstNet-%{api}.gir
%{_bindir}/gst-tester-%{api}
%{_libdir}/gstreamer-%{api}/gst-hotdoc-plugins-scanner
%{_libdir}/gstreamer-%{api}/gst-plugins-doc-cache-generator
%{_datadir}/gdb/auto-load/usr/lib64/libgstreamer-%{api}.so.*-gdb.py
%{_datadir}/gstreamer-%{api}/gdb/glib_gobject_helper.py
%{_datadir}/gstreamer-1.0/gdb/gst_gdb.py
#----------------------------------------------------------------------------
%prep
%setup -q -n %{oname}-%{version}
%apply_patches
%setup -qn %{oname}-%{version}
#apply_patches
%build
%configure2_5x \
--enable-debug \
--disable-static \
--disable-dependency-tracking \
--with-package-name='%{_vendor} %{name} package' \
--with-package-origin='http://bugs.%{_vendor}.org/' \
--disable-tests \
--disable-examples \
--disable-rpath \
%if %{with docs}
--enable-docbook \
--enable-gtk-doc \
%else
--disable-docbook \
--disable-gtk-doc \
%endif
%ifarch %{mips}
--disable-valgrind \
%endif
--with-html-dir=%{_datadir}/gtk-doc/html
%make
%meson
%meson_build
%install
%makeinstall_std
%meson_install
mkdir -p %{buildroot}%{_var}/cache/%{oname}-%{api}
@ -237,4 +230,8 @@ chrpath -d %{buildroot}{%{_bindir}/gst-{inspect,launch,typefind}-1.0,%{_libdir}/
# Add the provides script
install -m0755 -D %{SOURCE1} %{buildroot}%{_prefix}/lib/rpm/%{_vendor}/%{name}.prov
# unset suid
chmod 0755 %{buildroot}%{_libdir}/gstreamer-%{api}/gst-ptp-helper
%find_lang %{oname}-%{api}