Blame python-msal.spec

59bf687
# Most of the tests require network access, so they are disabled by default.
59bf687
%bcond_with  tests
eda163b
59bf687
%global         srcname         msal
59bf687
%global         forgeurl        https://github.com/AzureAD/microsoft-authentication-library-for-python/
59bf687
Version:        1.15.0
59bf687
%global         tag             %{version}
59bf687
%forgemeta
eda163b
44cd49f
Name:           python-%{srcname}
59bf687
Release:        %autorelease
44cd49f
Summary:        Microsoft Authentication Library (MSAL) for Python
44cd49f
44cd49f
License:        MIT
59bf687
URL:            %forgeurl
59bf687
Source0:        %forgesource
59bf687
44cd49f
BuildArch:      noarch
44cd49f
008e520
BuildRequires:  python3-devel
59bf687
59bf687
%if %{with tests}
59bf687
BuildRequires:  python3dist(pytest)
59bf687
%endif
59bf687
59bf687
%global _description %{expand:
59bf687
The Microsoft Authentication Library for Python
59bf687
enables applications to integrate with the Microsoft identity platform. It
59bf687
allows you to sign in users or apps with Microsoft identities (Azure AD,
59bf687
Microsoft Accounts and Azure AD B2Caccounts) and obtain tokens to call Microsoft
59bf687
APIs such as Microsoft Graph or your own APIs registered with the Microsoft
59bf687
identity platform. It is built using industry standard OAuth2 and OpenID Connect
59bf687
protocols.}
59bf687
59bf687
%description %{_description}
44cd49f
44cd49f
44cd49f
%package -n python3-%{srcname}
44cd49f
Summary:        %{summary}
59bf687
%description -n python3-%{srcname} %{_description}
44cd49f
44cd49f
44cd49f
%prep
59bf687
%forgeautosetup -p1
44cd49f
59bf687
59bf687
%generate_buildrequires
59bf687
%pyproject_buildrequires -r
44cd49f
44cd49f
44cd49f
%build
59bf687
%pyproject_wheel
44cd49f
44cd49f
44cd49f
%install
59bf687
%pyproject_install
59bf687
%pyproject_save_files msal
d421ba0
d421ba0
59bf687
%if %{with tests}
d421ba0
%check
59bf687
%pytest --disable-warnings tests
eda163b
%endif
d421ba0
44cd49f
59bf687
%files -n python3-%{srcname} -f %{pyproject_files}
008e520
%doc *.md
d421ba0
d421ba0
44cd49f
%changelog
59bf687
%autochangelog