Группа :: Development/Python3
Пакет: python3-module-gssapi
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name gssapi
%def_with check
Name: python3-module-%pypi_name
Version: 1.8.2
Release: alt1
Summary: Python GSSAPI Wrapper
License: ISC
Group: Development/Python3
VCS: https://github.com/pythongssapi/python-gssapi.git
Url: https://pypi.org/project/gssapi/
Source: %name-%version.tar
Patch: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(Cython)
BuildRequires: libkrb5-devel >= 1.15
%if_with check
# install_requires
BuildRequires: python3(decorator)
BuildRequires: python3(k5test)
BuildRequires: python3(parameterized)
BuildRequires: krb5-kdc >= 1.15
%endif
Requires: libkrb5 >= 1.15
%description
Python-GSSAPI provides both low-level and high level wrappers around the GSSAPI
C libraries. While it focuses on the Kerberos mechanism, it should also be
useable with other GSSAPI mechanisms.
%prep
%setup
%patch -p1
%build
%add_optflags -fno-strict-aliasing
%pyproject_build
%install
%pyproject_install
%check
# see ci/test.sh
cat > tox.ini <<'EOF'
[testenv]
allowlist_externals = bash
commands =
bash -c 'cd gssapi/tests && python -m unittest'
EOF
%tox_check_pyproject -c tox.ini
%files
%doc LICENSE.txt README.rst
%python3_sitelibdir/gssapi/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%exclude %python3_sitelibdir/gssapi/tests/
%changelog
…
Полный changelog можно просмотреть здесь
%define pypi_name gssapi
%def_with check
Name: python3-module-%pypi_name
Version: 1.8.2
Release: alt1
Summary: Python GSSAPI Wrapper
License: ISC
Group: Development/Python3
VCS: https://github.com/pythongssapi/python-gssapi.git
Url: https://pypi.org/project/gssapi/
Source: %name-%version.tar
Patch: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(Cython)
BuildRequires: libkrb5-devel >= 1.15
%if_with check
# install_requires
BuildRequires: python3(decorator)
BuildRequires: python3(k5test)
BuildRequires: python3(parameterized)
BuildRequires: krb5-kdc >= 1.15
%endif
Requires: libkrb5 >= 1.15
%description
Python-GSSAPI provides both low-level and high level wrappers around the GSSAPI
C libraries. While it focuses on the Kerberos mechanism, it should also be
useable with other GSSAPI mechanisms.
%prep
%setup
%patch -p1
%build
%add_optflags -fno-strict-aliasing
%pyproject_build
%install
%pyproject_install
%check
# see ci/test.sh
cat > tox.ini <<'EOF'
[testenv]
allowlist_externals = bash
commands =
bash -c 'cd gssapi/tests && python -m unittest'
EOF
%tox_check_pyproject -c tox.ini
%files
%doc LICENSE.txt README.rst
%python3_sitelibdir/gssapi/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%exclude %python3_sitelibdir/gssapi/tests/
%changelog
…
Полный changelog можно просмотреть здесь