Revert "Add platform-python package"
We don't use this anymore.
This reverts commit f81b0b5401
.
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
f81b0b5401
commit
ab66f7daa3
@ -1,14 +1,11 @@
|
|||||||
%global modname iniparse
|
%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
|
# Use the same directory of the main package for subpackage licence and docs
|
||||||
%global _docdir_fmt %{name}
|
%global _docdir_fmt %{name}
|
||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 0.4
|
Version: 0.4
|
||||||
Release: 26%{?dist}
|
Release: 27%{?dist}
|
||||||
Summary: Python Module for Accessing and Modifying Configuration Data in INI files
|
Summary: Python Module for Accessing and Modifying Configuration Data in INI files
|
||||||
License: MIT and Python
|
License: MIT and Python
|
||||||
URL: http://code.google.com/p/iniparse/
|
URL: http://code.google.com/p/iniparse/
|
||||||
@ -32,7 +29,6 @@ use.
|
|||||||
|
|
||||||
%description %{_description}
|
%description %{_description}
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-%{modname}
|
%package -n python2-%{modname}
|
||||||
Summary: Python 2 Module for Accessing and Modifying Configuration Data in INI files
|
Summary: Python 2 Module for Accessing and Modifying Configuration Data in INI files
|
||||||
%{?python_provide:%python_provide python2-%{modname}}
|
%{?python_provide:%python_provide python2-%{modname}}
|
||||||
@ -45,9 +41,7 @@ Requires: python2-six
|
|||||||
%description -n python2-%{modname} %{_description}
|
%description -n python2-%{modname} %{_description}
|
||||||
|
|
||||||
Python 2 version.
|
Python 2 version.
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python3-%{modname}
|
%package -n python3-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{modname}}
|
%{?python_provide:%python_provide python3-%{modname}}
|
||||||
@ -56,26 +50,11 @@ BuildRequires: python3-setuptools
|
|||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
BuildRequires: python3-test
|
BuildRequires: python3-test
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
|
Obsoletes: platform-python-%{modname} < 0.4-27
|
||||||
|
|
||||||
%description -n python3-%{modname} %{_description}
|
%description -n python3-%{modname} %{_description}
|
||||||
|
|
||||||
Python 3 version.
|
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
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
@ -85,73 +64,36 @@ Platform Python version.
|
|||||||
chmod -c -x html/index.html
|
chmod -c -x html/index.html
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with python2}
|
|
||||||
%py2_build
|
%py2_build
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with platform_python}
|
|
||||||
%platform_py_build
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
|
||||||
%py2_install
|
%py2_install
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with platform_python}
|
|
||||||
%platform_py_install
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
rm -vfr %{buildroot}%{_docdir}/*
|
rm -vfr %{buildroot}%{_docdir}/*
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with python2}
|
|
||||||
%{__python2} runtests.py
|
%{__python2} runtests.py
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%{__python3} runtests.py
|
%{__python3} runtests.py
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with platform_python}
|
|
||||||
%{__platform_python} runtests.py
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-%{modname}
|
%files -n python2-%{modname}
|
||||||
%license LICENSE LICENSE-PSF
|
%license LICENSE LICENSE-PSF
|
||||||
%doc README Changelog html/
|
%doc README Changelog html/
|
||||||
%{python2_sitelib}/%{modname}/
|
%{python2_sitelib}/%{modname}/
|
||||||
%{python2_sitelib}/%{modname}-%{version}-*.egg-info
|
%{python2_sitelib}/%{modname}-%{version}-*.egg-info
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%files -n python3-%{modname}
|
%files -n python3-%{modname}
|
||||||
%license LICENSE LICENSE-PSF
|
%license LICENSE LICENSE-PSF
|
||||||
%doc README Changelog html/
|
%doc README Changelog html/
|
||||||
%{python3_sitelib}/%{modname}/
|
%{python3_sitelib}/%{modname}/
|
||||||
%{python3_sitelib}/%{modname}-%{version}-*.egg-info
|
%{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
|
%changelog
|
||||||
|
* Fri Nov 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.4-27
|
||||||
|
- Remove platform-python subpackage
|
||||||
|
|
||||||
* Thu Aug 10 2017 Miro Hrončok <mhroncok@redhat.com> - 0.4-26
|
* Thu Aug 10 2017 Miro Hrončok <mhroncok@redhat.com> - 0.4-26
|
||||||
- Add platform-python package
|
- Add platform-python package
|
||||||
- Add bconds
|
- Add bconds
|
||||||
|
Loading…
Reference in New Issue
Block a user