$ git diff --patch-with-stat --summary efd8be288b2e804d5efcb6a73dd8a45feacbe051..3629a014535a62528d9565f4ad35521089040d72
.abf.yml | 2 +-
obs-gstreamer.spec | 8 ++++++--
revert-install-dir-changes.patch | 23 +++++++++++++++++++++++
3 files changed, 30 insertions(+), 3 deletions(-)
create mode 100644 revert-install-dir-changes.patch
diff --git a/.abf.yml b/.abf.yml
index a588263..f6d6862 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
sources:
- obs-gstreamer-0.3.5.tar.gz: d3bffeada25d929098866e6c12183f2a16913ef6
+ obs-gstreamer-0.4.0.tar.gz: 478f66cb2765b4898df70691b04a9d7efebf70c7
diff --git a/obs-gstreamer.spec b/obs-gstreamer.spec
index d611842..8c98954 100644
--- a/obs-gstreamer.spec
+++ b/obs-gstreamer.spec
@@ -1,12 +1,16 @@
Name: obs-gstreamer
-Version: 0.3.5
-Release: 1
+Version: 0.4.0
+Release: 2
License: GPLv2.0
Group: Video
Summary: GStreamer OBS Studio plugin
Url: https://github.com/fzwoch/obs-gstreamer/
Source0: https://github.com/fzwoch/obs-gstreamer/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
+# This patch revert commit https://github.com/fzwoch/obs-gstreamer/commit/4ca74407b0e056df5d8d57526bf41dfcb100f333
+# Reverted due installation plugins just inside /usr/lib64/ and not to /usr/lib64/obs-plugins/ and that cause issues with detecting it by obs.
+Patch0: revert-install-dir-changes.patch
+
BuildRequires: meson
BuildRequires: pkgconfig(libobs)
BuildRequires: pkgconfig(gstreamer-1.0)
diff --git a/revert-install-dir-changes.patch b/revert-install-dir-changes.patch
new file mode 100644
index 0000000..45b1c2c
--- /dev/null
+++ b/revert-install-dir-changes.patch
@@ -0,0 +1,23 @@
+diff -uraN obs-gstreamer-0.4.0/meson.build omv-obs-gstreamer-0.4.0/meson.build
+--- obs-gstreamer-0.4.0/meson.build 2023-01-06 17:17:31.000000000 +0100
++++ omv-obs-gstreamer-0.4.0/meson.build 2023-01-09 12:43:42.552917615 +0100
+@@ -18,12 +18,7 @@
+ # along with obs-gstreamer. If not, see <http://www.gnu.org/licenses/>.
+ #
+
+-project('obs-gstreamer', 'c',
+- default_options : [
+- 'prefix=~/.config/obs-studio/plugins/obs-gstreamer/bin/64bit',
+- 'libdir='
+- ],
+-)
++project('obs-gstreamer', 'c')
+
+ obs_dep = dependency('libobs', required : false)
+ if not obs_dep.found()
+@@ -56,4 +51,5 @@
+ dependency('gstreamer-app-1.0'),
+ ],
+ install : true,
++ install_dir : join_paths(get_option('libdir'), 'obs-plugins'),
+ )