diff --git a/0001-craete-setup.py-file-of-2.0.2-file.patch b/0001-craete-setup.py-file-of-2.0.2-file.patch new file mode 100644 index 0000000000000000000000000000000000000000..bd45bede416806ecd6affc4a62d43b8dd7765a9d --- /dev/null +++ b/0001-craete-setup.py-file-of-2.0.2-file.patch @@ -0,0 +1,28 @@ +From 995ce6884b539017fa0bfb44f7cff935ef443ba3 Mon Sep 17 00:00:00 2001 +From: wubijie +Date: Mon, 20 Feb 2023 16:17:59 +0800 +Subject: [PATCH] craete setup.py file of 2.0.2 file + +--- + setup.py | 9 +++++++++ + 1 file changed, 9 insertions(+) + create mode 100644 setup.py + +diff --git a/setup.py b/setup.py +new file mode 100644 +index 0000000..fb2f312 +--- /dev/null ++++ b/setup.py +@@ -0,0 +1,9 @@ ++#!/usr/bin/env python ++ ++from setuptools import setup ++ ++if __name__ == "__main__": ++ setup( ++ name = "pam", ++ version = "2.0.2", ++) +-- +2.33.0 + diff --git a/python-pam-1.8.4.tar.gz b/python-pam-1.8.4.tar.gz deleted file mode 100644 index 27d0d7b09a40cfb8db0d29f49b5ddd5772b6e23a..0000000000000000000000000000000000000000 Binary files a/python-pam-1.8.4.tar.gz and /dev/null differ diff --git a/python-pam-2.0.2.tar.gz b/python-pam-2.0.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..904cc6d78f2308c95226f907e12dde17c1f6291b Binary files /dev/null and b/python-pam-2.0.2.tar.gz differ diff --git a/python-pam.spec b/python-pam.spec index ba0ceb8effb533d8eaf24e8a477e42683fb78acc..376c389182eb5d95b2ba15f1553b639c08a275d4 100644 --- a/python-pam.spec +++ b/python-pam.spec @@ -1,10 +1,11 @@ Name: python-pam -Version: 1.8.4 +Version: 2.0.2 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 +Patch0: 0001-craete-setup.py-file-of-2.0.2-file.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -22,7 +23,7 @@ This module provides an authenticate function that allows the caller to authenticate a given username / password against the PAM system on Linux. %prep -%autosetup +%autosetup -p1 %build %py3_build @@ -33,10 +34,12 @@ authenticate a given username / password against the PAM system on Linux. %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* +%{python3_sitelib}/pam/* +%{python3_sitelib}/pam*-%{version}-py*.egg-info %changelog +* Fri Feb 17 2023 wubijie - 2.0.2-1 +- Update package to version 2.0.2 + * Mon Jun 27 2022 lin zhang - 1.8.4-1 - Initial packaging