Compare commits
10 Commits
dc00b22572
...
c0d21b7523
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0d21b7523 | ||
|
|
901db1af44 | ||
|
|
9a293d33a4 | ||
|
|
cf014d441b | ||
|
|
aa7571bb68 | ||
|
|
d0a236422c | ||
|
|
2c0eb39756 | ||
|
|
7f073727d6 | ||
|
|
c1e9b4786f | ||
|
|
8837ceba4d |
16
PyPAM.spec
16
PyPAM.spec
@ -1,8 +1,8 @@
|
|||||||
Name: PyPAM
|
Name: PyPAM
|
||||||
Version: 0.5.0
|
Version: 0.5.0
|
||||||
Release: 1
|
Release: 5
|
||||||
Summary: PAM bindings for Python
|
Summary: PAM bindings for Python
|
||||||
License: LGPLv2
|
License: LGPLv2.1
|
||||||
Url: http://www.pangalactic.org/PyPAM
|
Url: http://www.pangalactic.org/PyPAM
|
||||||
Source0: http://www.pangalactic.org/PyPAM/%{name}-%{version}.tar.gz
|
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
|
Patch0004: PyPAM-0.5.0-memory-errors.patch
|
||||||
Patch0005: PyPAM-0.5.0-return-value.patch
|
Patch0005: PyPAM-0.5.0-return-value.patch
|
||||||
Patch0006: PyPAM-python3-support.patch
|
Patch0006: PyPAM-python3-support.patch
|
||||||
|
Patch0007: fix-compilcation-failed.patch
|
||||||
|
|
||||||
BuildRequires: python3-devel pam-devel gcc
|
BuildRequires: python3-devel pam-devel gcc
|
||||||
%filter_provides_in %{python3_sitearch}/PAM*.so$
|
%filter_provides_in %{python3_sitearch}/PAM*.so$
|
||||||
@ -44,7 +45,7 @@ chmod 644 examples/pamtest.py
|
|||||||
rm -f examples/pamexample
|
rm -f examples/pamexample
|
||||||
|
|
||||||
%check
|
%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
|
%files -n python3-PyPAM
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -58,5 +59,14 @@ PYTHONPATH=build/lib.linux-`uname -m`-%{python3_version}/ %{__python3} tests/Pam
|
|||||||
%doc NEWS README ChangeLog INSTALL examples
|
%doc NEWS README ChangeLog INSTALL examples
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Feb 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.0-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
4
PyPAM.yaml
Normal file
4
PyPAM.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: NA
|
||||||
|
src_repo: NA
|
||||||
|
tag_prefix: NA
|
||||||
|
seperator: NA
|
||||||
29
fix-compilcation-failed.patch
Normal file
29
fix-compilcation-failed.patch
Normal 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
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user