%global srcname lazr.config %global pkgname lazr-config %global summary Create configuration schemas, and process and validate configurations %global _description \ The LAZR config system is typically used to manage process configuration. \ Process configuration is for saying how things change when we run systems on \ different machines, or under different circumstances. \ \ This system uses ini-like file format of section, keys, and values. The config \ file supports inheritance to minimize duplication of information across files. \ The format supports schema validation. Name: python-%{pkgname} Version: 2.1 Release: 12%{?dist} Summary: %{summary} License: LGPLv3 URL: https://launchpad.net/lazr.config Source0: https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch # Python3 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-zope-interface BuildRequires: python%{python3_pkgversion}-nose BuildRequires: python%{python3_pkgversion}-lazr-delegates %if 0%{?with_python3_other} BuildRequires: python%{python3_other_pkgversion}-devel BuildRequires: python%{python3_other_pkgversion}-setuptools BuildRequires: python%{python3_other_pkgversion}-zope-interface BuildRequires: python%{python3_other_pkgversion}-nose BuildRequires: python%{python3_other_pkgversion}-lazr-delegates %endif %description %{_description} %package -n python%{python3_pkgversion}-%{pkgname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} Requires: python%{python3_pkgversion}-setuptools Requires: python%{python3_pkgversion}-zope-interface Requires: python%{python3_pkgversion}-lazr-delegates %description -n python%{python3_pkgversion}-%{pkgname} %{_description} %if 0%{?with_python3_other} %package -n python%{python3_other_pkgversion}-%{pkgname} Summary: %{summary} %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pkgname}} Requires: python%{python3_other_pkgversion}-setuptools Requires: python%{python3_other_pkgversion}-zope-interface Requires: python%{python3_other_pkgversion}-lazr-delegates %description -n python%{python3_other_pkgversion}-%{pkgname} %{_description} %endif %prep %autosetup -n %{srcname}-%{version} sed -i -e '/^with-coverage/d;/^pdb /d;/^cover-package/d' setup.cfg %build %py3_build %if 0%{?with_python3_other} %py3_other_build %endif %install %py3_install %if 0%{?with_python3_other} %py3_other_install %endif %check # In Python3, namespace packages don't have an __init__.py file in the parent # dir. Keeping it would shadow the lazr.delegates module. rm lazr/__init__.py* sed -i -e 's/^\(\s*namespace_packages=.*\)/#\1/' setup.py %{__python3} setup.py nosetests %if 0%{?with_python3_other} %{__python3_other} setup.py nosetests %endif %files -n python%{python3_pkgversion}-%{pkgname} %license COPYING.txt %doc README.rst HACKING.rst %{python3_sitelib}/lazr/ %{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}.egg-info/ %{python3_sitelib}/%{srcname}-%{version}*-py%{python3_version}-nspkg.pth %if 0%{?with_python3_other} %files -n python%{python3_other_pkgversion}-%{pkgname} %license COPYING.txt %doc README.rst HACKING.rst %{python3_other_sitelib}/lazr/ %{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}.egg-info/ %{python3_other_sitelib}/%{srcname}-%{version}*-py%{python3_other_version}-nspkg.pth %endif %changelog * Thu Oct 03 2019 Miro Hrončok - 2.1-12 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 2.1-11 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 2.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Oct 11 2018 Miro Hrončok - 2.1-8 - Remove python2 subpackage (#1627422) * Sat Jul 14 2018 Fedora Release Engineering - 2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.1-6 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 22 2016 Miro Hrončok - 2.1-2 - Rebuild for Python 3.6 * Wed Sep 14 2016 Aurelien Bompard - 2.1-1 - Initial package.