python-ldap3/python-ldap3.spec
bitcoffee b4dfde50c9 init
2021-06-04 05:06:37 +08:00

50 lines
1.3 KiB
RPMSpec

%{?python_enable_dependency_generator}
%global _description \
ldap3 is a strictly RFC 4510 conforming LDAP V3 pure Python client library.
%global pypi_name ldap3
Name: python-%{pypi_name}
Version: 2.8.1
Release: 1
Summary: Strictly RFC 4510 conforming LDAP V3 pure Python client library.
License: LGPLv2+
URL: https://github.com/cannatag/ldap3
Source0: https://github.com/cannatag/ldap3/archive/refs/tags/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
%description %{_description}
%package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
%description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
Python 3 version.
%prep
%autosetup -n %{pypi_name}-%{version} -p1
# remove bundled ordereddict
rm -vf %{pypi_name}/utils/ordDict.py
%build
%py3_build
%install
%py3_install
%files -n python%{python3_pkgversion}-%{pypi_name}
%license COPYING.LESSER.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%{python3_sitelib}/%{pypi_name}/
%changelog
* Mon May 31 2021 liuxin<liuxin264@huawei.com> - 2.8.1 - 1
- init package