2020-02-19 18:23:02 +08:00
|
|
|
Name: PyPAM
|
|
|
|
|
Version: 0.5.0
|
2023-07-05 14:30:33 +08:00
|
|
|
Release: 4
|
2020-02-19 18:23:02 +08:00
|
|
|
Summary: PAM bindings for Python
|
2022-04-22 02:23:41 +00:00
|
|
|
License: LGPLv2.1
|
2020-02-19 18:23:02 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
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
|
2023-07-05 14:30:33 +08:00
|
|
|
PYTHONPATH=build/lib.linux-`uname -m`-cpython-%{python3_version_nodots}/ %{__python3} tests/PamTest.py
|
2020-02-19 18:23:02 +08:00
|
|
|
|
|
|
|
|
%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
|
2023-07-05 14:30:33 +08:00
|
|
|
* Wed Jul 5 2023 liyanan <thistleslyn@163.com> - 0.5.0-4
|
|
|
|
|
- Fix compilation failure caused by setuptool upgrade
|
|
|
|
|
|
2022-04-22 02:23:41 +00:00
|
|
|
* Thu Apr 21 2022 wangyu<wangyu283@huawei.com> - 0.5.0-3
|
|
|
|
|
- Modified the version number and open-source protocol version.
|
|
|
|
|
|
2020-02-19 18:23:02 +08:00
|
|
|
* Fri Feb 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.0-1
|
|
|
|
|
- Package init
|