#2 Switch to Python 3
Merged 5 years ago by till. Opened 5 years ago by churchyard.
rpms/ churchyard/fedora-easy-karma py3  into  master

file modified
+1
@@ -4,3 +4,4 @@ 

  /fedora-easy-karma-0https0c81432c.tar.bz2

  /fedora-easy-karma-0httpsbc16e916.tar.bz2

  /fedora-easy-karma-0httpsa8fe9cbc.tar.bz2

+ /fedora-easy-karma-b6d97e0.tar.gz

file modified
+17 -37
@@ -1,43 +1,22 @@ 

  Name:           fedora-easy-karma

  Version:        0

- Release:        0.38.20171129gita8fe9cbc%{?dist}

+ Release:        0.39.20181206gitb6d97e0%{?dist}

  Summary:        Fedora update feedback made easy

- 

- Group:          Development/Tools

  License:        GPLv2+

  URL:            https://fedoraproject.org/wiki/Fedora_Easy_Karma

  

- #VCS: git:https://pagure.io/fedora-easy-karma.git

- ## current tarball

- # Updated using:

- # https://fedorapeople.org/cgit/walters/public_git/fedpkg-make-pull.git/

- # Commandline: fedpkg-vcs -f pull-retarget

- Source0:        fedora-easy-karma-0httpsa8fe9cbc.tar.bz2

+ # git clone https://pagure.io/fedora-easy-karma.git

+ # cd fedora-easy-karma

+ # git checkout b6d97e0

+ # git archive --format=tar.gz --prefix=fedora-easy-karma-b6d97e0/ HEAD > \

+ #     ../fedora-easy-karma-b6d97e0.tar.gz

+ Source0:        fedora-easy-karma-b6d97e0.tar.gz

  BuildArch:      noarch

+ BuildRequires:  python3-devel

  

- Requires:       python2-fedora

- # contains fedora_cert python module

- Requires:       fedora-cert

- 

- # Use new bodhi client bindings if available

- %if 0%{?fedora} || 0%{?rhel}

- %if 0%{?fedora} < 29 || 0%{?rhel} >= 7

- Requires:       bodhi-client

- %endif

- %endif

- 

- # With Fedora 29, the bodhi-client refers to the python3 client, therefore

- # require the python2 client explicitly

- %if 0%{?fedora} >= 29

- Requires:       python2-bodhi-client

- %endif

- 

- %if 0%{?fedora} >= 25

- # For Fedora 23 and newer, dnf is python3, then python2-dnf needs to required

- Requires:       python2-dnf

- %else

- Requires:       yum

- %endif

+ Requires:       python3-bodhi-client

+ Requires:       python3-dnf

+ Requires:       python3-fedora

  

  

  %description
@@ -46,11 +25,8 @@ 

  

  

  %prep

- %setup -q -n fedora-easy-karma-0httpsa8fe9cbc

- 

- 

- %build

- # Set useragent

+ %setup -q -n fedora-easy-karma-b6d97e0

+ pathfix.py -pni "%{__python3} %{py3_shbang_opts}" fedora-easy-karma.py

  sed -i 's,useragent="Fedora Easy Karma/GIT",useragent="Fedora Easy Karma/%{version}-%{release}",' fedora-easy-karma.py

  

  
@@ -60,10 +36,14 @@ 

  

  %files

  %license gpl-2.0.txt gpl-3.0.txt

+ %doc README

  %{_bindir}/fedora-easy-karma

  

  

  %changelog

+ * Wed Jan 09 2019 Miro Hrončok <mhroncok@redhat.com> - 0-0.39.20181206gitb6d97e0

+ - Switch to Python 3 (#1650648)

+ 

  * Thu Aug 09 2018 Till Maas <opensource@till.name> - 0-0.38.20171129gita8fe9cbc

  - Update Bodhi dependency for Fedora 29 and newer

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (fedora-easy-karma-0httpsa8fe9cbc.tar.bz2) = 272e57eee5e1af5102edfd03786eb09e905f41863e50dc32f0a1d8095aa3dec69c25f4514d45129cecb7a5c5012dfae8284a4cf173361ea020ce8f768c8fb350

+ SHA512 (fedora-easy-karma-b6d97e0.tar.gz) = 6b9ed2e935fd4063155f7e750b6a3ac188fc82980a6c6a355789a17469dd31e7e657c61fc8b4662c170c991950d19257be96ca881506350902004fa9bbb10bdd