commit a7d1701ec359f576da85ef45e8aac6b2a29a809d
Author: Martin Gansser <mgansser(a)alice.de>
Date: Sat Aug 13 18:23:12 2016 +0200
Fix release tag (0.x release is for git releases)
.gitignore | 1 +
obs-ffmpeg-mux.patch | 15 ++++
obs-studio.spec | 202 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 219 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..fdb1e9b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/obs-studio-0.15.4.tar.gz
diff --git a/obs-ffmpeg-mux.patch b/obs-ffmpeg-mux.patch
new file mode 100644
index 0000000..9130c5f
--- /dev/null
+++ b/obs-ffmpeg-mux.patch
@@ -0,0 +1,15 @@
+--- plugins/obs-ffmpeg/obs-ffmpeg-mux.c 2016-05-01 17:56:21.000000000 -0600
++++ obs-ffmpeg-mux-1.c 2016-05-03 01:06:09.810745024 -0600
+@@ -174,8 +174,11 @@
+ aencoders[num_tracks] = aencoder;
+ num_tracks++;
+ }
+-
++#ifdef FFMPEG_MUX_FIXED
++ dstr_init_copy(cmd, FFMPEG_MUX_FIXED);
++#else
+ dstr_init_move_array(cmd, obs_module_file(FFMPEG_MUX));
++#endif
+ dstr_insert_ch(cmd, 0, '\"');
+ dstr_cat(cmd, "\" \"");
+ dstr_cat_dstr(cmd, &stream->path);
diff --git a/obs-studio.spec b/obs-studio.spec
new file mode 100644
index 0000000..daea392
--- /dev/null
+++ b/obs-studio.spec
@@ -0,0 +1,202 @@
+Name: obs-studio
+Version: 0.15.4
+Release: 1%{?dist}
+Summary: Open Broadcaster Software Studio
+
+License: GPLv2+
+URL:
https://obsproject.com/
+Source0:
https://github.com/jp9000/obs-studio/archive/%{version}.tar.gz#/%{name}-%...
+Patch0: obs-ffmpeg-mux.patch
+
+BuildRequires: gcc-objc
+BuildRequires: cmake
+BuildRequires: libX11-devel
+BuildRequires: mesa-libGL-devel
+BuildRequires: ffmpeg-devel
+BuildRequires: libv4l-devel
+BuildRequires: pulseaudio-libs-devel
+BuildRequires: x264-devel
+BuildRequires: freetype-devel
+BuildRequires: fontconfig-devel
+BuildRequires: libXcomposite-devel
+BuildRequires: libXinerama-devel
+BuildRequires: qt5-qtbase-devel
+BuildRequires: qt5-qtx11extras-devel
+BuildRequires: jansson-devel
+BuildRequires: jack-audio-connection-kit-devel
+BuildRequires: libcurl-devel
+BuildRequires: desktop-file-utils
+BuildRequires: vlc-devel
+BuildRequires: alsa-lib-devel
+BuildRequires: systemd-devel
+Requires: ffmpeg x264
+
+%description
+Open Broadcaster Software is free and open source
+software for video recording and live streaming.
+
+%package libs
+Summary: Open Broadcaster Software Studio libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description libs
+Library files for Open Broadcaster Software
+
+%package devel
+Summary: Open Broadcaster Software Studio header files
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Header files for Open Broadcaster Software
+
+
+%prep
+%setup -q
+%patch0 -p0
+
+# rpmlint reports E: hardcoded-library-path
+# replace OBS_MULTIARCH_SUFFIX by LIB_SUFFIX
+sed -i 's|OBS_MULTIARCH_SUFFIX|LIB_SUFFIX|g' cmake/Modules/ObsHelpers.cmake
+
+%build
+export
CPPFLAGS=-DFFMPEG_MUX_FIXED=\"%{_libexecdir}/obs-plugins/obs-ffmpeg/ffmpeg-mux\"
+%cmake -DOBS_VERSION_OVERRIDE=%{version} -DUNIX_STRUCTURE=1
+%make_build
+
+%install
+%make_install
+
+mkdir -p %{buildroot}/%{_libexecdir}/obs-plugins/obs-ffmpeg/
+mv -f %{buildroot}/%{_datadir}/obs/obs-plugins/obs-ffmpeg/ffmpeg-mux \
+ %{buildroot}/%{_libexecdir}/obs-plugins/obs-ffmpeg/ffmpeg-mux
+
+%check
+/usr/bin/desktop-file-validate %{buildroot}/%{_datadir}/applications/obs.desktop
+
+%post libs -p /sbin/ldconfig
+
+%post
+/usr/bin/update-desktop-database >&/dev/null || :
+/usr/bin/touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
+
+%postun
+/usr/bin/update-desktop-database >&/dev/null || :
+if [ $1 -eq 0 ]; then
+ /usr/bin/touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
+fi
+
+%postun libs -p /sbin/ldconfig
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
+
+%files
+%doc README
+%license obs/data/license/gplv2.txt
+%license COPYING
+%{_bindir}/obs
+%{_datadir}/applications/obs.desktop
+%{_datadir}/icons/hicolor/256x256/apps/obs.png
+%{_datadir}/obs/
+%{_libexecdir}/obs-plugins/
+
+%files libs
+%{_libdir}/obs-plugins/
+%{_libdir}/*.so.*
+
+%files devel
+%{_libdir}/cmake/LibObs/
+%{_libdir}/*.so
+%{_includedir}/obs/
+
+
+%changelog
+* Fri Aug 12 2016 Leigh Scott <leigh123linux(a)googlemail.com> - 0.15.4-1
+- Fix release tag (0.x release is for git releases)
+
+* Mon Aug 08 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.15.4-0.1
+- Updated to 0.15.4
+
+* Fri Aug 05 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.15.2-0.5
+- Added alsa-devel as BR for ALSA plugin.
+- Added vlc-devel as BR for VLC plugin.
+- Added systemd-devel as BR for Udev V4L.
+
+* Wed Aug 03 2016 Leigh Scott <leigh123linux(a)googlemail.com> - 0.15.2-0.4
+- Fix source tag (spectool now downloads in n-v format)
+- Remove surplus ldconfig from postun (no public .so files in main package)
+- Update scriptlets to meet guidelines (need full path)
+
+* Wed Jul 20 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.15.2-0.3
+- Added license file gplv2.txt
+
+* Mon Jul 18 2016 Martin Gansser <martinkg(a)fedoraproject.org> - 0.15.2-0.2
+- Fixed arch-dependent-file-in-usr-share
+- Added obs-ffmpeg-mux.patch
+- Added libs subpkg
+- Call ldconfig in post(un) scripts for the shared library
+
+* Sat Jul 16 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.15.2-0.1
+- Updated to 0.15.2
+
+* Sun Jul 10 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.15.1-0.1
+- Updated to 0.15.1
+
+* Sat Jul 09 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.15.0-0.1
+- Updated to 0.15.0
+
+* Mon May 16 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.14.2-0.1
+- Updated to 0.14.2
+
+* Mon Apr 25 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.14.1-0.1
+- Updated to 0.14.1
+
+* Sun Apr 24 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.14.0-0.1
+- Updated to 0.14.0
+
+* Tue Mar 22 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.13.4-0.1
+- Updated to 0.13.4
+
+* Sun Mar 20 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.13.3-0.1
+- Updated to 0.13.3
+
+* Tue Feb 23 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.13.2-0.1
+- Updated to 0.13.2
+
+* Sat Feb 06 2016 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.13.1-0.1
+- Updated to 0.13.1
+
+* Sun Dec 20 2015 Martin Gansser <martinkg(a)fedoraproject.org> - 0.12.4-0.2
+- replace OBS_MULTIARCH_SUFFIX by LIB_SUFFIX
+
+* Sat Dec 12 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.12.4-0.1
+- Updated to 0.12.4
+
+* Sat Dec 05 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.12.3-0.1
+- Updated to 0.12.3
+
+* Sat Nov 21 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.12.2-0.1
+- Updated to 0.12.2
+
+* Thu Nov 19 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.12.1-0.1
+- Updated to 0.12.1
+
+* Thu Sep 24 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.12.0-0.1
+- Updated to 0.12.0
+
+* Mon Aug 17 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.11.4-0.1
+- Added OBS_VERSION_OVERRIDE to correct version in compilation
+- Updated to 0.11.4
+
+* Sat Aug 08 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.11.3-0.1
+- Updated to 0.11.3
+
+* Thu Jul 30 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.11.2-0.1
+- Updated to 0.11.2
+
+* Fri Jul 10 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.11.1-0.1
+- Updated to 0.11.1
+
+* Wed May 27 2015 Momcilo Medic <fedorauser(a)fedoraproject.org> - 0.10.1-0.1
+- Initial .spec file
diff --git a/sources b/sources
index e69de29..e4c85b3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+380f195e3073eed4a9909a7f8b7babcf obs-studio-0.15.4.tar.gz