53 lines
1.3 KiB
RPMSpec
53 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: 2
|
|
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/v%{version}/%{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
|
|
* Wed Nov 16 2022 wangkai <wangkai385@h-partners.com> - 2.8.1-2
|
|
- Change source url
|
|
|
|
* Mon May 31 2021 liuxin<liuxin264@huawei.com> - 2.8.1 - 1
|
|
- init package
|