Dominique Leuenberger 2024-10-17 06:32:17 +00:00 committed by Git OBS Bridge
commit 375bab1510
15 changed files with 2085 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

23
README.SUSE Normal file
View File

@ -0,0 +1,23 @@
In order to update the vendor files (including the special vendor file for
dav1d >= 1.3), follow these steps:
rm -Rf gst-plugins-rs
osc service mr
tar xv --zstd -f ../vendor.tar.zst .cargo
mv .cargo/config cargo_config
# Now let's prepare the special vendor file for dav1d >= 1.3
mv vendor.tar.zst vendor-original.tar.zst
pushd gst-plugins-rs
sed -i -e 's/^dav1d = "[0-9.]*"/dav1d = "0.10"/' video/dav1d/Cargo.toml
sed -i -e "s/'extra-deps': {'dav1d': \['>=1.0', '<1.3'\]}/'extra-deps': {'dav1d': ['>=1.3']}/" meson.build
popd gst-plugins-rs
osc service mr cargo_vendor
mv vendor.tar.zst vendor-for-dav1d-1.3.0.tar.zst
mv vendor-original.tar.zst vendor.tar.zst

56
_constraints Normal file
View File

@ -0,0 +1,56 @@
<constraints>
<hardware>
<disk>
<size unit="G">30</size>
</disk>
</hardware>
<overwrite>
<conditions>
<arch>i586</arch>
</conditions>
<hardware>
<disk>
<size unit="G">27</size>
</disk>
</hardware>
</overwrite>
<overwrite>
<conditions>
<arch>aarch64</arch>
</conditions>
<hardware>
<disk>
<size unit="G">27</size>
</disk>
<memory>
<size unit="G">16</size>
</memory>
</hardware>
</overwrite>
<overwrite>
<conditions>
<arch>s390x</arch>
</conditions>
<hardware>
<disk>
<size unit="G">23</size>
</disk>
<memory>
<size unit="G">12</size>
</memory>
</hardware>
</overwrite>
<overwrite>
<conditions>
<arch>riscv64</arch>
</conditions>
<hardware>
<disk>
<size unit="G">23</size>
</disk>
<memory>
<size unit="G">10</size>
</memory>
</hardware>
</overwrite>
</constraints>

21
_service Normal file
View File

@ -0,0 +1,21 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git</param>
<param name="filename">gst-plugins-rs</param>
<param name="versionformat">0.13.2</param>
<param name="revision">refs/tags/0.13.2</param>
<param name="scm">git</param>
</service>
<service name="set_version" mode="manual"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">zst</param>
</service>
<service name="cargo_vendor" mode="manual">
<param name="srcdir">gst-plugins-rs</param>
<param name="compression">zst</param>
<param name="update">true</param>
</service>
</services>

29
cargo_config Normal file
View File

@ -0,0 +1,29 @@
[source.crates-io]
replace-with = "vendored-sources"
[source."git+https://github.com/gtk-rs/gtk-rs-core?branch=0.19"]
git = "https://github.com/gtk-rs/gtk-rs-core"
branch = "0.19"
replace-with = "vendored-sources"
[source."git+https://github.com/gtk-rs/gtk4-rs?branch=0.8"]
git = "https://github.com/gtk-rs/gtk4-rs"
branch = "0.8"
replace-with = "vendored-sources"
[source."git+https://github.com/rust-av/ffv1.git?rev=2afb025a327173ce891954c052e804d0f880368a"]
git = "https://github.com/rust-av/ffv1.git"
rev = "2afb025a327173ce891954c052e804d0f880368a"
replace-with = "vendored-sources"
[source."git+https://github.com/rust-av/flavors"]
git = "https://github.com/rust-av/flavors"
replace-with = "vendored-sources"
[source."git+https://gitlab.freedesktop.org/gstreamer/gstreamer-rs?branch=0.22"]
git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs"
branch = "0.22"
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20df0c8f46f3c4f8284b2ae7bb475220303992d56b93d74f110cf2f1d44b28dc
size 8947213

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:552a0736fcce820e0505c75a9c5d962158d7c9b515df39b45638e0323781b1b5
size 11095053

BIN
gst-plugins-rs-0.13.2.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

4
gst-plugins-rs.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: gst-plugins-rs
version: 0.13.2
mtime: 1727549325
commit: f0f33692ac620a5f75da5c2a0b54e33388ba4cf5

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2013 Richard Hughes <richard@hughsie.com> -->
<application>
<id type="codec">gstreamer-plugins-rs</id>
<metadata_license>CC0</metadata_license>
<name>GStreamer Plugins rust</name>
<summary>Multimedia plugins written in rust</summary>
<description>
<p>
This addon includes several plugins that are written in Rust.
</p>
<p>
The plugins build upon the GStreamer Rust bindings.
</p>
</description>
</application>

