From ab66f7daa36dc90f31f16ca3bf086660af0ff4c3 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 3 Nov 2017 18:59:22 +0100 Subject: [PATCH] Revert "Add platform-python package" We don't use this anymore. This reverts commit f81b0b5401b6b797da4b630116467bffe9214c35. Signed-off-by: Igor Gnatenko --- python-iniparse.spec | 68 ++++---------------------------------------- 1 file changed, 5 insertions(+), 63 deletions(-) diff --git a/python-iniparse.spec b/python-iniparse.spec index d0f4bfb..4fcf1b7 100644 --- a/python-iniparse.spec +++ b/python-iniparse.spec @@ -1,14 +1,11 @@ %global modname iniparse -%bcond_without python2 -%bcond_without python3 -%bcond_without platform_python # Use the same directory of the main package for subpackage licence and docs %global _docdir_fmt %{name} Name: python-%{modname} Version: 0.4 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Python Module for Accessing and Modifying Configuration Data in INI files License: MIT and Python URL: http://code.google.com/p/iniparse/ @@ -32,7 +29,6 @@ use. %description %{_description} -%if %{with python2} %package -n python2-%{modname} Summary: Python 2 Module for Accessing and Modifying Configuration Data in INI files %{?python_provide:%python_provide python2-%{modname}} @@ -45,9 +41,7 @@ Requires: python2-six %description -n python2-%{modname} %{_description} Python 2 version. -%endif -%if %{with python3} %package -n python3-%{modname} Summary: %{summary} %{?python_provide:%python_provide python3-%{modname}} @@ -56,26 +50,11 @@ BuildRequires: python3-setuptools BuildRequires: python3-six BuildRequires: python3-test Requires: python3-six +Obsoletes: platform-python-%{modname} < 0.4-27 %description -n python3-%{modname} %{_description} Python 3 version. -%endif - -%if %{with platform_python} -%package -n platform-python-%{modname} -Summary: %{summary} -BuildRequires: platform-python-devel -BuildRequires: platform-python-setuptools -BuildRequires: platform-python-six -BuildRequires: platform-python-test -Requires: platform-python-six - -%description -n platform-python-%{modname} %{_description} - -Platform Python version. -%endif - %prep %setup -q -n %{modname}-%{version} @@ -85,73 +64,36 @@ Platform Python version. chmod -c -x html/index.html %build -%if %{with python2} %py2_build -%endif - %if %{with python3} %py3_build %endif -%if %{with platform_python} -%platform_py_build -%endif - %install -%if %{with python2} %py2_install -%endif - -%if %{with python3} %py3_install -%endif - -%if %{with platform_python} -%platform_py_install -%endif - - rm -vfr %{buildroot}%{_docdir}/* %check -%if %{with python2} %{__python2} runtests.py -%endif - -%if %{with python3} %{__python3} runtests.py -%endif -%if %{with platform_python} -%{__platform_python} runtests.py -%endif - - -%if %{with python2} %files -n python2-%{modname} %license LICENSE LICENSE-PSF %doc README Changelog html/ %{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}-%{version}-*.egg-info -%endif -%if %{with python3} %files -n python3-%{modname} %license LICENSE LICENSE-PSF %doc README Changelog html/ %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}-*.egg-info -%endif - -%if %{with platform_python} -%files -n platform-python-%{modname} -%license LICENSE LICENSE-PSF -%doc README Changelog html/ -%{platform_python_sitelib}/%{modname}/ -%{platform_python_sitelib}/%{modname}-%{version}-*.egg-info -%endif %changelog +* Fri Nov 03 2017 Igor Gnatenko - 0.4-27 +- Remove platform-python subpackage + * Thu Aug 10 2017 Miro HronĨok - 0.4-26 - Add platform-python package - Add bconds