[packages/simplescreenrecorder] - update to git snap

baggins baggins at pld-linux.org
Sun Oct 25 22:09:11 CET 2026


commit a6bfa668876d70ecc92dd9b6b6e2003e515d3111
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Oct 25 22:08:49 2026 +0100

    - update to git snap

 ffmpeg6.patch             | 63 -----------------------------------------------
 simplescreenrecorder.spec | 18 ++++++++------
 2 files changed, 10 insertions(+), 71 deletions(-)
---
diff --git a/simplescreenrecorder.spec b/simplescreenrecorder.spec
index 6ba95a9..e9a0024 100644
--- a/simplescreenrecorder.spec
+++ b/simplescreenrecorder.spec
@@ -2,17 +2,20 @@
 %define		with_gl		1
 %endif
 
+%define		gitref	e73e07664121ac30836872bca76194c6570e04c8
+%define		snap	20261025
+%define		rel	1
+
 %define		qtver	5.7
 Summary:	Screen recorder for Linux
 Summary(pl.UTF-8):	Nagrywarka ekranu dla Linuksa
 Name:		simplescreenrecorder
 Version:	0.4.4
-Release:	2
+Release:	2.%{snap}.%{rel}
 License:	GPL v3
 Group:		Applications
-Source0:	https://github.com/MaartenBaert/ssr/archive/%{version}/ssr-%{version}.tar.gz
-# Source0-md5:	6360ff633bcb88b0c221d56fd52b7dac
-Patch0:		ffmpeg6.patch
+Source0:	https://github.com/MaartenBaert/ssr/archive/%{gitref}/ssr-%{snap}.tar.gz
+# Source0-md5:	a9e889271270853176c014abfcf85a0a
 URL:		http://www.maartenbaert.be/simplescreenrecorder/
 BuildRequires:	Mesa-libGL-devel
 BuildRequires:	Mesa-libGLU-devel
@@ -57,8 +60,7 @@ A wrapper library and a script to inject screen recording calls into
 OpenGL applications, for use with the SimpleScreenRecorder.
 
 %prep
-%setup -q -n ssr-%{version}
-%patch -P0 -p1
+%setup -q -n ssr-%{gitref}
 
 %build
 %cmake \
@@ -92,8 +94,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/simplescreenrecorder.1*
 %{_iconsdir}/*/*/apps/simplescreenrecorder*.png
 %{_iconsdir}/hicolor/scalable/apps/simplescreenrecorder*.svg
-%{_desktopdir}/simplescreenrecorder.desktop
-%{_datadir}/metainfo/simplescreenrecorder.metainfo.xml
+%{_desktopdir}/be.maartenbaert.simplescreenrecorder.desktop
+%{_datadir}/metainfo/be.maartenbaert.simplescreenrecorder.metainfo.xml
 
 %if %{with gl}
 %files glinject
diff --git a/ffmpeg6.patch b/ffmpeg6.patch
deleted file mode 100644
index 654232a..0000000
--- a/ffmpeg6.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 768957a8de1534f0aa91bfc5d7af3c32f222beb8 Mon Sep 17 00:00:00 2001
-From: Maarten Baert <maarten-baert at hotmail.com>
-Date: Sun, 20 Mar 2022 22:52:43 +0100
-Subject: [PATCH] Fix for compatibility with newer FFmpeg versions
-
----
- src/AV/Output/AudioEncoder.cpp | 3 ++-
- src/AV/Output/Muxer.cpp        | 6 ++++--
- src/AV/Output/VideoEncoder.cpp | 3 ++-
- 3 files changed, 8 insertions(+), 4 deletions(-)
-
-diff --git a/src/AV/Output/AudioEncoder.cpp b/src/AV/Output/AudioEncoder.cpp
-index 34d015cf..3efde703 100644
---- a/src/AV/Output/AudioEncoder.cpp
-+++ b/src/AV/Output/AudioEncoder.cpp
-@@ -77,7 +77,8 @@ unsigned int AudioEncoder::GetSampleRate() {
- }
- 
- bool AudioEncoder::AVCodecIsSupported(const QString& codec_name) {
--	AVCodec *codec = avcodec_find_encoder_by_name(codec_name.toUtf8().constData());
-+	// we have to break const correctness for compatibility with older ffmpeg versions
-+	AVCodec *codec = (AVCodec*) avcodec_find_encoder_by_name(codec_name.toUtf8().constData());
- 	if(codec == NULL)
- 		return false;
- 	if(!av_codec_is_encoder(codec))
-diff --git a/src/AV/Output/Muxer.cpp b/src/AV/Output/Muxer.cpp
-index ad583803..bc6dd71c 100644
---- a/src/AV/Output/Muxer.cpp
-+++ b/src/AV/Output/Muxer.cpp
-@@ -194,7 +194,8 @@ unsigned int Muxer::GetQueuedPacketCount(unsigned int stream_index) {
- void Muxer::Init() {
- 
- 	// get the format we want (this is just a pointer, we don't have to free this)
--	AVOutputFormat *format = av_guess_format(m_container_name.toUtf8().constData(), NULL, NULL);
-+	// we have to break const correctness for compatibility with older ffmpeg versions
-+	AVOutputFormat *format = (AVOutputFormat*) av_guess_format(m_container_name.toUtf8().constData(), NULL, NULL);
- 	if(format == NULL) {
- 		Logger::LogError("[Muxer::Init] " + Logger::tr("Error: Can't find chosen output format!"));
- 		throw LibavException();
-@@ -262,7 +263,8 @@ void Muxer::Free() {
- }
- 
- AVCodec* Muxer::FindCodec(const QString& codec_name) {
--	AVCodec *codec = avcodec_find_encoder_by_name(codec_name.toUtf8().constData());
-+	// we have to break const correctness for compatibility with older ffmpeg versions
-+	AVCodec *codec = (AVCodec*) avcodec_find_encoder_by_name(codec_name.toUtf8().constData());
- 	if(codec == NULL) {
- 		Logger::LogError("[Muxer::FindCodec] " + Logger::tr("Error: Can't find codec!"));
- 		throw LibavException();
-diff --git a/src/AV/Output/VideoEncoder.cpp b/src/AV/Output/VideoEncoder.cpp
-index 8087e8ed..d09d7047 100644
---- a/src/AV/Output/VideoEncoder.cpp
-+++ b/src/AV/Output/VideoEncoder.cpp
-@@ -95,7 +95,8 @@ unsigned int VideoEncoder::GetFrameRate() {
- }
- 
- bool VideoEncoder::AVCodecIsSupported(const QString& codec_name) {
--	AVCodec *codec = avcodec_find_encoder_by_name(codec_name.toUtf8().constData());
-+	// we have to break const correctness for compatibility with older ffmpeg versions
-+	AVCodec *codec = (AVCodec*) avcodec_find_encoder_by_name(codec_name.toUtf8().constData());
- 	if(codec == NULL)
- 		return false;
- 	if(!av_codec_is_encoder(codec))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/simplescreenrecorder.git/commitdiff/a6bfa668876d70ecc92dd9b6b6e2003e515d3111



More information about the pld-cvs-commit mailing list