!1 Init Packaging, Add source files.

From: @dwl301 
Reviewed-by: @zhang__3125 
Signed-off-by: @zhang__3125
This commit is contained in:
openeuler-ci-bot 2022-07-20 08:49:16 +00:00 committed by Gitee
commit fab402cd03
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 46 additions and 0 deletions

BIN
python-pam-1.8.4.tar.gz Normal file

Binary file not shown.

42
python-pam.spec Normal file
View File

@ -0,0 +1,42 @@
Name: python-pam
Version: 1.8.4
Release: 1
Summary: Pure Python interface to the Pluggable Authentication Modules system on Linux
License: MIT
URL: https://github.com/FirefighterBlu3/python-pam
Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%description
This module provides an authenticate function that allows the caller to
authenticate a given username / password against the PAM system on Linux.
%package -n python3-pam
Summary: Pure Python interface to the Pluggable Authentication Modules system on Linux
%{?python_provide:%python_provide python3-pam}
%description -n python3-pam
This module provides an authenticate function that allows the caller to
authenticate a given username / password against the PAM system on Linux.
%prep
%autosetup
%build
%py3_build
%install
%py3_install
%files -n python3-pam
%doc README.md
%license LICENSE
%{python3_sitelib}/pam.py*
%{python3_sitelib}/python_pam*-%{version}-py*.egg-info
%{python3_sitelib}/__pycache__/pam.cpython*
%changelog
* Mon Jun 27 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 1.8.4-1
- Initial packaging

4
python-pam.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: python-pam
tag_prefix: ^
seperator: .