Blame SPECS/python-ldappool.spec

378030
%if 0%{?rhel} == 7
378030
%bcond_with    python3
378030
%bcond_without python2
378030
%else
378030
%bcond_with    python2
378030
%bcond_without python3
378030
%endif
378030
378030
%global srcname ldappool
378030
378030
Name:           python-%{srcname}
378030
378030
Version:        2.4.0
378030
Release:        9%{?dist}
378030
Url:            https://github.com/openstack/ldappool
378030
Summary:        A connection pool for python-ldap
378030
License:        MPLv1.1 and GPLv2+ and LGPLv2+
378030
Source:         https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz
378030
BuildArch:      noarch
378030
378030
%global _description\
378030
A simple connector pool for python-ldap.\
378030
\
378030
The pool keeps LDAP connectors alive and let you reuse them,\
378030
drastically reducing the time spent to initiate a ldap connection.\
378030
\
378030
The pool has useful features like:\
378030
\
378030
- transparent re-connection on failures or server restarts\
378030
- configurable pool size and connectors timeouts\
378030
- configurable max lifetime for connectors\
378030
- a context manager to simplify acquiring and releasing a connector
378030
378030
%description %_description
378030
378030
%if 0%{?with_python2}
378030
%package -n python2-%{srcname}
378030
Summary: %summary
378030
Requires:       python-ldap
378030
Requires:       python-prettytable
378030
BuildRequires:  python2-devel
378030
BuildRequires:  python-ldap
378030
BuildRequires:  python-prettytable
378030
BuildRequires:  python2-pbr
378030
BuildRequires:  python2-stestr
378030
BuildRequires:  python2-testtools
378030
BuildRequires:  python2-testresources
378030
%{?python_provide:%python_provide python2-%{srcname}}
378030
378030
%description -n python2-%{srcname} %_description
378030
%endif
378030
378030
%if 0%{?with_python3}
378030
%package -n python3-%{srcname}
378030
Summary: %summary
378030
Requires:       python3-ldap
378030
Requires:       python3-prettytable
378030
BuildRequires:  python3-devel
378030
BuildRequires:  python3-pyldap
378030
BuildRequires:  python3-pbr
378030
BuildRequires:  python3-stestr
378030
BuildRequires:  python3-testtools
378030
BuildRequires:  python3-testresources
378030
%{?python_provide:%python_provide python3-%{srcname}}
378030
378030
%description -n python3-%{srcname} %_description
378030
%endif
378030
378030
%prep
378030
%setup -q -n %{srcname}-%{version}
378030
378030
%build
378030
%if 0%{?with_python3}
378030
%py3_build
378030
%endif
378030
378030
%if 0%{?with_python2}
378030
%py2_build
378030
%endif
378030
378030
%install
378030
%if 0%{?with_python3}
378030
%py3_install
378030
%endif
378030
378030
%if 0%{?with_python2}
378030
%py2_install
378030
%endif
378030
378030
%check
378030
%if 0%{?with_python3}
378030
PYTHON=python3 stestr-3 run
378030
%endif
378030
378030
%if 0%{?with_python2}
378030
PYTHON=python2 stestr-2 run
378030
%endif
378030
378030
# FIXME: add license files as soon as upstream adds them
378030
# https://github.com/mozilla-services/ldappool/issues/2
378030
378030
%if 0%{?with_python3}
378030
%files -n python3-%{srcname}
378030
%doc README.rst
378030
%{python3_sitelib}/%{srcname}
378030
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info
378030
%endif
378030
378030
%if 0%{?with_python2}
378030
%files -n python2-%{srcname}
378030
%doc README.rst
378030
%{python2_sitelib}/%{srcname}
378030
%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info
378030
%endif
378030
378030
%changelog
378030
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-9
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
378030
378030
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-8
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
378030
378030
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-7
378030
- Rebuilt for Python 3.9
378030
378030
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-6
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
378030
378030
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-5
378030
- Rebuilt for Python 3.8.0rc1 (#1748018)
378030
378030
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.4.0-4
378030
- Rebuilt for Python 3.8
378030
378030
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
378030
378030
* Wed Feb 20 2019 Alfredo Moralejo <amoralej@redhat.com> - 2.4.0-2
378030
- Fix name for python-ldap requirement for compatibility with CentOS7 builds.
378030
378030
* Wed Feb 13 2019 Alfredo Moralejo <amoralej@redhat.com> - 2.4.0-1
378030
- Update to 2.4.0
378030
378030
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
378030
378030
* Thu Oct 11 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-5
378030
- Python2 binary package has been removed
378030
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
378030
378030
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
378030
378030
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-3
378030
- Rebuilt for Python 3.7
378030
378030
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-2
378030
- Rebuilt for Python 3.7
378030
378030
* Fri Apr 13 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.1.0-1
378030
- Update to version 2.1.0 and run tests
378030
- Add a Python 3 subpackage
378030
- Add dependency on python-setuptools
378030
378030
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-12
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
378030
378030
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0-11
378030
- Update Python 2 dependency declarations to new packaging standards
378030
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
378030
378030
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0-10
378030
- Python 2 binary package renamed to python2-ldappool
378030
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
378030
378030
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-9
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
378030
378030
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-8
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
378030
378030
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
378030
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
378030
378030
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
378030
378030
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
378030
378030
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
378030
378030
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
378030
378030
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
378030
378030
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-1
378030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
378030
378030
* Tue Feb 28 2012 Haïkel Guémar <hguemar@fedoraproject.org> - 1.0-0
378030
- initial packaging
378030