Blame python-msldap.spec

4570e0e
%global pypi_name msldap
4570e0e
4570e0e
Name:           python-%{pypi_name}
4570e0e
Version:        0.2.5
872924d
Release:        3%{?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
Source1:        https://raw.githubusercontent.com/skelsec/msldap/master/LICENSE
4570e0e
BuildArch:      noarch
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
4570e0e
%autosetup -n %{pypi_name}-%{version}
4570e0e
rm -rf %{pypi_name}.egg-info
4570e0e
cp -a %{SOURCE1} LICENSE
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}
4570e0e
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
4570e0e
4570e0e
%changelog
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