Blame SPECS/python-krb5.spec

rdobuilder 3ae869
Name:           python-krb5
rdobuilder 3ae869
Version:        0.5.0
rdobuilder 3ae869
Release:        1%{dist}
rdobuilder 3ae869
Summary:        Kerberos API bindings for Python
rdobuilder 3ae869
License:        MIT
rdobuilder 3ae869
URL:            https://github.com/jborean93/pykrb5
rdobuilder 3ae869
Source:         %{pypi_source krb5}
rdobuilder 3ae869
# https://github.com/jborean93/pykrb5/pull/32
rdobuilder 3ae869
Patch:          0001-Exclude-header-files-from-package-data.patch
rdobuilder 3ae869
rdobuilder 3ae869
BuildRequires:  gcc
rdobuilder 3ae869
BuildRequires:  krb5-devel
rdobuilder 3ae869
# for /usr/sbin/kdb5_util in tests
rdobuilder 3ae869
BuildRequires:  krb5-server
rdobuilder 3ae869
# for /usr/bin/kinit in tests
rdobuilder 3ae869
BuildRequires:  krb5-workstation
rdobuilder 3ae869
rdobuilder 3ae869
%global _description %{expand:
rdobuilder 3ae869
This library provides Python functions that wraps the Kerberos 5 C API.  Due to
rdobuilder 3ae869
the complex nature of this API it is highly recommended to use something like
rdobuilder 3ae869
python-gssapi which exposes the Kerberos authentication details through GSSAPI.}
rdobuilder 3ae869
rdobuilder 3ae869
rdobuilder 3ae869
%description %_description
rdobuilder 3ae869
rdobuilder 3ae869
rdobuilder 3ae869
%package -n python3-krb5
rdobuilder 3ae869
Summary:        %{summary}
rdobuilder 3ae869
BuildRequires:  python3-devel
rdobuilder 3ae869
BuildRequires:  python3-pytest
rdobuilder 3ae869
#BuildRequires:  python3-k5test
rdobuilder 3ae869
rdobuilder 3ae869
rdobuilder 3ae869
%description -n python3-krb5 %_description
rdobuilder 3ae869
rdobuilder 3ae869
rdobuilder 3ae869
%prep
rdobuilder 3ae869
%autosetup -p 1 -n krb5-%{version}
rdobuilder 3ae869
rdobuilder 3ae869
sed -i 's/Cython >= 0.29.29, < 3.0.0/Cython/g' pyproject.toml
rdobuilder 3ae869
rdobuilder 3ae869
%generate_buildrequires
rdobuilder 3ae869
%pyproject_buildrequires
rdobuilder 3ae869
rdobuilder 3ae869
rdobuilder 3ae869
%build
rdobuilder 3ae869
%pyproject_wheel
rdobuilder 3ae869
rdobuilder 3ae869
rdobuilder 3ae869
%install
rdobuilder 3ae869
%pyproject_install
rdobuilder 3ae869
%pyproject_save_files krb5
rdobuilder 3ae869
rdobuilder 3ae869
rdobuilder 3ae869
%check
rdobuilder 3ae869
# We are missing python-k5test BRs required for testing
rdobuilder 3ae869
#%%pytest --verbose
rdobuilder 3ae869
rdobuilder 3ae869
rdobuilder 3ae869
%files -n python3-krb5 -f %{pyproject_files}
rdobuilder 3ae869
%doc README.md
rdobuilder 3ae869
rdobuilder 3ae869
rdobuilder 3ae869
%changelog
rdobuilder 3ae869
* Tue Feb 20 2024 Alfredo Moralejo <amoralej@redhat.com> - 0.5.0-1
rdobuilder 3ae869
- Initial package