commit fe2dcf01b1a10f04584ee003dc3bae5127921785
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sat Apr 15 04:33:33 2017 +0100
Update to 1.0.53.758
check_new_version.py | 58 +++++++++++++++++++++++++++++++++++++++++++++++++
lpf-spotify-client.spec | 7 ++++--
spotify-client.spec.in | 11 ++++++----
3 files changed, 70 insertions(+), 6 deletions(-)
---
diff --git a/check_new_version.py b/check_new_version.py
new file mode 100755
index 0000000..34058ad
--- /dev/null
+++ b/check_new_version.py
@@ -0,0 +1,58 @@
+#!/usr/bin/python3
+
+""" Warning not complete """
+
+import requests
+import re
+import os
+import subprocess
+requests.get('http://repository.spotify.com/pool/non-free/s/spotify-client/')
+a =
requests.get('http://repository.spotify.com/pool/non-free/s/spotify-c...
+#print (a.text)
+
+str_mx = re.compile('href="(spotify-client.*?i386.deb)"')
+str_mx2 = re.compile('href="(spotify-client.*?amd64.deb)"')
+res = str_mx.findall(a.text)
+res2 = str_mx2.findall(a.text)
+deb32 = res[-1]
+deb64 = res2[-1]
+print (deb32,deb64)
+res2 = str_mx.findall(a.text)
+
+regexp = re.compile('spotify-client_(\d{1,2}[.]\d{1,2}[.]\d{1,3})([.].*)')
+(version32, minor32) = regexp.findall(deb32)[0]
+(version64, minor64) = regexp.findall(deb64)[0]
+print (version32, minor32, version64, minor64)
+
+spec = open('spotify-client.spec.in').read()
+#print (spec)
+#str_mx3 = re.compile('(Version:\s*) .*')
+#spec2 = re.sub(str_mx3, r'\1 %s' % version64, spec)
+str_mx4 = re.compile('(Source1:.*?)[.].*')
+spec3 = re.sub(str_mx4, r'\1%s' % minor64, spec)
+str_mx5 = re.compile('(Source2:.*?)[.].*')
+spec4 = re.sub(str_mx5, r'\1%s' % minor32, spec3)
+
+open('spotify-client.spec.in', 'w').write(spec4)
+
+def runme(cmd, env, cwd='.'):
+ """Simple function to run a command and return 0 for success, 1 for
+ failure. cmd is a list of the command and arguments, action is a
+ name for the action (for logging), pkg is the name of the package
+ being operated on, env is the environment dict, and cwd is where
+ the script should be executed from."""
+ try:
+ subprocess.check_call(cmd, env=env, cwd=cwd)
+ except subprocess.CalledProcessError as e:
+ sys.stderr.write('%s failed: %s\n' % (cmd, e))
+ return 1
+ return 0
+
+enviro = os.environ
+pkgcmd = ['rpmdev-bumpspec', '-n', version64, '-c', 'Update
to %s%s' % (version64, minor64[:4]), 'spotify-client.spec.in']
+if runme(pkgcmd, enviro):
+ print('error running runme')
+pkgcmd = ['rpmdev-bumpspec', '-n', version64, '-c', 'Update
to %s%s' % (version64, minor64[:4]), 'lpf-spotify-client.spec']
+if runme(pkgcmd, enviro):
+ print('error running runme')
+
diff --git a/lpf-spotify-client.spec b/lpf-spotify-client.spec
index f254eea..21f43ba 100644
--- a/lpf-spotify-client.spec
+++ b/lpf-spotify-client.spec
@@ -11,8 +11,8 @@
Name: lpf-spotify-client
# Upstream spotify version, verbatim.
-Version: 1.0.49
-Release: 3%{?dist}
+Version: 1.0.53
+Release: 1%{?dist}
Summary: Spotify music player native client package bootstrap
License: MIT
@@ -76,6 +76,9 @@ desktop-file-validate
%{buildroot}%{_datadir}/applications/%{name}.desktop
%changelog
+* Sat Apr 15 2017 Sérgio Basto <sergio(a)serjux.com> - 1.0.53-1
+- Update to 1.0.53.758
+
* Sun Mar 26 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> -
1.0.49-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
diff --git a/spotify-client.spec.in b/spotify-client.spec.in
index 9320dab..00d3a9e 100644
--- a/spotify-client.spec.in
+++ b/spotify-client.spec.in
@@ -11,8 +11,8 @@
Name: spotify-client
-Version: 1.0.49
-Release: 3%{?dist}
+Version: 1.0.53
+Release: 1%{?dist}
Summary: Spotify music player native client
#
board=http://community.spotify.com/t5/Desktop-Linux
@@ -23,8 +23,8 @@ Group: Applications/Multimedia
ExclusiveArch: i386 i686 x86_64
Source0: spotify-make-%{shortcommit}.tar.gz
-Source1: %{repo}/spotify-client_%{version}.125.g72ee7853-111_amd64.deb
-Source2: %{repo}/spotify-client_%{version}.125.g72ee7853-22_i386.deb
+Source1: %{repo}/spotify-client_%{version}.758.gde3fc4b2-33_amd64.deb
+Source2: %{repo}/spotify-client_%{version}.758.gde3fc4b2-34_i386.deb
%ifarch x86_64
%global spotify_pkg %{SOURCE1}
@@ -116,6 +116,9 @@ fi
%changelog
+* Sat Apr 15 2017 Sérgio Basto <sergio(a)serjux.com> - 1.0.53-1
+- Update to 1.0.53.758
+
* Sun Mar 26 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> -
1.0.49-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild