commit youtube-dl-gui for openSUSE:Factory

2017-07-25 Thread root
Hello community,

here is the log from the commit of package youtube-dl-gui for openSUSE:Factory 
checked in at 2017-07-25 11:39:33

Comparing /work/SRC/openSUSE:Factory/youtube-dl-gui (Old)
 and  /work/SRC/openSUSE:Factory/.youtube-dl-gui.new (New)


Package is "youtube-dl-gui"

Tue Jul 25 11:39:33 2017 rev:3 rq:511863 version:0.4

Changes:

--- /work/SRC/openSUSE:Factory/youtube-dl-gui/youtube-dl-gui.changes
2017-04-20 20:56:37.499814861 +0200
+++ /work/SRC/openSUSE:Factory/.youtube-dl-gui.new/youtube-dl-gui.changes   
2017-07-25 11:39:33.571430912 +0200
@@ -1,0 +2,41 @@
+Fri Jul 21 11:28:11 UTC 2017 - aloi...@gmx.com
+
+- Update to version 0.4
+  New UI (designed by @philipzae):
+  * Better design overall
+  * Easier format selection
+  * Easier save path selection
+  * Added new functionality (play, delete, move item in queue,
+reload, pause, etc..)
+  * New options window (5 tabs instead of 13)
+  * Removed some of the old options (write description to file,
+custom format selection, etc..)
+  * Added new options (-v, --ignore-config, --hls-prefer-native,
+--no-mtime, etc..)
+  * Support for new output templates
+  * Added generic video formats (3gp, mp4, webm, etc..)
+  * Added Korean translation by @memnoth
+  * Removed outdated translations
+  Post Processing:
+  * Calculate final size of post process files
+  * Extract final extension after merging process [ffmpeg]
+  * Extract final extension after recoding process [ffmpeg]
+  Setup:
+  * Update setup.py
+  * Build .MO files during build phase
+  * Removed unused OSX code from setup.py
+  Other:
+  * Removed twodict from utils.py and made it a dep
+  * Resolved issues (#54, #151, #162, #173, etc..)
+  * Moved utility scripts & docs to new directories
+  * Added new dev scripts
+  * New ISSUE_TEMPLATE.md
+  * Updated README.md
+  * Added FAQs
+  * Small fixes
+
+- Refreshed youtube-dl-gui-use_system_exe.patch
+
+- Force python2 everywhere
+
+---

Old:

  youtube-dl-gui-0.3.8.tar.gz

New:

  youtube-dl-gui-0.4.tar.gz



Other differences:
--
++ youtube-dl-gui.spec ++
--- /var/tmp/diff_new_pack.YotJWo/_old  2017-07-25 11:39:34.079359182 +0200
+++ /var/tmp/diff_new_pack.YotJWo/_new  2017-07-25 11:39:34.083358617 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   youtube-dl-gui
-Version:0.3.8
+Version:0.4
 Release:0
 Summary:GUI for youtube-dl
 # The Unlicense
@@ -29,10 +29,13 @@
 Patch0: %{name}-use_system_exe.patch
 BuildRequires:  fdupes
 BuildRequires:  hicolor-icon-theme
-BuildRequires:  python-devel
+BuildRequires:  python-rpm-macros
 BuildRequires:  python-wxWidgets-3_0-devel
+BuildRequires:  python2-devel
+BuildRequires:  python2-twodict
 BuildRequires:  update-desktop-files
 Requires:   python-wxWidgets-3_0
+Requires:   python2-twodict
 Requires:   youtube-dl
 Recommends: ffmpeg
 Enhances:   youtube-dl
@@ -48,18 +51,22 @@
 %setup -q
 %patch0 -p1
 sed -e 's|__BINDIR__|%{_bindir}|' -i youtube_dl_gui/optionsmanager.py
-for i in 
{'optionsmanager','mainframe','__init__','logmanager','utils','downloadmanager','__main__','updatemanager','parsers','optionsframe','downloaders'};
 do
-sed -i -e "1d" "youtube_dl_gui/$i.py"
+items=(
+   'downloaders' 'downloadmanager' '__init__' 'logmanager'
+   'mainframe' '__main__' 'optionsframe' 'optionsmanager'
+   'parsers' 'updatemanager' 'utils' 'widgets'
+  )
+for i in "${items[@]}"; do
+sed -i -e "1d" "youtube_dl_gui/$i.py"
 done
 
 %build
-python setup.py build
+%__python2 setup.py build
 
 %install
-python setup.py install --root %{buildroot}
+%__python2 setup.py install --root %{buildroot}
 %find_lang youtube_dl_gui
-sed -e '1i \#!/usr/bin/env python' -i %{buildroot}%{_bindir}/%{name}
-mv %{buildroot}%{_datadir}/pixmaps/%{name}_48x48.png 
%{buildroot}%{_datadir}/pixmaps/%{name}.png
+sed -e '1i \#!%__python2' -i %{buildroot}%{_bindir}/%{name}
 %suse_update_desktop_file -c youtube-dl-gui youtube-dl-gui "Video downloader" 
youtube-dl-gui youtube-dl-gui "AudioVideo Recorder Network FileTransfer"
 
 %fdupes -s %{buildroot}
@@ -69,17 +76,17 @@
 %doc LICENSE README.md
 %{_bindir}/%{name}
 %{_datadir}/applications/%{name}.desktop
-%{_datadir}/icons/hicolor/*/apps/%{name}_*.png
-%{_datadir}/pixmaps/%{name}*.png
-%{python_sitelib}/youtube_dl_gui
-%{python_sitelib}/Youtube_DLG-%{version}-py%{python_version}.egg-info
+%{_datadir}/icons/hicolor/*/apps/%{name}.png
+%{_datadir}/pixmaps/%{name}.png
+%exclude %{python2_sitelib}/youtube_dl_gui/locale
+%{python2_sitelib}/youtube_dl_gui
+%{python2_sitelib}/Youtube_DLG-%{version}-py%{python2_version}.egg-info
 
 %files lang -f youtube_dl_gui.lang
 

commit youtube-dl-gui for openSUSE:Factory

2017-04-20 Thread root
Hello community,

here is the log from the commit of package youtube-dl-gui for openSUSE:Factory 
checked in at 2017-04-20 20:56:35

Comparing /work/SRC/openSUSE:Factory/youtube-dl-gui (Old)
 and  /work/SRC/openSUSE:Factory/.youtube-dl-gui.new (New)


Package is "youtube-dl-gui"

Thu Apr 20 20:56:35 2017 rev:2 rq:487987 version:0.3.8

Changes:

--- /work/SRC/openSUSE:Factory/youtube-dl-gui/youtube-dl-gui.changes
2017-04-12 18:25:49.692404917 +0200
+++ /work/SRC/openSUSE:Factory/.youtube-dl-gui.new/youtube-dl-gui.changes   
2017-04-20 20:56:37.499814861 +0200
@@ -1,0 +2,10 @@
+Fri Apr 14 15:33:26 UTC 2017 - mplus...@suse.com
+
+- Replace supplements with enhances to avoid unwanted installation
+
+---
+Thu Apr 13 18:09:27 UTC 2017 - aloi...@gmx.com
+
+- Added youtube-dl-gui-use_system_exe.patch 
+
+---

New:

  youtube-dl-gui-use_system_exe.patch



Other differences:
--
++ youtube-dl-gui.spec ++
--- /var/tmp/diff_new_pack.S8NlPA/_old  2017-04-20 20:56:38.595659891 +0200
+++ /var/tmp/diff_new_pack.S8NlPA/_new  2017-04-20 20:56:38.595659891 +0200
@@ -25,14 +25,17 @@
 Group:  Productivity/Networking/Web/Utilities
 Url:https://github.com/MrS0m30n3/youtube-dl-gui
 Source0:
https://github.com/MrS0m30n3/youtube-dl-gui/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE youtube-dl-gui-use_system_exe.patch
+Patch0: %{name}-use_system_exe.patch
 BuildRequires:  fdupes
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  python-devel
 BuildRequires:  python-wxWidgets-3_0-devel
 BuildRequires:  update-desktop-files
 Requires:   python-wxWidgets-3_0
+Requires:   youtube-dl
 Recommends: ffmpeg
-Supplements:youtube-dl
+Enhances:   youtube-dl
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 
@@ -43,6 +46,8 @@
 
 %prep
 %setup -q
+%patch0 -p1
+sed -e 's|__BINDIR__|%{_bindir}|' -i youtube_dl_gui/optionsmanager.py
 for i in 
{'optionsmanager','mainframe','__init__','logmanager','utils','downloadmanager','__main__','updatemanager','parsers','optionsframe','downloaders'};
 do
 sed -i -e "1d" "youtube_dl_gui/$i.py"
 done

++ youtube-dl-gui-use_system_exe.patch ++
From: Luigi Baldoni 
Date: 2017-04-13 18:07:44 +0200
Subject: Disable update button and force exe path

Update button is ghosted so that we don't end up with
locally installed versions of youtube-dl and rely on
the system one instead.

Also the path for youtube-dl is hardcoded so that it
can point to the system-installed executable.


Index: youtube-dl-gui-0.3.8/youtube_dl_gui/mainframe.py
===
--- youtube-dl-gui-0.3.8.orig/youtube_dl_gui/mainframe.py
+++ youtube-dl-gui-0.3.8/youtube_dl_gui/mainframe.py
@@ -149,6 +149,7 @@ class MainFrame(wx.Frame):
 
 self._download_btn = self._create_button(self.DOWNLOAD_LABEL, 
self._on_download)
 self._update_btn = self._create_button(self.UPDATE_LABEL, 
self._on_update)
+self._update_btn.Disable()
 self._options_btn = self._create_button(self.OPTIONS_LABEL, 
self._on_options)
 
 self._status_list = ListCtrl(self.STATUSLIST_COLUMNS,
@@ -276,7 +277,6 @@ class MainFrame(wx.Frame):
 """Resets GUI widgets after update or download process. """
 self._download_btn.SetLabel(self.DOWNLOAD_LABEL)
 self._download_btn.Enable()
-self._update_btn.Enable()
 
 def _print_stats(self):
 """Display download stats in the status bar. """
Index: youtube-dl-gui-0.3.8/youtube_dl_gui/optionsmanager.py
===
--- youtube-dl-gui-0.3.8.orig/youtube_dl_gui/optionsmanager.py
+++ youtube-dl-gui-0.3.8/youtube_dl_gui/optionsmanager.py
@@ -234,7 +234,7 @@ class OptionsManager(object):
 'username': '',
 'password': '',
 'video_password': '',
-'youtubedl_path': self.config_path,
+'youtubedl_path': '__BINDIR__',
 'cmd_args': '',
 'enable_log': True,
 'log_time': False,