| |
@@ -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
|
| |
|
| |
https://bugzilla.redhat.com/show_bug.cgi?id=1650648