Группа :: Development/Python3
Пакет: python3-module-cpuinfo
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name py-cpuinfo
%define mod_name cpuinfo
Name: python3-module-%mod_name
Version: 9.0.0
Release: alt1
Summary: Get CPU info with pure Python
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/py-cpuinfo
Vcs: https://github.com/workhorsy/py-cpuinfo
BuildArch: noarch
Source: %name-%version.tar
Source1: %pyproject_deps_config_name
# mapping from PyPI name
Provides: python3-module-%{pep503_name %pypi_name} = %EVR
Conflicts: python-module-%mod_name <= 3.3.0-alt2
%pyproject_runtimedeps_metadata
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
%if_with check
%pyproject_builddeps_metadata
%endif
%description
Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without any
extra programs or libraries, beyond what your OS provides. It does not require
any compilation(C/C++, assembly, et cetera) to use. It works with Python 3.
%prep
%setup
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run -- python3 test_suite.py
%files
%doc README.md
%_bindir/cpuinfo
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Полный changelog можно просмотреть здесь
%define pypi_name py-cpuinfo
%define mod_name cpuinfo
Name: python3-module-%mod_name
Version: 9.0.0
Release: alt1
Summary: Get CPU info with pure Python
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/py-cpuinfo
Vcs: https://github.com/workhorsy/py-cpuinfo
BuildArch: noarch
Source: %name-%version.tar
Source1: %pyproject_deps_config_name
# mapping from PyPI name
Provides: python3-module-%{pep503_name %pypi_name} = %EVR
Conflicts: python-module-%mod_name <= 3.3.0-alt2
%pyproject_runtimedeps_metadata
BuildRequires(pre): rpm-build-pyproject
%pyproject_builddeps_build
%if_with check
%pyproject_builddeps_metadata
%endif
%description
Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without any
extra programs or libraries, beyond what your OS provides. It does not require
any compilation(C/C++, assembly, et cetera) to use. It works with Python 3.
%prep
%setup
%pyproject_deps_resync_build
%pyproject_deps_resync_metadata
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run -- python3 test_suite.py
%files
%doc README.md
%_bindir/cpuinfo
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Полный changelog можно просмотреть здесь