[packagedb-cli] Update to 2.0
Pierre-YvesChibon
pingou at fedoraproject.org
Wed May 14 12:44:23 UTC 2014
commit f686d8fb50f718eabe6423f032a7ffb6522a4ed2
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date: Wed May 14 14:42:40 2014 +0200
Update to 2.0
.gitignore | 1 +
packagedb-cli.spec | 23 ++++++++++++++---------
sources | 2 +-
3 files changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index dc42b78..54192e6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/packagedb-cli-1.5.1.tar.gz
/packagedb-cli-1.6.0.tar.gz
/packagedb-cli-1.7.0.tar.gz
+/packagedb-cli-2.0.tar.gz
diff --git a/packagedb-cli.spec b/packagedb-cli.spec
index 6bd3180..77ea709 100644
--- a/packagedb-cli.spec
+++ b/packagedb-cli.spec
@@ -1,15 +1,11 @@
Name: packagedb-cli
-Version: 1.7.0
+Version: 2.0
Release: 1%{?dist}
Summary: A CLI for pkgdb
License: GPLv2+
URL: https://fedorahosted.org/packagedb-cli/
-# Will be in https://fedorahosted.org/releases/p/a/packagedb-cli/
-# as soon as a "permission denied" is fixed and that I can upload
-# the tarball
-Source0: http://ambre.pingoured.fr/public/packagedb-cli-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0: https://fedorahosted.org/releases/p/a/%{name}/%{name}-%{version}.tar.gz
BuildArch: noarch
@@ -28,6 +24,7 @@ Requires: python-argparse
%endif
Requires(post): python-fedora
+Requires(post): python-requests
Requires: python-bugzilla
Requires: koji
Requires: fedora-cert
@@ -45,18 +42,26 @@ It also allows you to orphan and/or retire your package(s).
%setup -q
%build
+%{__python} setup.py build
+
%install
-rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root=%{buildroot}
-mkdir -p $RPM_BUILD_ROOT/%{_bindir}
-install pkgdb-cli $RPM_BUILD_ROOT/%{_bindir}/
%files
%doc README LICENSE
+%{python_sitelib}/pkgdb2_cli.py*
+%{python_sitelib}/pkgdb2client.py*
+%{python_sitelib}/packagedb_cli*.egg-info
%{_bindir}/pkgdb-cli
+
%changelog
+* Wed May 14 2014 Pierre-Yves Chibon <pingou at pingoured.fr> - 2.0-1
+- Update to 2.0 for pkgdb2
+- Adjust spec to rely on the newly included setup.py
+
* Mon Mar 10 2014 Pierre-Yves Chibon <pingou at pingoured.fr> - 1.7.0-1
- Update to 1.7.0
- Add the branches command
diff --git a/sources b/sources
index bf50cc6..fadbea2 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8bd981513ab9da0be39f6c87d1b0ef4a packagedb-cli-1.7.0.tar.gz
+fc82fc3461096a838319545a4ef3a1e9 packagedb-cli-2.0.tar.gz
More information about the scm-commits
mailing list