public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Vasiliy Glazov <vascom2@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/svt-av1] epel9-next: Added gstreamer plugin
Date: Tue, 14 Jul 2026 21:52:20 GMT	[thread overview]
Message-ID: <178406594079.1.7619934969116111022.rpms-svt-av1-351ce6d13286@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/svt-av1
            Branch : epel9-next
            Commit : 351ce6d13286fdaedceead896f08dd752e85f80c
            Author : Vasiliy Glazov <vascom2@gmail.com>
            Date   : 2019-09-18T07:11:32+00:00
            Stats  : +33/-3 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/svt-av1/c/351ce6d13286fdaedceead896f08dd752e85f80c?branch=epel9-next

            Log:
            Added gstreamer plugin

This commit enable building gstreamer plugin.

---
diff --git a/svt-av1.spec b/svt-av1.spec
index 0c14458..775bf14 100644
--- a/svt-av1.spec
+++ b/svt-av1.spec
@@ -6,7 +6,7 @@ encoding / transcoding video applications.}
 
 Name:           svt-av1
 Version:        0.6.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Scalable Video Technology for AV1 Encoder
 
 # Main library: BSD-2-Clause-Patent
@@ -28,6 +28,8 @@ BuildRequires:  gcc-c++
 BuildRequires:  cmake
 BuildRequires:  yasm
 BuildRequires:  help2man
+BuildRequires:  gstreamer1-devel
+BuildRequires:  gstreamer1-plugins-base-devel
 
 Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
 
@@ -48,12 +50,22 @@ Requires:   %{name}-libs = %{version}-%{release}
 
 This package contains the development files for SVT-AV1.
 
+%package -n     gstreamer1-%{name}
+Summary:        GStreamer 1.0 %{name}-based plug-in
+Requires:       gstreamer1-plugins-base%{?_isa}
+
+%description -n gstreamer1-%{name}
+This package provides %{name}-based GStreamer plug-in.
+
 %prep
 %autosetup -p1 -n SVT-AV1-%{version}
+# Patch build gstreamer plugin
+sed -e "s|install: true,|install: true, include_directories : '../Source/API', link_args : '-lSvtAv1Enc',|" \
+-e "/svtav1enc_dep =/d" -e 's|, svtav1enc_dep||' -e "s|svtav1enc_dep.found()|true|" -i gstreamer-plugin/meson.build
 
 %build
 mkdir _build
-cd _build
+pushd _build
 %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        -DCMAKE_INSTALL_LIBDIR=%{_lib} \
@@ -64,9 +76,16 @@ cd _build
        -DNATIVE=OFF \
        ..
 %make_build
+popd
+
+pushd gstreamer-plugin
+    export LIBRARY_PATH="$PWD/../Bin/RelWithDebInfo:$LIBRARY_PATH"
+    %meson
+    %meson_build
+popd
 
 %install
-cd _build
+pushd _build
 %make_install
 rm -f %{buildroot}%{_libdir}/*.{a,la}
 
@@ -75,6 +94,11 @@ export PATH=$PATH:%{buildroot}%{_bindir}
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
 help2man -N --help-option=-help --version-string=%{version} SvtAv1DecApp > %{buildroot}%{_mandir}/man1/SvtAv1DecApp.1
 help2man -N --help-option=-help --version-string=%{version} SvtAv1EncApp > %{buildroot}%{_mandir}/man1/SvtAv1EncApp.1
+popd
+
+pushd gstreamer-plugin
+    %meson_install
+popd
 
 %files
 %{_bindir}/SvtAv1DecApp
@@ -95,7 +119,13 @@ help2man -N --help-option=-help --version-string=%{version} SvtAv1EncApp > %{bui
 %{_libdir}/pkgconfig/SvtAv1Dec.pc
 %{_libdir}/pkgconfig/SvtAv1Enc.pc
 
+%files -n gstreamer1-%{name}
+%{_libdir}/gstreamer-1.0/libgstsvtav1enc.so
+
 %changelog
+* Wed Sep 18 2019 Vasiliy Glazov <vascom2@gmail.com> - 0.6.0-3
+- Added gstreamer plugin
+
 * Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
 

                 reply	other threads:[~2026-07-14 21:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178406594079.1.7619934969116111022.rpms-svt-av1-351ce6d13286@fedoraproject.org \
    --to=vascom2@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox