From 51b6d172a01f1ed1dd5042be5cbd21594470b8e2 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Fri, 25 Jul 2014 14:47:50 +0200 Subject: [PATCH] Skip the python3 %files section if we don't build the python3 package --- python-colorama.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python-colorama.spec b/python-colorama.spec index e98337d..6c4c877 100644 --- a/python-colorama.spec +++ b/python-colorama.spec @@ -6,7 +6,7 @@ Name: python-%{pypi_name} Version: 0.2.7 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Cross-platform colored terminal text License: BSD @@ -91,12 +91,17 @@ popd %{python_sitelib}/%{pypi_name} %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%if 0%{?with_python3} %files -n python3-%{pypi_name} %doc README.txt LICENSE.txt %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info +%endif %changelog +* Fri Jul 25 2014 Lubomir Rintel - 0.2.7-5 +- Skip the python3 %%files section if we don't build the python3 package + * Sat Jun 07 2014 Fedora Release Engineering - 0.2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild