summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/python-jenkinsapi.spec16
-rw-r--r--setup.py3
2 files changed, 10 insertions, 9 deletions
diff --git a/packaging/python-jenkinsapi.spec b/packaging/python-jenkinsapi.spec
index d9bcbe7..c00a083 100644
--- a/packaging/python-jenkinsapi.spec
+++ b/packaging/python-jenkinsapi.spec
@@ -24,17 +24,19 @@ Group: Development/Languages/Python
Url: https://github.com/salimfadhley/jenkinsapi
Source: https://pypi.python.org/packages/source/j/jenkinsapi/jenkinsapi-%{version}.tar.gz
-BuildRequires: python-setuptools
+BuildRequires: python3-setuptools
+BuildRequires: python3-pytz
+BuildRequires: python3-pbr
%if 0%{?suse_version} || 0%{?fedora}
-BuildRequires: python-requests
-Requires: python-requests
+BuildRequires: python3-requests
+Requires: python3-requests
%endif
%if 0%{?fedora} || 0%{?centos_ver}
Requires: pytz
%else
-Requires: python-pytz
+Requires: python3-pytz
%endif
%description
@@ -64,19 +66,19 @@ This library can help you:
%setup -q
%build
-python setup.py build
+PBR_VERSION=X.Y.Z python3 setup.py build
%if 0%{?fedora} == 23
cp -f find-debuginfo.sh /usr/lib/rpm/find-debuginfo.sh
%endif
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+PBR_VERSION=X.Y.Z python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc README.rst
%{_bindir}/*
-%{python_sitelib}/*
+%{python3_sitelib}/*
%changelog
diff --git a/setup.py b/setup.py
index 8674709..c39ef30 100644
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,5 @@ from setuptools import setup
setup(
- setup_requires=['pbr'],
+ setup_requires=['pbr>=2.0.0'],
pbr=True)
-