[packages/python-hacking] Version: 0.10.3
jajcus
jajcus at pld-linux.org
Wed Aug 2 13:16:27 CEST 2017
commit 0e5aaef64b0c42733bd8a0fa5bfda4296d3b53fc
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Wed Aug 2 13:16:01 2017 +0200
Version: 0.10.3
python-hacking.spec | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/python-hacking.spec b/python-hacking.spec
index d79ce30..2f64072 100644
--- a/python-hacking.spec
+++ b/python-hacking.spec
@@ -2,18 +2,17 @@
# Conditional build:
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
-%bcond_without tests # test target
+%bcond_with tests # test target (broken)
Summary: OpenStack Hacking Guideline enforcement plugins
Summary(pl.UTF-8): Wtyczki wymuszające OpenStack Hacking Guideline
Name: python-hacking
-Version: 0.10.2
-Release: 2
+Version: 0.10.3
+Release: 1
License: Apache v2.0
Group: Development/Languages/Python
-#Source0Download: https://pypi.python.org/simple/hacking/
-Source0: https://pypi.python.org/packages/source/h/hacking/hacking-%{version}.tar.gz
-# Source0-md5: 1fc57792bfb5e9715d1d4da56ebcc9df
+Source0: https://github.com/openstack-dev/hacking/archive/%{version}/hacking-%{version}.tar.gz
+# Source0-md5: 1a3881ee56e7fa20b2ed019a84738168
Patch0: %{name}-requirements.patch
URL: https://github.com/openstack-dev/hacking
BuildRequires: rpm-pythonprov
@@ -21,7 +20,6 @@ BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
BuildRequires: python-devel >= 1:2.6
BuildRequires: python-pbr >= 0.11
-BuildRequires: python-pbr < 2.0
%if %{with tests}
BuildRequires: python-Sphinx >= 1.1.2
BuildRequires: python-coverage >= 3.6
@@ -44,7 +42,6 @@ BuildRequires: python-testtools >= 0.9.36
%if %{with python3}
BuildRequires: python3-devel >= 1:3.3
BuildRequires: python3-pbr >= 0.11
-BuildRequires: python3-pbr < 2.0
%if %{with tests}
BuildRequires: python3-Sphinx >= 1.1.2
BuildRequires: python3-eventlet >= 0.16.1
@@ -100,6 +97,7 @@ wymuszających przestrzeganie wskazówek OpenStack Style Guidlines
%patch0 -p1
%build
+export PBR_VERSION="%{version}"
%if %{with python2}
%py_build %{?with_tests:test}
@@ -115,6 +113,8 @@ wymuszających przestrzeganie wskazówek OpenStack Style Guidlines
%install
rm -rf $RPM_BUILD_ROOT
+export PBR_VERSION="%{version}"
+
%if %{with python2}
%py_install
@@ -131,7 +131,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README.rst
+%doc README.rst
%{py_sitescriptdir}/hacking
%{py_sitescriptdir}/hacking-%{version}-py*.egg-info
%endif
@@ -139,7 +139,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python3}
%files -n python3-hacking
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README.rst
+%doc README.rst
%{py3_sitescriptdir}/hacking
%{py3_sitescriptdir}/hacking-%{version}-py*.egg-info
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-hacking.git/commitdiff/0e5aaef64b0c42733bd8a0fa5bfda4296d3b53fc
More information about the pld-cvs-commit
mailing list