#2 Retire recordmydesktop sub-package
Opened 5 years ago by ekulik. Modified 5 years ago
https://github.com/ernestask/fros.git f29  into  f29

Retire recordmydesktop sub-package
Ernestas Kulik • 5 years ago  
0007-Add-a-sanity-check-to-recordmydestkop-plugin.patch
file removed
-50
@@ -1,50 +0,0 @@

- From 915a63da5e94f85a8f0a211c73f9fafa77bc31f4 Mon Sep 17 00:00:00 2001

- From: Jakub Filak <jfilak@redhat.com>

- Date: Mon, 24 Aug 2015 15:26:03 +0200

- Subject: [PATCH] Add a sanity check to 'recordmydestkop' plugin

- 

- Related: rhbz#1228860

- 

- Signed-off-by: Jakub Filak <jfilak@redhat.com>

- ---

-  src/pyfros/plugins/screencastrecordmydesktop.py | 11 +++++++++--

-  1 file changed, 9 insertions(+), 2 deletions(-)

- 

- diff --git a/src/pyfros/plugins/screencastrecordmydesktop.py b/src/pyfros/plugins/screencastrecordmydesktop.py

- index 376b52b..63efd7d 100644

- --- a/src/pyfros/plugins/screencastrecordmydesktop.py

- +++ b/src/pyfros/plugins/screencastrecordmydesktop.py

- @@ -17,14 +17,14 @@

-  

-  from pyfros.screencastbase import ScreencastBase, ScreencastResult

-  import pyfros.plugins.const as const

- -from subprocess import Popen, PIPE

- +from subprocess import Popen, PIPE, DEVNULL

-  import fcntl

-  import os

-  import signal

-  #pylint: disable=E0611

-  from gi.repository import GLib

-  import re

- -from pyfros.froslogging import warn

- +from pyfros.froslogging import warn, error

-  

-  

-  def getScreencastPluginInstance():

- @@ -95,6 +95,13 @@ class ScreencastRecordMyDesktop(ScreencastBase):

-          print("ScreencastArea ScreencastRecordMyDesktop")

-  

-      def IsSuitable(self):

- +        try:

- +            proc = Popen(["recordmydesktop", "-h"], stdin=DEVNULL, stdout=DEVNULL, stderr=DEVNULL)

- +            proc.communicate()

- +        except Exception as ex:

- +            error("Cannot run 'recordmydesktop': %s" % (str(ex)))

- +            return const.SUITABLE_NOT_SUITABLE

- +

-          return const.SUITABLE_DEFAULT  # 1 is default

-  

-      def Screencast(self):

- -- 

- 2.5.0

- 

fros.spec
file modified
+6 -14
@@ -1,6 +1,6 @@

  Name:           fros

  Version:        1.1

- Release:        17%{?dist}

+ Release:        18%{?dist}

  Summary:        Universal screencasting frontend with pluggable support for various backends

  

  %global commit 30275a07dab7891b9f31ff115743f67d757c7c1a
@@ -20,7 +20,6 @@

  Patch0004:      0004-Switch-to-XDG_CURRENT_DESKTOP.patch

  Patch0005:      0005-Ensure-that-the-right-version-of-Gtk-gets-loaded.patch

  Patch0006:      0006-Delay-initialization-of-GNOME-Screencast-D-Bus-proxy.patch

- Patch0007:      0007-Add-a-sanity-check-to-recordmydestkop-plugin.patch

  

  BuildArch:      noarch

  
@@ -38,14 +37,6 @@

  possible while still keeping the same user interface so the user experience

  while across various desktops and screencasting programs is seamless.

  

- %package recordmydesktop

- Summary: fros plugin for screencasting using recordmydesktop as a backend

- Group: Applications/System

- Requires: %{name} = %{version}-%{release}

- 

- %description recordmydesktop

- fros plugin for screencasting using recordmydesktop as a backend

- 

  %package gnome

  Summary: fros plugin for screencasting using Gnome3 integrated screencaster

  Group: Applications/System
@@ -82,24 +73,25 @@

  %dir %{python3_sitelib}/pyfros/plugins

  %{python3_sitelib}/pyfros/plugins/__init__.*

  %{python3_sitelib}/pyfros/plugins/const.*

+ %exclude %{python3_sitelib}/pyfros/plugins/screencastrecordmydesktop.py

  %dir %{python3_sitelib}/pyfros/plugins/__pycache__

  %{python3_sitelib}/pyfros/plugins/__pycache__/__init__.cpython-%{python3_version_nodots}*.py*

  %{python3_sitelib}/pyfros/plugins/__pycache__/const.cpython-%{python3_version_nodots}*.py*

+ %exclude %{python3_sitelib}/pyfros/plugins/__pycache__/screencastrecordmydesktop.cpython-%{python3_version_nodots}*.py*

  # fros-1.0-py2.7.egg-info

  %dir %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info

  %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/*

  %{_bindir}/fros

  %{_mandir}/man1/%{name}.1*

  

- %files recordmydesktop

- %{python3_sitelib}/pyfros/plugins/*recordmydesktop.*

- %{python3_sitelib}/pyfros/plugins/__pycache__/*recordmydesktop.cpython-%{python3_version_nodots}.*py*

- 

  %files gnome

  %{python3_sitelib}/pyfros/plugins/*gnome.*

  %{python3_sitelib}/pyfros/plugins/__pycache__/*gnome.cpython-%{python3_version_nodots}.*py*

  

  %changelog

+ * Mon Nov 19 2018 Ernestas Kulik <ekulik@redhat.com> - 1.1-18

+ - Drop recordmydesktop sub-package.

+ 

  * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-17

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

  

no initial comment

recordmydesktop is no longer available since F28, so providing a frontend for it is misleading.

rebased onto b3d8d2a

5 years ago

rebased onto 5fdfc9e

5 years ago