commit 03ff7a1209c2810011fc2825bce44444395f478b
Author: Leigh Scott <leigh123linux(a)googlemail.com>
Date: Tue Mar 26 15:08:46 2019 +0000
Initial Package
.gitignore | 1 +
py3.patch | 29 +++++++++++++++++++++++++++
rfpkgdb-cli.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 91 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..914b788 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/rfpkgdb-cli-2.15.0rc2.tar.gz
diff --git a/py3.patch b/py3.patch
new file mode 100644
index 0000000..f3e052d
--- /dev/null
+++ b/py3.patch
@@ -0,0 +1,29 @@
+--- a/rfpkgdb2client/utils.py
++++ b/rfpkgdb2client/utils.py
+@@ -26,7 +29,7 @@
+
+ import requests
+ import rpmfusion_cert
+-import xmlrpclib
++import xmlrpc.client
+
+ from bugzilla import Bugzilla
+ from fedora.client import AccountSystem, AuthError
+@@ -53,7 +56,7 @@
+
+ try:
+ BZCLIENT.logged_in
+- except xmlrpclib.Error:
++ except xmlrpc.client.Error:
+ bz_login()
+
+ return BZCLIENT
+@@ -76,7 +79,7 @@
+ print('To keep going, we need to authenticate against bugzilla'
+ ' at {0}'.format(BZCLIENT.url))
+
+- username = raw_input("Bugzilla user: ")
++ username = input("Bugzilla user: ")
+ password = getpass.getpass("Bugzilla password: ")
+ BZCLIENT.login(username, password)
+
diff --git a/rfpkgdb-cli.spec b/rfpkgdb-cli.spec
new file mode 100644
index 0000000..9b5ad97
--- /dev/null
+++ b/rfpkgdb-cli.spec
@@ -0,0 +1,60 @@
+Name: rfpkgdb-cli
+Version: 2.15.0
+Release: 0.1rc2%{?dist}
+Summary: A CLI for pkgdb
+
+License: GPLv2+
+URL:
https://github.com/ferdnyc/rfpkgdb-cli
+Source0: %{url}/archive/v%{version}rc2/%{name}-%{version}rc2.tar.gz
+Patch0: py3.patch
+
+BuildArch: noarch
+
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-fedora
+BuildRequires: python3-bugzilla
+BuildRequires: koji
+
+
+Requires(post): python3-fedora
+Requires(post): python3-requests
+Requires: python3-bugzilla
+Requires: python3-koji
+Requires: python3-beautifulsoup4
+Requires: python3-setuptools
+Requires: python3-rpmfusion-cert
+
+%description
+rfpkgdb-cli is a command line interface for the
+packagedb of the Rpmfusion project.
+
+It allows you to manage the ACL for your packages as well
+as requesting new ACL for new packages.
+It also allows you to orphan and/or retire your package(s).
+
+%prep
+%autosetup -p1 -n %{name}-%{version}rc2
+
+
+%build
+%py3_build
+
+
+%install
+%py3_install
+
+
+%files
+%doc README.rst LICENSE
+%{python3_sitelib}/rfpkgdb2client/
+%{python3_sitelib}/rfpkgdb_cli*.egg-info
+%{_bindir}/rfpkgdb-cli
+%{_bindir}/rfpkgdb-admin
+
+
+%changelog
+* Tue Mar 26 2019 Leigh Scott <leigh123linux(a)googlemail.com> - 2.15.0-0.1rc2
+- Initial Package
+
diff --git a/sources b/sources
index e69de29..3a26550 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+834abe731a42b6bfb886b754f4756de1 rfpkgdb-cli-2.15.0rc2.tar.gz