PyPAM/PyPAM.spec

73 lines
2.0 KiB
RPMSpec
Raw Normal View History

2020-02-19 18:23:02 +08:00
Name: PyPAM
Version: 0.5.0
2024-08-14 15:27:42 +08:00
Release: 5
2020-02-19 18:23:02 +08:00
Summary: PAM bindings for Python
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
2024-08-14 15:27:42 +08:00
Patch0007: fix-compilcation-failed.patch
2020-02-19 18:23:02 +08:00
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
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
2024-08-14 15:27:42 +08:00
* 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.
2020-02-19 18:23:02 +08:00
* Fri Feb 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.5.0-1
- Package init