commit 59eed1828a6d601484dcf606cdd21ac27b962819
Author: Elan Ruusamäe <g...@pld-linux.org>
Date:   Sun Feb 4 13:13:55 2018 +0200

    up to 2.0.19 snap (2cb0ffbb), qt5 based

 always-en.patch    | 16 ++++++++--------
 subdownloader.spec | 24 +++++++++++++++---------
 2 files changed, 23 insertions(+), 17 deletions(-)
---
diff --git a/subdownloader.spec b/subdownloader.spec
index 4ff7434..b16e5b0 100644
--- a/subdownloader.spec
+++ b/subdownloader.spec
@@ -1,12 +1,14 @@
+%global commit 2cb0ffbb
 Summary:       Fast and Easy Subtitle Downloader
 Summary(pl.UTF-8):     Narzędzie do automatycznego ściągania/wysyłania 
podpisów do plików wideo
 Name:          subdownloader
-Version:       2.0.18
-Release:       2
+Version:       2.0.19
+Release:       0.1
 License:       GPL v3
 Group:         X11/Applications/Multimedia
-Source0:       
https://launchpad.net/subdownloader/trunk/%{version}/+download/%{name}_%{version}.orig.tar.gz
-# Source0-md5: 11dbc455f542b68e96e2cc539deb3f8f
+#Source0:      
https://launchpad.net/subdownloader/trunk/%{version}/+download/%{name}_%{version}.orig.tar.gz
+Source0:       
https://github.com/subdownloader/subdownloader/archive/%{commit}/%{name}-%{version}-%{commit}.tar.gz
+# Source0-md5: 866b4ab1a2ed1c4670e29c7abdbae6b3
 Source1:       %{name}.desktop
 Source2:       %{name}.png
 # Source2-md5: de3d0cfa08b1572878cde6e3800205fa
@@ -15,10 +17,13 @@ Source3:    %{name}.sh
 #Source:       http://starowa.one.pl/~uzi/pld/%{name}-locale-pl.tar.gz
 Patch0:                always-en.patch
 URL:           http://www.subdownloader.net/
+BuildRequires: python-PyQt5
+BuildRequires: python-PyQt5-devel-tools
+BuildRequires: python-PyQt5-uic
 BuildRequires: rpm-pythonprov
 Requires:      desktop-file-utils
 Requires:      python >= 1:2.5
-Requires:      python-PyQt4
+Requires:      python-PyQt5
 Requires:      python-mmpython
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -51,7 +56,8 @@ Cechy:
 - i wiele więcej
 
 %prep
-%setup -q
+%setup -qc
+mv subdownloader-%{commit}*/* .
 %patch0 -p1
 
 #tar xzf %{SOURCE3}
@@ -77,7 +83,7 @@ cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 
 %{__rm} $RPM_BUILD_ROOT%{_appdir}/gui/Makefile
-%{__rm} $RPM_BUILD_ROOT%{_appdir}/gui/Qt2Po.py
+#%{__rm} $RPM_BUILD_ROOT%{_appdir}/gui/Qt2Po.py
 # images bundled into images_rc.py
 %{__rm} -r $RPM_BUILD_ROOT%{_appdir}/gui/images
 %{__rm} -r $RPM_BUILD_ROOT%{_appdir}/gui/images.qrc
@@ -108,7 +114,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc ChangeLog README
+%doc ChangeLog README.md
 %attr(755,root,root) %{_bindir}/%{name}
 %{_mandir}/man1/*.1*
 %{_desktopdir}/%{name}.desktop
@@ -129,7 +135,7 @@ rm -rf $RPM_BUILD_ROOT
 # be sure to list them, otherwise we end up broken package again
 %{_appdir}/gui/about_ui.py[co]
 %{_appdir}/gui/chooseLanguage_ui.py[co]
-%{_appdir}/gui/expiration_ui.py[co]
+#%{_appdir}/gui/expiration_ui.py[co]
 %{_appdir}/gui/images_rc.py[co]
 %{_appdir}/gui/imdb_ui.py[co]
 %{_appdir}/gui/login_ui.py[co]
diff --git a/always-en.patch b/always-en.patch
index 6365c97..697cba4 100644
--- a/always-en.patch
+++ b/always-en.patch
@@ -1,11 +1,11 @@
---- subdownloader-2.0.14/gui/main.py~  2010-09-14 01:03:05.000000000 +0300
-+++ subdownloader-2.0.14/gui/main.py   2011-12-18 18:21:12.094644283 +0200
-@@ -309,6 +309,8 @@
-                 if 'subdownloader.mo' in files:
-                         self.interface_langs.append(_lang)
+--- subdownloader-2.0.19/gui/main.py~  2017-02-13 20:10:12.000000000 +0200
++++ subdownloader-2.0.19/gui/main.py   2018-02-04 13:09:27.174853433 +0200
+@@ -371,6 +371,8 @@
+             if 'subdownloader.mo' in files:
+                 self.interface_langs.append(_lang)
  
-+        #Always add english
++        # Always add english
 +        self.interface_langs.append('en')
-         log.debug('Found these translations languages: %r' % 
self.interface_langs)
+         log.debug('Found these translations languages: %r' %
+                   self.interface_langs)
  
-         #Check the system default locale
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/subdownloader.git/commitdiff/59eed1828a6d601484dcf606cdd21ac27b962819

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to