Python 2 binary package renamed to python2-ldap

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-08-19 09:41:19 -04:00
parent 72a2bc613a
commit 65963d2934

View File

@ -2,7 +2,7 @@
Name: python-ldap Name: python-ldap
Version: 2.4.25 Version: 2.4.25
Release: 6%{?dist} Release: 7%{?dist}
Epoch: 0 Epoch: 0
License: Python License: Python
Group: System Environment/Libraries Group: System Environment/Libraries
@ -15,9 +15,7 @@ Source0: http://pypi.python.org/packages/source/p/python-ldap/python-ldap-%{vers
Patch0: python-ldap-2.4.16-dirs.patch Patch0: python-ldap-2.4.16-dirs.patch
### Dependencies ### ### Dependencies ###
Requires: openldap
# LDAP controls, extop, syncrepl require pyasn1 # LDAP controls, extop, syncrepl require pyasn1
Requires: python-pyasn1, python-pyasn1-modules
### Build Dependencies ### ### Build Dependencies ###
BuildRequires: openldap-devel BuildRequires: openldap-devel
@ -31,12 +29,22 @@ BuildRequires: cyrus-sasl-devel
%filter_setup %filter_setup
} }
%description %global _description\
python-ldap provides an object-oriented API for working with LDAP within python-ldap provides an object-oriented API for working with LDAP within\
Python programs. It allows access to LDAP directory servers by wrapping the Python programs. It allows access to LDAP directory servers by wrapping the\
OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks OpenLDAP 2.x libraries, and contains modules for other LDAP-related tasks\
(including processing LDIF, LDAPURLs, LDAPv3 schema, etc.). (including processing LDIF, LDAPURLs, LDAPv3 schema, etc.).
%description %_description
%package -n python2-ldap
Summary: %summary
Requires: openldap
Requires: python-pyasn1, python-pyasn1-modules
%{?python_provide:%python_provide python2-ldap}
%description -n python2-ldap %_description
%prep %prep
%setup -q -n python-ldap-%{version} %setup -q -n python-ldap-%{version}
%patch0 -p1 -b .dirs %patch0 -p1 -b .dirs
@ -55,7 +63,7 @@ sed -i 's|#! python|#!/usr/bin/python|g' Demo/simplebrowse.py
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
%files %files -n python2-ldap
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc LICENCE CHANGES README TODO Demo %doc LICENCE CHANGES README TODO Demo
%{python_sitearch}/_ldap.so %{python_sitearch}/_ldap.so
@ -66,6 +74,10 @@ sed -i 's|#! python|#!/usr/bin/python|g' Demo/simplebrowse.py
%{python_sitearch}/python_ldap-%{version}-*.egg-info %{python_sitearch}/python_ldap-%{version}-*.egg-info
%changelog %changelog
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0:2.4.25-7
- Python 2 binary package renamed to python2-ldap
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.25-6 * Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:2.4.25-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild