File gstreamer-plugins-rs.spec of Package gstreamer-plugins-rs.32050
#
# spec file for package gstreamer-plugins-rs
#
# Copyright (c) 2022 SUSE LLC
#
# 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/
#
%define _name gstreamer-plugins-rs
%define gst_branch 1.0
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
# Disable csound for now, bring issue upstream
#%%global __requires_exclude pkgconfig\\(csound\\)
%define req_rust_ver 1.56
Name: gstreamer-plugins-rs
Version: 0.8.2
Release: 0
Summary: GStreamer Streaming-Media Framework Plug-Ins
License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Other
URL: https://gstreamer.freedesktop.org/
Source0: %{_name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: cargo_config
Source3: gstreamer-plugins-rs.appdata.xml
Patch0: 0001-feath2-add-max_header_list_size.patch
Patch1: 0002-feath2-add-max_header_list_size-rename.patch
BuildRequires: cargo%{req_rust_ver}
BuildRequires: cargo-c
BuildRequires: clang
# Disable csound for now, bring issue upstream
#BuildRequires: csound-devel
BuildRequires: llvm
BuildRequires: git
BuildRequires: meson >= 0.47.0
BuildRequires: nasm
BuildRequires: pkgconfig
BuildRequires: rust%{req_rust_ver}
BuildRequires: pkgconfig(cairo) >= 1.10.0
BuildRequires: pkgconfig(dav1d)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(libsodium)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(pango)
Requires: gstreamer
Requires: gstreamer-plugins-base
Enhances: gstreamer
%description
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related, from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new
plug-ins.
%package devel
Summary: GStreamer Streaming-Media Framework Plug-Ins development files
Group: Development/Libraries/Other
Requires: %{name} = %{version}
#Requires: csound-devel
%description devel
GStreamer is a streaming media framework based on graphs of filters
that operate on media data. Applications using this library can do
anything media-related, from real-time sound processing to playing
videos. Its plug-in-based architecture means that new data types or
processing capabilities can be added simply by installing new
plug-ins.
This package contains the pkgconfig development files for the rust
plugins.
%prep
%autosetup -n %{_name}-%{version} -N
%setup -q -D -T -a 1
%define cargo_registry $(pwd)/vendor
mkdir .cargo
cp %{SOURCE2} .cargo/config
pushd vendor/hyper
%patch0 -p1
%patch1 -p1
sed -i -e "s/128dbe1443b3855a3dd48f1ff61d3aa4cb61ad38f9b8503b37d0d728fba880b5/f8810ae71c7ae5664f5c811a55cad6d0e0716232eeedc63bb76cb6261084d01c/" .cargo-checksum.json
sed -i -e "s/f944b70affd4db52b053c4f5765c118c3ae0cd2e42a3bcdb53f3f05b5d0771f9/950e826f6c5e2352203e16a9cd92c5278a5a60d03ef8d3ca885358a1946e84e4/" .cargo-checksum.json
popd
%build
# Disable csound for now, bring issue upstream
#export CSOUND_LIB_DIR=%%{_libdir}
export RUSTFLAGS=%{rustflags}
%meson \
-Ddav1d=auto \
-Dsodium=system \
-Dcsound=disabled \
%{nil}
%meson_build
%install
export RUSTFLAGS=%{rustflags}
%meson_install
mkdir -p %{buildroot}%{_datadir}/appdata
cp %{SOURCE3} %{buildroot}%{_datadir}/appdata/
%files
%license LICENSE-APACHE LICENSE-LGPLv2 LICENSE-MIT
%doc README.md
%dir %{_libdir}/gstreamer-%{gst_branch}
%{_libdir}/gstreamer-%{gst_branch}/libgstcdg.so
%{_libdir}/gstreamer-%{gst_branch}/libgstclaxon.so
# Disable csound for now, bring issue upstream
#%%{_libdir}/gstreamer-%%{gst_branch}/libgstcsound.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsdav1d.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfallbackswitch.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgif.so
%{_libdir}/gstreamer-%{gst_branch}/libgsthsv.so
%{_libdir}/gstreamer-%{gst_branch}/libgstlewton.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrav1e.so
%{_libdir}/gstreamer-%{gst_branch}/libgstreqwest.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsaudiofx.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsclosedcaption.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsfile.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsflv.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsjson.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrspng.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsregex.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrstextwrap.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrswebp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrusoto.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsodium.so
%{_libdir}/gstreamer-%{gst_branch}/libgstthreadshare.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttogglerecord.so
%{_libdir}/gstreamer-%{gst_branch}/libgstffv1.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfmp4.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgtk4.so
%{_libdir}/gstreamer-%{gst_branch}/libgsthlssink3.so
%{_libdir}/gstreamer-%{gst_branch}/libgstspotify.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttextahead.so
%{_libdir}/gstreamer-%{gst_branch}/libgsturiplaylistbin.so
%{_libdir}/gstreamer-%{gst_branch}/libgstvideofx.so
%dir %{_datadir}/appdata
%{_datadir}/appdata/gstreamer-plugins-rs.appdata.xml
%files devel
%{_libdir}/pkgconfig/*.pc
%changelog