[simplescreenrecorder] Added spec and patches.
by Vasiliy Glazov
commit 0a1dc5c082687a3ba6c0cfe328b0e12a33294251
Author: Vascom <vascom2(a)gmail.com>
Date: Mon Oct 3 13:53:21 2016 +0300
Added spec and patches.
.gitignore | 1 +
fix_ldpath.patch | 24 +++++++
simplescreenrecorder-0.3.6-fix-build.patch | 11 +++
simplescreenrecorder.spec | 106 +++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 143 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d80ffa5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/0.3.6.tar.gz
diff --git a/fix_ldpath.patch b/fix_ldpath.patch
new file mode 100644
index 0000000..f2b1757
--- /dev/null
+++ b/fix_ldpath.patch
@@ -0,0 +1,24 @@
+diff --git a/scripts/ssr-glinject b/scripts/ssr-glinject
+index 48be48d..8f8516f 100755
+--- a/scripts/ssr-glinject
++++ b/scripts/ssr-glinject
+@@ -61,4 +61,5 @@ done
+
+ echo "ssr-glinject: LD_PRELOAD = $LD_PRELOAD:libssr-glinject.so"
+ echo "ssr-glinject: command = $@"
+-LD_PRELOAD="$LD_PRELOAD:libssr-glinject.so" "$@"
++LD_LIBRARY_PATH="$LD_LIBRARY_PATH;/usr/lib/simplescreenrecorder;/usr/lib64/simplescreenrecorder" LD_PRELOAD="libssr-glinject.so $LD_PRELOAD" "$@"
++
+diff --git a/src/AV/Input/GLInjectInput.cpp b/src/AV/Input/GLInjectInput.cpp
+index d6b53c8..8f4a12d 100644
+--- a/src/AV/Input/GLInjectInput.cpp
++++ b/src/AV/Input/GLInjectInput.cpp
+@@ -96,7 +96,7 @@ void GLInjectInput::SetCapturing(bool capturing) {
+ bool GLInjectInput::LaunchApplication(const QString& channel, bool relax_permissions, const QString& command, const QString& working_directory) {
+
+ // prepare command
+- QString full_command = "LD_PRELOAD=\"libssr-glinject.so\" ";
++ QString full_command = "LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH;/usr/lib/simplescreenrecorder;/usr/lib64/simplescreenrecorder\" LD_PRELOAD=\"libssr-glinject.so\" ";
+ full_command += "SSR_CHANNEL=\"" + ShellEscape(channel) + "\" ";
+ if(relax_permissions)
+ full_command += "SSR_STREAM_RELAX_PERMISSIONS=1 ";
diff --git a/simplescreenrecorder-0.3.6-fix-build.patch b/simplescreenrecorder-0.3.6-fix-build.patch
new file mode 100644
index 0000000..9fc4225
--- /dev/null
+++ b/simplescreenrecorder-0.3.6-fix-build.patch
@@ -0,0 +1,11 @@
+diff -urN ssr-0.3.6.orig/src/Benchmark.cpp ssr-0.3.6/src/Benchmark.cpp
+--- ssr-0.3.6.orig/src/Benchmark.cpp 2016-06-15 13:21:52.155850790 +0300
++++ ssr-0.3.6/src/Benchmark.cpp 2016-06-15 13:22:32.013076775 +0300
+@@ -18,6 +18,7 @@
+ */
+
+ #include "Benchmark.h"
++#include <random>
+
+ #include "AVWrapper.h"
+ #include "CPUFeatures.h"
diff --git a/simplescreenrecorder.spec b/simplescreenrecorder.spec
new file mode 100644
index 0000000..dba4ccc
--- /dev/null
+++ b/simplescreenrecorder.spec
@@ -0,0 +1,106 @@
+%define shortname ssr
+Name: simplescreenrecorder
+Version: 0.3.6
+Release: 6%{?dist}
+Summary: SimpleScreenRecorder is a screen recorder for Linux
+
+License: GPLv3
+URL: http://www.maartenbaert.be/simplescreenrecorder/
+Source0: https://github.com/MaartenBaert/ssr/archive/%{version}.tar.gz
+Patch0: fix_ldpath.patch
+Patch1: simplescreenrecorder-0.3.6-fix-build.patch
+
+BuildRequires: desktop-file-utils
+BuildRequires: ffmpeg-devel
+BuildRequires: qt4-devel
+BuildRequires: alsa-lib-devel
+BuildRequires: pulseaudio-libs-devel
+BuildRequires: jack-audio-connection-kit-devel
+BuildRequires: libX11-devel
+BuildRequires: libXfixes-devel
+BuildRequires: mesa-libGL-devel
+BuildRequires: mesa-libGLU-devel
+
+Requires: hicolor-icon-theme
+Obsoletes: %{name}-libs
+
+%description
+SimpleScreenRecorder is a screen recorder for Linux.
+Despite the name, this program is actually quite complex.
+It's 'simple' in the sense that it's easier to use than ffmpeg/avconv or VLC
+
+%prep
+%autosetup -p1 -n %{shortname}-%{version}
+
+
+%build
+export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L libavformat libavcodec libavutil libswscale`"
+export CPPFLAGS="$CPPFLAGS `pkg-config --cflags-only-I libavformat libavcodec libavutil libswscale`"
+%configure
+%make_build
+
+
+%install
+%make_install
+
+rm -f %{buildroot}%{_libdir}/*.la
+mkdir -p %{buildroot}%{_libdir}/%{name}
+mv %{buildroot}%{_libdir}/lib%{shortname}-glinject.so %{buildroot}%{_libdir}/%{name}/lib%{shortname}-glinject.so
+
+%check
+desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%doc README.md AUTHORS.md CHANGELOG.md notes.txt todo.txt
+%license COPYING
+%{_bindir}/%{name}
+%{_datadir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}*
+%{_bindir}/%{shortname}-glinject
+%{_libdir}/%{name}
+%{_mandir}/man1/%{name}.1.*
+%{_mandir}/man1/%{shortname}-glinject.1.*
+
+%changelog
+* Wed Sep 21 2016 Vasiliy N. Glazov <vascom2(a)gmail.com> - 0.3.6-6
+- Add obsoletes
+
+* Tue Sep 20 2016 Vasiliy N. Glazov <vascom2(a)gmail.com> - 0.3.6-5
+- Remove libs subpackage
+
+* Fri Aug 26 2016 Vasiliy N. Glazov <vascom2(a)gmail.com> - 0.3.6-4
+- Clean spec
+
+* Tue Jun 14 2016 Arkady L. Shane <ashejn(a)russianfedora.pro> - 0.3.6-3.R
+- rebuilt against new ffmpeg
+
+* Sun Nov 8 2015 Ivan Epifanov <isage.dna(a)gmail.com> - 0.3.6-2.R
+- Update icon cache
+
+* Wed Nov 4 2015 Ivan Epifanov <isage.dna(a)gmail.com> - 0.3.6-1.R
+- Update to 0.3.6
+
+* Mon Mar 23 2015 Ivan Epifanov <isage.dna(a)gmail.com> - 0.3.3-1.R
+- Update to 0.3.3
+
+* Tue Dec 16 2014 Ivan Epifanov <isage.dna(a)gmail.com> - 0.3.1-1.R
+- Update to 0.3.1
+
+* Thu Jul 3 2014 Ivan Epifanov <isage.dna(a)gmail.com> - 0.3.0-2.R
+- Move gl-inject library to subdir
+
+* Thu Jul 3 2014 Ivan Epifanov <isage.dna(a)gmail.com> - 0.3.0-1.R
+- Initial spec for fedora
diff --git a/sources b/sources
index e69de29..47f886f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3c0dcf288c0cc1b21f4cd2010c73d5ae 0.3.6.tar.gz
8 years, 2 months
[cAudio-freeworld] Initial import (#4222).
by Ben Rosser
commit ec78c2e670766a52b4bc524e7ea8a1a7b4c245af
Author: Ben Rosser <rosser.bjr(a)gmail.com>
Date: Fri Sep 30 16:09:39 2016 -0400
Initial import (#4222).
.gitignore | 1 +
45.patch | 39 ++++++++++++++++++++
cAudio-freeworld.spec | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 141 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..99db653 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cAudio-2.3.1.tar.gz
diff --git a/45.patch b/45.patch
new file mode 100644
index 0000000..ac74a37
--- /dev/null
+++ b/45.patch
@@ -0,0 +1,39 @@
+From cf32f714b154b04203113eea2fd9c0741e79dcf6 Mon Sep 17 00:00:00 2001
+From: Ben Rosser <rosser.bjr(a)gmail.com>
+Date: Mon, 15 Aug 2016 19:43:28 -0400
+Subject: [PATCH] Also version the .so files of the plugins.
+
+Use the same versions as current cAudio, for now.
+---
+ Plugins/EAXLegacyPreset/CMakeLists.txt | 5 ++++-
+ Plugins/mp3Decoder/CMakeLists.txt | 5 ++++-
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/Plugins/EAXLegacyPreset/CMakeLists.txt b/Plugins/EAXLegacyPreset/CMakeLists.txt
+index 1ca4ec4..e15b259 100644
+--- a/Plugins/EAXLegacyPreset/CMakeLists.txt
++++ b/Plugins/EAXLegacyPreset/CMakeLists.txt
+@@ -25,4 +25,7 @@ if(${CAUDIO_STATIC})
+ ADD_DEFINITIONS(-DCAUDIO_STATIC_LIB)
+ endif()
+
+-install_all_targets(EAXLegacyPreset)
+\ No newline at end of file
++set_property(TARGET EAXLegacyPreset PROPERTY VERSION "2.3.0")
++set_property(TARGET EAXLegacyPreset PROPERTY SOVERSION 2 )
++
++install_all_targets(EAXLegacyPreset)
+diff --git a/Plugins/mp3Decoder/CMakeLists.txt b/Plugins/mp3Decoder/CMakeLists.txt
+index 8d16696..a621a98 100644
+--- a/Plugins/mp3Decoder/CMakeLists.txt
++++ b/Plugins/mp3Decoder/CMakeLists.txt
+@@ -25,4 +25,7 @@ if(${CAUDIO_STATIC})
+ ADD_DEFINITIONS(-DCAUDIO_STATIC_LIB)
+ endif()
+
+-install_all_targets(cAp_mp3Decoder)
+\ No newline at end of file
++set_property(TARGET cAp_mp3Decoder PROPERTY VERSION "2.3.0")
++set_property(TARGET cAp_mp3Decoder PROPERTY SOVERSION 2 )
++
++install_all_targets(cAp_mp3Decoder)
diff --git a/cAudio-freeworld.spec b/cAudio-freeworld.spec
new file mode 100644
index 0000000..81f87be
--- /dev/null
+++ b/cAudio-freeworld.spec
@@ -0,0 +1,100 @@
+# This is the upstream-preferred name of the project
+Name: cAudio-freeworld
+Version: 2.3.1
+Release: 2%{?dist}
+Summary: MP3 support for cAudio
+
+# cAudio-2.3.1/Plugins/mp3Decoder/mpaudec/{bits.c,mpaudec.c} are under LGPLv2+
+# Everything else is zlib
+License: zlib and LGPLv2+
+
+URL: https://github.com/R4stl1n/cAudio/
+Source0: https://github.com/R4stl1n/cAudio/archive/%{version}/cAudio-%{version}.ta...
+
+# Patch to version the .so names of the plugins.
+# Was submitted upstream and merged (see https://github.com/R4stl1n/cAudio/pull/45)
+Patch0: https://patch-diff.githubusercontent.com/raw/R4stl1n/cAudio/pull/45.patch
+
+# We need cmake and a compiler, obviously.
+BuildRequires: gcc-c++, cmake
+
+BuildRequires: libogg-devel, libvorbis-devel, openal-soft-devel
+
+BuildRequires: doxygen, graphviz
+
+# Package must depend on cAudio.
+Requires: cAudio%{?_isa}
+
+%description
+cAudio is a 3D audio engine based on OpenAL. This package contains
+the MP3 decoder plugin for cAudio, which is based on code from ffmpeg.
+
+%package devel
+
+Summary: Development headers for cAudio-freeworld
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+
+Development files and library headers for cAudio-freeworld.
+
+%prep
+%autosetup -p1 -n cAudio-%{version}
+
+# Remove bundled dependencies
+rm -rf Dependencies*
+
+# Set /lib manually because this software has interesting ideas about how to use cmake
+sed 's,/lib,/%{_lib},g' -i CMakeLists.txt
+sed 's,LIBRARY DESTINATION lib,LIBRARY DESTINATION %{_lib},g' -i CMake/InstallDependencies.cmake
+
+# Fix some spurious executable perm errors.
+chmod -x cAudio/Headers/cAudioStaticSource.h
+chmod -x cAudio/Headers/cOpenALUtil.h
+
+%build
+mkdir build
+cd build
+
+export CXXFLAGS="%{optflags} -Wl,--as-needed"
+
+# There is a MPEG decoder plugin that uses code derived from ffmpeg; this can't be built in Fedora.
+# There are also C# bindings. They do not compile: https://github.com/R4stl1n/cAudio/issues/42
+# The EAX legacy preset plugin builds and works fine. However, the .so is not currently versioned.
+%cmake .. -DCAUDIO_SYSTEM_OGG=TRUE -DCAUDIO_BUILD_MP3DECODER_PLUGIN=TRUE -DCAUDIO_BUILD_SAMPLES=FALSE
+# -DCAUDIO_BUILD_EAX_PLUGIN=TRUE reenable when https://github.com/R4stl1n/cAudio/pull/45 merged
+
+make %{?_smp_mflags}
+
+# We don't need to build the documentation for the RPM Fusion version.
+
+%install
+cd build
+make install DESTDIR=%{buildroot}
+
+# Remove the installed libcAudio.so*; w
+rm -rf %{buildroot}%{_libdir}/libcAudio.so*
+
+# Remove the installed header files, too.
+rm -rf %{buildroot}%{_includedir}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%{_libdir}/libcAp_mp3Decoder.so.2
+%{_libdir}/libcAp_mp3Decoder.so.2.3.0
+%license License.txt
+%doc README.md
+
+%files devel
+%{_libdir}/libcAp_mp3Decoder.so
+
+%changelog
+* Sat Sep 17 2016 Ben Rosser <rosser.bjr(a)gmail.com> 2.3.1-2
+- Update license tag to zlib and LGPLv2+
+
+* Tue Aug 16 2016 Ben Rosser <rosser.bjr(a)gmail.com> 2.3.1-1
+- Initial package of cAudio-freeworld, containing only MP3 decoder.
+- Based off of package and spec for cAudio in Fedora.
diff --git a/sources b/sources
index e69de29..c63a714 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9807dfc50f84f7c7e3487cdc5d424158 cAudio-2.3.1.tar.gz
8 years, 2 months
[obs-studio/f25: 3/3] Merge branch 'master' into f25
by Martin Gansser
commit 4e5886b02ae054563cb33a0e4d3f1beb536a0f76
Merge: 4842429 26123a8
Author: Martin Gansser <mgansser(a)alice.de>
Date: Sat Oct 1 18:38:45 2016 +0200
Merge branch 'master' into f25
.gitignore | 1 +
obs-studio.spec | 27 ++++++++++++++++++++++++---
sources | 2 +-
3 files changed, 26 insertions(+), 4 deletions(-)
---
8 years, 2 months