1723
gstreamer-plugins-rs.changes Normal file

File diff suppressed because it is too large Load Diff

174
gstreamer-plugins-rs.spec Normal file
View File

@ -0,0 +1,174 @@
#
# spec file for package gstreamer-plugins-rs
#
# Copyright (c) 2024 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/
#
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%define _name gst-plugins-rs
%define gst_branch 1.0
%ifarch s390 s390x ppc ppc64
%bcond_with aws
%else
%bcond_without aws
%endif
Name: gstreamer-plugins-rs
Version: 0.13.2
Release: 0
Summary: GStreamer Streaming-Media Framework Plug-Ins
License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Other
URL: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs
Source: %{_name}-%{version}.tar.zst
Source2: vendor.tar.zst
Source4: gstreamer-plugins-rs.appdata.xml
BuildRequires: cargo-c >= 0.9.21
BuildRequires: cargo-packaging >= 1.2.0+3
BuildRequires: clang
BuildRequires: git
BuildRequires: llvm
BuildRequires: meson >= 0.60
BuildRequires: nasm
BuildRequires: pkgconfig
BuildRequires: python3-tomli
BuildRequires: zstd
BuildRequires: pkgconfig(cairo) >= 1.10.0
BuildRequires: pkgconfig(dav1d) >= 1.3.0
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-base-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(gstreamer-webrtc-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
ExclusiveArch: %{rust_tier1_arches}
%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.
This package provides various plugins written in Rust.
%package devel
Summary: GStreamer Streaming-Media Framework Plug-Ins development files
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%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} -a2 -p1
%build
%meson \
--default-library=shared \
-Ddoc=disabled \
-Ddav1d=auto \
-Dsodium=enabled \
-Dcsound=disabled \
%if %{without aws}
-Daws=disabled \
%endif
%{nil}
%meson_build
%install
%meson_install
mkdir -p %{buildroot}%{_datadir}/appdata
cp %{SOURCE4} %{buildroot}%{_datadir}/appdata/
%files
%license LICENSE-APACHE LICENSE-LGPLv2 LICENSE-MIT
%doc README.md
%dir %{_libdir}/gstreamer-%{gst_branch}
%if %{with aws}
%{_libdir}/gstreamer-%{gst_branch}/libgstaws.so
%endif
%{_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}/libgstdav1d.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfallbackswitch.so
%{_libdir}/gstreamer-%{gst_branch}/libgstffv1.so
%{_libdir}/gstreamer-%{gst_branch}/libgstfmp4.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgif.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgopbuffer.so
%{_libdir}/gstreamer-%{gst_branch}/libgstgtk4.so
%{_libdir}/gstreamer-%{gst_branch}/libgsthlssink3.so
%{_libdir}/gstreamer-%{gst_branch}/libgsthsv.so
%{_libdir}/gstreamer-%{gst_branch}/libgstjson.so
%{_libdir}/gstreamer-%{gst_branch}/libgstlewton.so
%{_libdir}/gstreamer-%{gst_branch}/libgstlivesync.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmp4.so
%{_libdir}/gstreamer-%{gst_branch}/libgstmpegtslive.so
%{_libdir}/gstreamer-%{gst_branch}/libgstndi.so
%{_libdir}/gstreamer-%{gst_branch}/libgstoriginalbuffer.so
%{_libdir}/gstreamer-%{gst_branch}/libgstquinn.so
%{_libdir}/gstreamer-%{gst_branch}/libgstraptorq.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrav1e.so
%{_libdir}/gstreamer-%{gst_branch}/libgstregex.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}/libgstrsinter.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsonvif.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrspng.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsrtp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsrtsp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrstracers.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrsvideofx.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrswebp.so
%{_libdir}/gstreamer-%{gst_branch}/libgstrswebrtc.so
%{_libdir}/gstreamer-%{gst_branch}/libgstsodium.so
%{_libdir}/gstreamer-%{gst_branch}/libgstspotify.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttextahead.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttextwrap.so
%{_libdir}/gstreamer-%{gst_branch}/libgstthreadshare.so
%{_libdir}/gstreamer-%{gst_branch}/libgsttogglerecord.so
%{_libdir}/gstreamer-%{gst_branch}/libgsturiplaylistbin.so
%{_libdir}/gstreamer-%{gst_branch}/libgstwebrtchttp.so
%dir %{_datadir}/appdata
%{_datadir}/appdata/gstreamer-plugins-rs.appdata.xml
%{_bindir}/gst-webrtc-signalling-server
%files devel
%{_libdir}/pkgconfig/*.pc
%changelog

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6562a41f89ec0a80df5a33cb393f10d32421462d3841a40a074d10909f33ce37
size 78900412

BIN
vendor.tar.zst (Stored with Git LFS) Normal file

Binary file not shown.