Accepting request 701780 from home:GeoDerp:redflower

- Changed source files to support python 3
- fix for Fedora 30/Rawhide

OBS-URL: https://build.opensuse.org/request/show/701780
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-set_version?expand=0&rev=95
This commit is contained in:
Lars Vogdt 2019-05-12 12:52:23 +00:00 committed by Git OBS Bridge
parent 661859ef3f
commit 36175b0308
3 changed files with 24 additions and 6 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2dab442bcbf66b3447072dacb161d94a82a5ebf0ea5aa927829dab5b1543154d
size 15332
oid sha256:53b58e449ac91b66763cfde526003164ca81da3b0a7daff930e30a6c55e2e7f9
size 14827

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu May 9 10:33:23 UTC 2019 - John Whately <john+OpenSuse@whately.me>
- Changed source files to support python 3
-------------------------------------------------------------------
Sat May 4 05:25:59 UTC 2019 - John Whately <john+OpenSuse@whately.me>
- fix for Fedora 30/Rawhide
-------------------------------------------------------------------
Mon Nov 26 18:04:26 CET 2018 - ro@suse.de

View File

@ -40,7 +40,7 @@ BuildRequires: python3-flake8
Recommends: python3-packaging
Requires: python3-base
%else
Recommends: python-packaging
Recommends: python3-packaging
%endif
%endif
Requires: sed
@ -57,9 +57,17 @@ a given version or to the existing files.
%setup -q
%build
%if 0%{?suse_version} > 1315
sed -i -e "1 s,#!/usr/bin/python$,#!/usr/bin/python3," set_version
%endif
#%if 0%{?suse_version} > 1315
#sed -i -e "1 s,#!/usr/bin/python$,#!/usr/bin/python3," set_version
#%endif
#%if 0%{?is_Fedora_Rawhide}
#sed -i -e "1 s,#!/usr/bin/python$,#!/usr/bin/python3," set_version
#%endif
#%if 0%{?is_Fedora_30}
#sed -i -e ""1 s,#!/usr/bin/python$,#!/usr/bin/python3," set_version
#%endif
%if %{with obs_scm_testsuite}
%check