SampleSpecs/python3module: различия между версиями
м (note) |
Нет описания правки |
||
Строка 13: | Строка 13: | ||
Summary: ... | Summary: ... | ||
License: | License: GPL-3.0-or-later | ||
Group: Development/Python3 | Group: Development/Python3 | ||
Url: | Url: https://... | ||
VCS: https://... | |||
BuildArch: noarch | BuildArch: noarch | ||
Source: %name-%version.tar | Source: %name-%version.tar | ||
BuildRequires(pre): rpm-build-python3 | BuildRequires(pre): rpm-macros-python3 | ||
BuildRequires: rpm-build-python3 | |||
BuildRequires: python3(setuptools) | BuildRequires: python3(setuptools) | ||
BuildRequires: python3(wheel) | BuildRequires: python3(wheel) |
Текущая версия от 09:25, 17 июня 2025
примечание: адаптировано mike@, который не питонист ни разу; проверьте/поправьте при надобности
примечание: устарело согласно Python packaging guide
примечание: использованы новые макросы %pyproject*
%define modulename foo Name: python3-module-%modulename Version: 1.0 Release: alt1 Summary: ... License: GPL-3.0-or-later Group: Development/Python3 Url: https://... VCS: https://... BuildArch: noarch Source: %name-%version.tar BuildRequires(pre): rpm-macros-python3 BuildRequires: rpm-build-python3 BuildRequires: python3(setuptools) BuildRequires: python3(wheel) #BuildRequires(pre): rpm-macros-sphinx3 # %%add_python3_req_skip ... %description ... %prep %setup %build %pyproject_build %install %pyproject_install %files %python3_sitelibdir/%modulename/ %python3_sitelibdir/%modulename-%version.dist-info/