| |
@@ -1,20 +1,13 @@
|
| |
- %if 0%{?rhel} && 0%{?rhel} <= 7
|
| |
- %bcond_with python3
|
| |
- %else
|
| |
- %bcond_without python3
|
| |
- %endif
|
| |
+ %global pypi_name ldap3
|
| |
|
| |
- %global modname ldap3
|
| |
-
|
| |
- Name: python-%{modname}
|
| |
- Version: 2.4
|
| |
+ Name: python-%{pypi_name}
|
| |
+ Version: 2.5.1
|
| |
Release: 1%{?dist}
|
| |
Summary: Strictly RFC 4511 conforming LDAP V3 pure Python client
|
| |
|
| |
License: LGPLv2+
|
| |
URL: https://github.com/cannatag/ldap3
|
| |
- Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
| |
-
|
| |
+ Source0: %{pypi_source}
|
| |
Patch0002: 0002-unbundle-ordereddict.patch
|
| |
|
| |
BuildArch: noarch
|
| |
@@ -24,69 +17,76 @@
|
| |
|
| |
%description %{_description}
|
| |
|
| |
- %package -n python2-%{modname}
|
| |
+ %package -n python2-%{pypi_name}
|
| |
Summary: %{summary}
|
| |
- %{?python_provide:%python_provide python2-%{modname}}
|
| |
+ %{?python_provide:%python_provide python2-%{pypi_name}}
|
| |
BuildRequires: python2-devel
|
| |
- %if 0%{?rhel} && 0%{?rhel} <= 7
|
| |
- BuildRequires: python-setuptools
|
| |
- Requires: python-pyasn1
|
| |
- %else
|
| |
BuildRequires: python2-setuptools
|
| |
Requires: python2-pyasn1
|
| |
- %endif
|
| |
- Requires: python-backports-ssl_match_hostname
|
| |
+ Requires: python2-backports-ssl_match_hostname
|
| |
|
| |
- %description -n python2-%{modname} %{_description}
|
| |
+ %description -n python2-%{pypi_name} %{_description}
|
| |
|
| |
Python 2 version.
|
| |
|
| |
- %if %{with python3}
|
| |
- %package -n python3-%{modname}
|
| |
+ %package -n python%{python3_pkgversion}-%{pypi_name}
|
| |
Summary: %{summary}
|
| |
- %{?python_provide:%python_provide python3-%{modname}}
|
| |
- BuildRequires: python3-devel
|
| |
- BuildRequires: python3-setuptools
|
| |
- Requires: python3-pyasn1
|
| |
- Requires: python-backports-ssl_match_hostname
|
| |
+ %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
|
| |
+ BuildRequires: python%{python3_pkgversion}-devel
|
| |
+ BuildRequires: python%{python3_pkgversion}-setuptools
|
| |
+ Requires: python%{python3_pkgversion}-pyasn1
|
| |
+ Requires: python2-backports-ssl_match_hostname
|
| |
|
| |
- %description -n python3-%{modname} %{_description}
|
| |
+ %description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
|
| |
|
| |
Python 3 version.
|
| |
- %endif
|
| |
|
| |
%prep
|
| |
- %autosetup -n %{modname}-%{version} -p1
|
| |
+ %autosetup -n %{pypi_name}-%{version} -p1
|
| |
+
|
| |
# remove bundled ordereddict
|
| |
- rm -vf %{modname}/utils/ordDict.py
|
| |
+ rm -vf %{pypi_name}/utils/ordDict.py
|
| |
|
| |
%build
|
| |
%py2_build
|
| |
- %if %{with python3}
|
| |
%py3_build
|
| |
- %endif
|
| |
|
| |
%install
|
| |
%py2_install
|
| |
- %if %{with python3}
|
| |
%py3_install
|
| |
- %endif
|
| |
|
| |
- %files -n python2-%{modname}
|
| |
+ %files -n python2-%{pypi_name}
|
| |
%license COPYING.LESSER.txt
|
| |
%doc README.rst
|
| |
- %{python2_sitelib}/%{modname}-*.egg-info/
|
| |
- %{python2_sitelib}/%{modname}/
|
| |
+ %{python2_sitelib}/%{pypi_name}-*.egg-info/
|
| |
+ %{python2_sitelib}/%{pypi_name}/
|
| |
|
| |
- %if %{with python3}
|
| |
- %files -n python3-%{modname}
|
| |
+ %files -n python%{python3_pkgversion}-%{pypi_name}
|
| |
%license COPYING.LESSER.txt
|
| |
%doc README.rst
|
| |
- %{python3_sitelib}/%{modname}-*.egg-info/
|
| |
- %{python3_sitelib}/%{modname}/
|
| |
- %endif
|
| |
+ %{python3_sitelib}/%{pypi_name}-*.egg-info/
|
| |
+ %{python3_sitelib}/%{pypi_name}/
|
| |
|
| |
%changelog
|
| |
+ * Mon Nov 12 2018 Avram Lubkin <aviso@rockhopper.net> - 2.5.1-1
|
| |
+ - Update to 2.5.1
|
| |
+ - Build Python 3 packages for EPEL
|
| |
+
|
| |
+ * Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5-3
|
| |
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
| |
+
|
| |
+ * Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.5-2
|
| |
+ - Rebuilt for Python 3.7
|
| |
+
|
| |
+ * Mon Apr 16 2018 Michal Cyprian <mcyprian@redhat.com> - 2.5-1
|
| |
+ - Update to 2.5
|
| |
+
|
| |
+ * Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
| |
+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
| |
+
|
| |
+ * Tue Jan 23 2018 Igor Gnatenko <ignatenko@redhat.com> - 2.4.1-1
|
| |
+ - Update to 2.4.1
|
| |
+
|
| |
* Thu Nov 16 2017 Michal Cyprian <mcyprian@redhat.com> - 2.4-1
|
| |
- Update to 2.4
|
| |
|
| |
Update to 2.51
Include Python 3 packages in EPEL
Koji Build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=30863199