Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
c0d21b7523
!23 Fix compilation failure
From: @zhengxiaoxiaoGitee 
Reviewed-by: @houmingyong 
Signed-off-by: @houmingyong
2024-08-14 09:14:42 +00:00
zhengxiaoxiao
901db1af44 Fix compilation failure 2024-08-14 15:27:42 +08:00
openeuler-ci-bot
9a293d33a4
!21 Fix compilation failure caused by setuptool upgrade
From: @lyn1001 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
2023-07-05 07:12:40 +00:00
lyn1001
cf014d441b Fix compilation failure caused by setuptool upgrade 2023-07-05 14:30:33 +08:00
openeuler-ci-bot
aa7571bb68
!10 [sync] PR-9: Modified the version number and open-source protocol version.
From: @openeuler-sync-bot 
Reviewed-by: @jimmy_hero 
Signed-off-by: @jimmy_hero
2022-10-18 03:42:53 +00:00
modric
d0a236422c Modified the version number and open-source protocol version.
(cherry picked from commit b84740970568395dce921f2c025d699f994ceb98)
2022-04-22 15:46:02 +08:00
openeuler-ci-bot
2c0eb39756 !5 release + 1: for pkgs affeccted by updated ones
Merge pull request !5 from DisNight/master
2020-08-18 21:17:46 +08:00
fanjiachen
7f073727d6 release + 1: for pkgs affeccted by updated ones 2020-08-18 21:01:42 +08:00
openeuler-ci-bot
c1e9b4786f !2 add yaml file
Merge pull request !2 from ultra_planet/master
2020-05-11 20:24:49 +08:00
ultra_planet
8837ceba4d add yaml file 2020-05-11 11:03:20 +08:00
3 changed files with 46 additions and 3 deletions

View File

@ -1,8 +1,8 @@
Name: PyPAM
Version: 0.5.0
Release: 1
Release: 5
Summary: PAM bindings for Python
License: LGPLv2
License: LGPLv2.1
Url: http://www.pangalactic.org/PyPAM
Source0: http://www.pangalactic.org/PyPAM/%{name}-%{version}.tar.gz
@ -12,6 +12,7 @@ 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$
@ -44,7 +45,7 @@ chmod 644 examples/pamtest.py
rm -f examples/pamexample
%check
PYTHONPATH=build/lib.linux-`uname -m`-%{python3_version}/ %{__python3} tests/PamTest.py
PYTHONPATH=build/lib.linux-`uname -m`-cpython-%{python3_version_nodots}/ %{__python3} tests/PamTest.py
%files -n python3-PyPAM
%defattr(-,root,root,-)
@ -58,5 +59,14 @@ PYTHONPATH=build/lib.linux-`uname -m`-%{python3_version}/ %{__python3} tests/Pam
%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

4
PyPAM.yaml Normal file
View File

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

View File

@ -0,0 +1,29 @@
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