d24c893
%global         srcname     msal-extensions
d24c893
%global         forgeurl    https://github.com/AzureAD/microsoft-authentication-extensions-for-python/
Jeremy Cline 13e5bd9
Version:        1.2.0~b1
Jeremy Cline 13e5bd9
%global         tag         1.2.0b1
d24c893
%forgemeta
d24c893
d24c893
Name:           python-%{srcname}
d24c893
Release:        %autorelease
d24c893
Summary:        Microsoft Authentication extensions for MSAL Python
d24c893
License:        MIT
d24c893
URL:            %forgeurl
d24c893
Source0:        %forgesource
d24c893
d24c893
BuildArch:      noarch
d24c893
d24c893
BuildRequires:  python3-devel
d24c893
d24c893
%global _description %{expand:
d24c893
The Microsoft Authentication Extensions for Python offers secure mechanisms for
87bedfa
client applications to perform cross-platform token cache serialization and
87bedfa
persistence. It gives additional support to the Microsoft Authentication Library
87bedfa
for Python (MSAL).
87bedfa
87bedfa
MSAL Python supports an in-memory cache by default and provides the
87bedfa
SerializableTokenCache to perform cache serialization. You can read more about
87bedfa
this in the MSAL Python documentation. Developers are required to implement
87bedfa
their own cache persistance across multiple platforms and Microsoft
87bedfa
Authentication Extensions makes this simpler.}
87bedfa
d24c893
%description %{_description}
87bedfa
87bedfa
87bedfa
%package -n python3-%{srcname}
87bedfa
Summary:        %{summary}
87bedfa
d24c893
%description -n python3-%{srcname} %{_description}
87bedfa
87bedfa
87bedfa
%prep
d24c893
%forgeautosetup -p1
87bedfa
87bedfa
# Remove DOS line endings
87bedfa
sed "s|\r||g" README.md >README.md.new && \
87bedfa
touch -r README.md README.md.new && \
87bedfa
mv README.md.new README.md
87bedfa
87bedfa
d24c893
%generate_buildrequires
d24c893
%pyproject_buildrequires -r
d24c893
d24c893
87bedfa
%build
d24c893
%pyproject_wheel
87bedfa
87bedfa
87bedfa
%install
d24c893
%pyproject_install
d24c893
%pyproject_save_files msal_extensions
87bedfa
87bedfa
d24c893
%files -n python3-%{srcname} -f %{pyproject_files}
87bedfa
%doc README.md
87bedfa
87bedfa
87bedfa
%changelog
d24c893
%autochangelog