Group :: Development/Python3
RPM: python3-module-configobj
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_disable snapshot
%define pypi_name configobj
%def_disable check
Name: python3-module-%pypi_name
Version: 5.0.8
Release: alt1
Summary: a Python module for easy reading and writing of config files
License: BSD-3-Clause
Group: Development/Python3
Url: http://configobj.readthedocs.org/
%if_disabled snapshot
Source: https://pypi.python.org/packages/source/c/%pypi_name/%pypi_name-%version.tar.gz
%else
Vcs: https://github.com/DiffSK/configobj
Source: %pypi_name-%version.tar
%endif
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-wheel
%{?_enable_check:BuildRequires: python3-module-tox python3-module-flake8 python3-module-pep8}
%description
ConfigObj - a Python module for easy reading and writing of config
files.
%prep
%setup -n %pypi_name-%version
%build
%pyproject_build
%install
%pyproject_install
%check
tox.py3 -e py%(echo %__python3_version | tr -d .) --sitepackages -o -v
%files
%python3_sitelibdir/validate/
%python3_sitelibdir/%pypi_name
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}
%changelog
…
Todas as alterações você pod ver aqui
%define pypi_name configobj
%def_disable check
Name: python3-module-%pypi_name
Version: 5.0.8
Release: alt1
Summary: a Python module for easy reading and writing of config files
License: BSD-3-Clause
Group: Development/Python3
Url: http://configobj.readthedocs.org/
%if_disabled snapshot
Source: https://pypi.python.org/packages/source/c/%pypi_name/%pypi_name-%version.tar.gz
%else
Vcs: https://github.com/DiffSK/configobj
Source: %pypi_name-%version.tar
%endif
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-devel python3-module-wheel
%{?_enable_check:BuildRequires: python3-module-tox python3-module-flake8 python3-module-pep8}
%description
ConfigObj - a Python module for easy reading and writing of config
files.
%prep
%setup -n %pypi_name-%version
%build
%pyproject_build
%install
%pyproject_install
%check
tox.py3 -e py%(echo %__python3_version | tr -d .) --sitepackages -o -v
%files
%python3_sitelibdir/validate/
%python3_sitelibdir/%pypi_name
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}
%changelog
…
Todas as alterações você pod ver aqui