From a24c3646dc0fafcde39a5ea376794138c8ebe2d0 Mon Sep 17 00:00:00 2001 From: Charalampos Stratakis Date: Jun 23 2016 15:06:09 +0000 Subject: Provide a Python 3 tests subpackage --- diff --git a/python-oslo-context.spec b/python-oslo-context.spec index 3cd52e1..527b64f 100644 --- a/python-oslo-context.spec +++ b/python-oslo-context.spec @@ -9,7 +9,7 @@ Name: python-%{pkg_name} Version: 2.2.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: OpenStack Oslo Context library License: ASL 2.0 @@ -81,6 +81,16 @@ WSGI pipeline and used by various modules such as logging. %endif +%if 0%{?with_python3} +%package -n python3-%{pkg_name}-tests +Summary: Tests for OpenStack Oslo context library + +Requires: python3-%{pkg_name} = %{version}-%{release} + +%description -n python3-%{pkg_name}-tests +Tests for OpenStack Oslo context library +%endif + %description The OpenStack Oslo context library has helpers to maintain useful information about a request context. @@ -142,7 +152,17 @@ rm -rf .testrepository %files -n python-%{pkg_name}-tests %license LICENSE %{python2_sitelib}/oslo_context/tests + +%if 0%{?with_python3} +%files -n python3-%{pkg_name}-tests +%license LICENSE +%{python3_sitelib}/oslo_context/tests +%endif + %changelog -* Wed Mar 23 2016 Haikel Guemar 2.2.0- +* Fri Jun 03 2016 Charalampos Stratakis 2.2.0-2 +- Provide a python 3 tests subpackage + +* Wed Mar 23 2016 Haikel Guemar 2.2.0-1 - Update to 2.2.0