125 Star 0 Fork 10

src-openEuler/PyPAM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
PyPAM.spec 1.95 KB
一键复制 编辑 原始数据 按行查看 历史
zhengxiaoxiao 提交于 2024-08-14 16:49 . Fix compilation failure
Name: PyPAM
Version: 0.5.0
Release: 5
Summary: PAM bindings for Python
License: LGPLv2.1
Url: http://www.pangalactic.org/PyPAM
Source0: http://www.pangalactic.org/PyPAM/%{name}-%{version}.tar.gz
Patch0001: PyPAM-dlopen.patch
Patch0002: PyPAM-0.5.0-dealloc.patch
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$
%filter_setup
%global _description\
PAM (Pluggable Authentication Module) bindings for Python.
%description %_description
%package -n python3-PyPAM
Summary: PAM bindings for Python 3
BuildRequires: python3-devel
%description -n python3-PyPAM
PAM (Pluggable Authentication Module) bindings for Python 3.
%package_help
%prep
%autosetup -n PyPAM-%{version} -p1
rm -rf build dist
%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{__python3} setup.py build
%install
%{__python3} setup.py install --root=$RPM_BUILD_ROOT
chmod 644 examples/pamtest.py
rm -f examples/pamexample
%check
PYTHONPATH=build/lib.linux-`uname -m`-cpython-%{python3_version_nodots}/ %{__python3} tests/PamTest.py
%files -n python3-PyPAM
%defattr(-,root,root,-)
%doc AUTHORS
%license COPYING
%{python3_sitearch}/PAM*.so
%{python3_sitearch}/*.egg-info
%files help
%defattr(-,root,root)
%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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/PyPAM.git
git@gitee.com:src-openeuler/PyPAM.git
src-openeuler
PyPAM
PyPAM
master

搜索帮助