Subpackage python2-ldap has been removed
This commit is contained in:
parent
93b235b11b
commit
cd295f0886
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
Name: python-ldap
|
Name: python-ldap
|
||||||
Version: 3.1.0
|
Version: 3.1.0
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
License: Python
|
License: Python
|
||||||
Summary: An object-oriented API to access LDAP directory servers
|
Summary: An object-oriented API to access LDAP directory servers
|
||||||
URL: http://python-ldap.org/
|
URL: http://python-ldap.org/
|
||||||
@ -23,17 +23,12 @@ BuildRequires: gcc
|
|||||||
BuildRequires: openldap-devel >= %{openldap_version}
|
BuildRequires: openldap-devel >= %{openldap_version}
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: cyrus-sasl-devel
|
BuildRequires: cyrus-sasl-devel
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-setuptools
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
# Test dependencies
|
# Test dependencies
|
||||||
BuildRequires: /usr/bin/tox
|
BuildRequires: /usr/bin/tox
|
||||||
BuildRequires: openldap-servers >= %{openldap_version}
|
BuildRequires: openldap-servers >= %{openldap_version}
|
||||||
BuildRequires: openldap-clients >= %{openldap_version}
|
BuildRequires: openldap-clients >= %{openldap_version}
|
||||||
BuildRequires: python2-coverage
|
|
||||||
BuildRequires: python2-pyasn1 >= 0.3.7
|
|
||||||
BuildRequires: python2-pyasn1-modules >= 0.1.5
|
|
||||||
BuildRequires: python3-coverage
|
BuildRequires: python3-coverage
|
||||||
BuildRequires: python3-pyasn1 >= 0.3.7
|
BuildRequires: python3-pyasn1 >= 0.3.7
|
||||||
BuildRequires: python3-pyasn1-modules >= 0.1.5
|
BuildRequires: python3-pyasn1-modules >= 0.1.5
|
||||||
@ -47,20 +42,6 @@ OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks\
|
|||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-ldap
|
|
||||||
Summary: %summary
|
|
||||||
|
|
||||||
Requires: openldap >= %{openldap_version}
|
|
||||||
Requires: python2-pyasn1 >= 0.3.7
|
|
||||||
Requires: python2-pyasn1-modules >= 0.1.5
|
|
||||||
Requires: python2-setuptools
|
|
||||||
|
|
||||||
Provides: python2-ldap%{?_isa} = %{version}-%{release}
|
|
||||||
%{?python_provide:%python_provide python2-ldap}
|
|
||||||
|
|
||||||
%description -n python2-ldap %_description
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-ldap
|
%package -n python3-ldap
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
|
||||||
@ -77,77 +58,45 @@ Provides: python3-pyldap%{?_isa} = %{version}-%{release}
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qc
|
%setup -q -n %{name}-%{version}%{?prerelease}
|
||||||
pushd %{name}-%{version}%{?prerelease}
|
|
||||||
popd
|
|
||||||
|
|
||||||
mv %{name}-%{version}%{?prerelease} python3
|
|
||||||
cp -a python{3,2}
|
|
||||||
|
|
||||||
# Fix interpreter
|
# Fix interpreter
|
||||||
find python2 -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2}|'
|
find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'
|
||||||
find python3 -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'
|
|
||||||
|
|
||||||
# Disable warnings in test to work around "'U' mode is deprecated"
|
# Disable warnings in test to work around "'U' mode is deprecated"
|
||||||
# https://github.com/python-ldap/python-ldap/issues/96
|
# https://github.com/python-ldap/python-ldap/issues/96
|
||||||
sed -i 's,-Werror,-Wignore,g' python3/tox.ini
|
sed -i 's,-Werror,-Wignore,g' tox.ini
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pushd python2
|
|
||||||
%py2_build
|
|
||||||
popd
|
|
||||||
pushd python3
|
|
||||||
%py3_build
|
%py3_build
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# don't download packages
|
# don't download packages
|
||||||
export PIP_INDEX_URL=http://host.invalid./
|
export PIP_INDEX_URL=http://host.invalid./
|
||||||
export PIP_NO_DEPS=yes
|
export PIP_NO_DEPS=yes
|
||||||
|
TOXENV=py%{python3_version_nodots} LOGLEVEL=10 tox --sitepackages
|
||||||
pushd python2
|
|
||||||
LANG=C.UTF-8 TOXENV=py27 LOGLEVEL=10 tox --sitepackages
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd python3
|
|
||||||
LANG=C.UTF-8 TOXENV=py%{python3_version_nodots} LOGLEVEL=10 tox --sitepackages
|
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd python2
|
|
||||||
%py2_install
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd python3
|
|
||||||
%py3_install
|
%py3_install
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-ldap
|
|
||||||
%license python2/LICENCE
|
|
||||||
%doc python2/CHANGES python2/README python2/TODO python2/Demo
|
|
||||||
%{python2_sitearch}/_ldap.so
|
|
||||||
%{python2_sitearch}/ldapurl.py*
|
|
||||||
%{python2_sitearch}/ldif.py*
|
|
||||||
%{python2_sitearch}/slapdtest/
|
|
||||||
%{python2_sitearch}/ldap/
|
|
||||||
%{python2_sitearch}/python_ldap-%{version}%{?prerelease}-py2.7.egg-info
|
|
||||||
|
|
||||||
%files -n python3-ldap
|
%files -n python3-ldap
|
||||||
%license python3/LICENCE
|
%license LICENCE
|
||||||
%doc python3/CHANGES python3/README python3/TODO python3/Demo
|
%doc CHANGES README TODO Demo
|
||||||
%{python3_sitearch}/_ldap.cpython-*.so
|
%{python3_sitearch}/_ldap.cpython-*.so
|
||||||
%{python3_sitearch}/ldapurl.py*
|
%{python3_sitearch}/ldapurl.py*
|
||||||
%{python3_sitearch}/ldif.py*
|
%{python3_sitearch}/ldif.py*
|
||||||
%{python3_sitearch}/__pycache__/*
|
%{python3_sitearch}/__pycache__/*
|
||||||
%{python3_sitearch}/slapdtest/
|
%{python3_sitearch}/slapdtest/
|
||||||
%{python3_sitearch}/ldap/
|
%{python3_sitearch}/ldap/
|
||||||
%{python3_sitearch}/python_ldap-%{version}%{?prerelease}-py%{python3_version}.egg-info
|
%{python3_sitearch}/python_ldap-%{version}%{?prerelease}-py%{python3_version}.egg-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 23 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-8
|
||||||
|
- Subpackage python2-ldap has been removed
|
||||||
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||||
|
|
||||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-7
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.1.0-7
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user