!2 python-ntlm-auth package init
From: @jiangpengjuj Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
1189e1e1ea
BIN
ntlm-auth-1.1.0.tar.gz
Normal file
BIN
ntlm-auth-1.1.0.tar.gz
Normal file
Binary file not shown.
16
ntlm-auth-epel-setuptools.patch
Normal file
16
ntlm-auth-epel-setuptools.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index eda4811..3ccbe40 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -16,11 +16,6 @@ setup(
|
||||||
|
version='1.1.0',
|
||||||
|
packages=['ntlm_auth'],
|
||||||
|
install_requires=[],
|
||||||
|
- extras_require={
|
||||||
|
- ':python_version<"2.7"': [
|
||||||
|
- 'ordereddict'
|
||||||
|
- ]
|
||||||
|
- },
|
||||||
|
author='Jordan Borean',
|
||||||
|
author_email='jborean93@gmail.com',
|
||||||
|
url='https://github.com/jborean93/ntlm-auth',
|
||||||
49
python-ntlm-auth.spec
Normal file
49
python-ntlm-auth.spec
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
%global srcname ntlm-auth
|
||||||
|
%global pypi_name %{srcname}
|
||||||
|
%global gh_owner jborean93
|
||||||
|
%global library_name ntlm_auth
|
||||||
|
Name: python-%{srcname}
|
||||||
|
Version: 1.1.0
|
||||||
|
Release: 1
|
||||||
|
Summary: Python 3 compatible NTLM library
|
||||||
|
License: MIT
|
||||||
|
URL: https://pypi.python.org/pypi/%{pypi_name}
|
||||||
|
Source0: https://github.com/%{gh_owner}/%{pypi_name}/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
|
||||||
|
Patch0: ntlm-auth-epel-setuptools.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: python3-setuptools python3-devel python3-pytest python3-requests
|
||||||
|
%description
|
||||||
|
This package allows Python clients running on any operating system to provide
|
||||||
|
NTLM authentication to a supporting server.
|
||||||
|
|
||||||
|
%package -n python3-%{srcname}
|
||||||
|
Obsoletes: python3-ntlm3 < 1.0.3-1
|
||||||
|
Provides: python3-ntlm3 = %{version}-%{release}
|
||||||
|
Summary: Python 3 compatible NTLM library
|
||||||
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
|
%description -n python3-%{srcname}
|
||||||
|
This package allows Python clients running on any operating system to provide
|
||||||
|
NTLM authentication to a supporting server.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{pypi_name}-%{version}
|
||||||
|
rm -rf %{pypi_name}.egg-info
|
||||||
|
|
||||||
|
%build
|
||||||
|
%py3_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%py3_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
%{__python3} -m pytest --ignore=tests/functional/test_iis.py tests
|
||||||
|
|
||||||
|
%files -n python3-%{srcname}
|
||||||
|
%doc CHANGES.md README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{python3_sitelib}/%{library_name}
|
||||||
|
%{python3_sitelib}/%{library_name}-%{version}-py?.?.egg-info
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon May 17 2021 Pengju Jiang <jiangpengju2@huawei.com> - 1.1.0-1
|
||||||
|
- package init
|
||||||
Loading…
x
Reference in New Issue
Block a user