4570e0e
%global pypi_name msldap
4570e0e
4570e0e
Name:           python-%{pypi_name}
1093e3c
Version:        0.3.4
1093e3c
Release:        1%{?dist}
4570e0e
Summary:        Python library to play with MS LDAP
4570e0e
4570e0e
License:        MIT
4570e0e
URL:            https://github.com/skelsec/msldap
4570e0e
Source0:        %{pypi_source}
4570e0e
BuildArch:      noarch
871afd0
Patch0:         prompt-toolkit_support_a_recent_version.patch
4570e0e
4570e0e
%description
4570e0e
Python library to play with MS LDAP.
4570e0e
4570e0e
%package -n     python3-%{pypi_name}
4570e0e
Summary:        %{summary}
4570e0e
4570e0e
BuildRequires:  python3-devel
4570e0e
BuildRequires:  python3-setuptools
4570e0e
%{?python_provide:%python_provide python3-%{pypi_name}}
4570e0e
4570e0e
%description -n python3-%{pypi_name}
4570e0e
Python library to play with MS LDAP.
4570e0e
4570e0e
%prep
871afd0
%autosetup -n %{pypi_name}-%{version} -p 2
4570e0e
rm -rf %{pypi_name}.egg-info
4570e0e
sed -i -e '/^#!\//, 1d' %{pypi_name}/{*.py,*/*.py,*/*/*.py}
4570e0e
sed -i -e 's/ldap3<2.5.2/ldap3/g' setup.py
4570e0e
4570e0e
%build
4570e0e
%py3_build
4570e0e
4570e0e
%install
4570e0e
%py3_install
4570e0e
4570e0e
%files -n python3-%{pypi_name}
4570e0e
%doc README.md
4570e0e
%license LICENSE
4570e0e
%{_bindir}/msldap
4570e0e
%{python3_sitelib}/%{pypi_name}
1399ad1
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/
4570e0e
4570e0e
%changelog
1093e3c
* Tue Jun 02 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.4-1
1093e3c
- Update to latest upstream release 0.3.4 (rhbz#1833839)
1093e3c
d9745e3
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.2.14-3
d9745e3
- Rebuilt for Python 3.9
d9745e3
871afd0
* Thu May 14 2020 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.2.14-2
871afd0
- include a patch to work with newer prompt_toolkit
871afd0
5049cba
* Tue Apr 21 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.14-1
5049cba
- Update to latest upstream release 0.2.14 (rhbz#1825710)
5049cba
bc5eeb5
* Wed Apr 08 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.13-1
bc5eeb5
- Update to latest upstream release 0.2.13 (rhbz#1815002)
bc5eeb5
3169576
* Tue Apr 07 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.12-1
3169576
- Update to latest upstream release 0.2.12 (rhbz#1815002)
3169576
57b0dee
* Mon Apr 06 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.11-1
57b0dee
- Update to latest upstream release 0.2.11 (rhbz#1815002)
57b0dee
1399ad1
* Mon Mar 16 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.10-1
8c8fa72
- LICENSE file is no in the source tarball
8c8fa72
- Update to latest upstream release 0.2.10 (rhbz#1815002)
1399ad1
1399ad1
* Tue Mar 03 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.7-1
1399ad1
- Update to latest upstream release 0.2.7
1399ad1
872924d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-3
872924d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
872924d
4570e0e
* Thu Jan 23 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.5-2
4570e0e
- Fix requirement (rhbz#1790355)
4570e0e
4570e0e
* Sun Jan 12 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.2.5-1
4570e0e
- Initial package