Compare commits

..

No commits in common. "c0d21b75236a377f90b2db1925185035457cc295" and "dc00b2257258c8f8a27333bef109469eb69d7c78" have entirely different histories.

3 changed files with 3 additions and 46 deletions

View File

@ -1,8 +1,8 @@
Name: PyPAM
Version: 0.5.0
Release: 5
Release: 1
Summary: PAM bindings for Python
License: LGPLv2.1
License: LGPLv2
Url: http://www.pangalactic.org/PyPAM
Source0: http://www.pangalactic.org/PyPAM/%{name}-%{version}.tar.gz
@ -12,7 +12,6 @@ Patch0003: PyPAM-0.5.0-nofree.patch
Patch0004: PyPAM-0.5.0-memory-errors.patch
Patch0005: PyPAM-0.5.0-return-value.patch
Patch0006: PyPAM-python3-support.patch
Patch0007: fix-compilcation-failed.patch
BuildRequires: python3-devel pam-devel gcc
%filter_provides_in %{python3_sitearch}/PAM*.so$
@ -45,7 +44,7 @@ chmod 644 examples/pamtest.py
rm -f examples/pamexample
%check
PYTHONPATH=build/lib.linux-`uname -m`-cpython-%{python3_version_nodots}/ %{__python3} tests/PamTest.py
PYTHONPATH=build/lib.linux-`uname -m`-%{python3_version}/ %{__python3} tests/PamTest.py
%files -n python3-PyPAM
%defattr(-,root,root,-)
@ -59,14 +58,5 @@ PYTHONPATH=build/lib.linux-`uname -m`-cpython-%{python3_version_nodots}/ %{__pyt
%doc NEWS README ChangeLog INSTALL examples
%changelog
* Wed Aug 14 2024 zhengxiaoxiao <zhengxiaoxiao2@huawei.com> - 0.5.0-5
- Fix compilation failure
* Wed Jul 5 2023 liyanan <thistleslyn@163.com> - 0.5.0-4
- Fix compilation failure caused by setuptool upgrade
* Thu Apr 21 2022 wangyu<wangyu283@huawei.com> - 0.5.0-3
- Modified the version number and open-source protocol version.
* Fri Feb 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.0-1
- Package init

View File

@ -1,4 +0,0 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA

View File

@ -1,29 +0,0 @@
From 766dd31a539ef8df187864c95999a4435f326c33 Mon Sep 17 00:00:00 2001
From: qsw333 <wangqingsan@huawei.com>
Date: Fri, 26 Jul 2024 15:57:17 +0800
Subject: [PATCH] fix compilcation failed
---
PAMmodule.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/PAMmodule.c b/PAMmodule.c
index a41d97b..7ca8fe0 100644
--- a/PAMmodule.c
+++ b/PAMmodule.c
@@ -674,8 +674,11 @@ void initPAM(void)
if (PyPAM_Error == NULL)
INITERROR;
PyDict_SetItemString(d, "error", PyPAM_Error);
-
+#if PY_VERSION_HEX >= 0x030a00f0
+ Py_SET_TYPE(&PyPAMObject_Type, &PyType_Type);
+#else
Py_TYPE(&PyPAMObject_Type) = &PyType_Type;
+#endif
PyPAMObject_Type.tp_doc = PyPAMObject_doc;
Py_INCREF(&PyPAMObject_Type);
--
2.33.0