|
|
|
@ -5,43 +5,37 @@
|
|
|
|
|
%bcond_with python3
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# python2 is not available on Fedora and el8+
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
|
|
|
|
# python2 is not available on RHEL > 7 and not needed on Fedora > 29
|
|
|
|
|
%if 0%{?rhel} > 7 || 0%{?fedora} > 29
|
|
|
|
|
%bcond_with python2
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without python2
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# test dependencies are not available on el9+
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%bcond_without tests
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global modname pycurl
|
|
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
|
|
|
|
Version: 7.43.0.6
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Version: 7.43.0.2
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: A Python interface to libcurl
|
|
|
|
|
|
|
|
|
|
License: LGPLv2+ or MIT
|
|
|
|
|
URL: http://pycurl.sourceforge.net/
|
|
|
|
|
# reported as unavailable: https://github.com/pycurl/pycurl/issues/651
|
|
|
|
|
# Source0: https://dl.bintray.com/pycurl/pycurl/pycurl-%%{version}.tar.gz
|
|
|
|
|
Source0: https://github.com/pycurl/pycurl/archive/REL_7_43_0_6.tar.gz#/pycurl-%{version}.tar.gz
|
|
|
|
|
Source0: https://dl.bintray.com/pycurl/pycurl/pycurl-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# make the code compile against python-3.10.0a1 (#1890442)
|
|
|
|
|
Patch1: 0001-python-pycurl-7.43.0.6-python-3.10.patch
|
|
|
|
|
# fix programming mistakes detected by static analyzers
|
|
|
|
|
# upstream pull request: https://github.com/pycurl/pycurl/pull/550
|
|
|
|
|
Patch1: 0001-python-pycurl-7.43.0.2-static-analysis.patch
|
|
|
|
|
|
|
|
|
|
# drop link-time vs. run-time TLS backend check (#1446850)
|
|
|
|
|
Patch2: 0002-python-pycurl-7.43.0-tls-backend.patch
|
|
|
|
|
|
|
|
|
|
# fix populating list of decoded strings (#1792213)
|
|
|
|
|
Patch3: 0003-python-pycurl-7.43.0.2-decode-cookie-info.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: vsftpd
|
|
|
|
|
|
|
|
|
|
# During its initialization, PycURL checks that the actual libcurl version
|
|
|
|
@ -64,6 +58,8 @@ of features.
|
|
|
|
|
Summary: Python interface to libcurl for Python 2
|
|
|
|
|
%{?python_provide:%python_provide python2-%{modname}}
|
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
|
BuildRequires: python2-bottle
|
|
|
|
|
BuildRequires: python2-nose
|
|
|
|
|
Requires: libcurl%{?_isa} >= %{libcurl_ver}
|
|
|
|
|
|
|
|
|
|
Provides: %{modname} = %{version}-%{release}
|
|
|
|
@ -82,14 +78,8 @@ Python 2 version.
|
|
|
|
|
Summary: Python interface to libcurl for Python 3
|
|
|
|
|
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: python3-bottle
|
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
|
%global nosetests nosetests-%{python3_version} -v
|
|
|
|
|
%else
|
|
|
|
|
%global nosetests true
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
Requires: libcurl%{?_isa} >= %{libcurl_ver}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{modname}
|
|
|
|
@ -102,19 +92,11 @@ Python 3 version.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{modname}-REL_7_43_0_6 -p1
|
|
|
|
|
|
|
|
|
|
# remove windows-specific build script
|
|
|
|
|
rm -f winbuild.py
|
|
|
|
|
sed -e 's| winbuild.py||' -i Makefile
|
|
|
|
|
%autosetup -n %{modname}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
# remove binaries packaged by upstream
|
|
|
|
|
rm -f tests/fake-curl/libcurl/*.so
|
|
|
|
|
|
|
|
|
|
# temporarily remove a failing test-case (#1927655)
|
|
|
|
|
# upstream issue: https://github.com/curl/curl/issues/6615
|
|
|
|
|
rm -f tests/failonerror_test.py
|
|
|
|
|
|
|
|
|
|
# remove a test-case that relies on sftp://web.sourceforge.net being available
|
|
|
|
|
rm -f tests/ssh_key_cb_test.py
|
|
|
|
|
|
|
|
|
@ -129,18 +111,11 @@ sed -e 's/ --show-skipped//' \
|
|
|
|
|
-e 's/ --with-flaky//' \
|
|
|
|
|
-i tests/run.sh
|
|
|
|
|
|
|
|
|
|
# use %%{python3} instead of python to invoke tests, to make them work on f34
|
|
|
|
|
sed -e 's|python |%{python3} |' -i tests/ext/test-suite.sh
|
|
|
|
|
sed -e 's|^#! */usr/bin/env python$|#! /usr/bin/env %{python3}|' \
|
|
|
|
|
-i tests/*.py tests/bin/* setup.py
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if %{with python2}
|
|
|
|
|
%{python2} setup.py docstrings
|
|
|
|
|
%py2_build -- --with-openssl
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%{python3} setup.py docstrings
|
|
|
|
|
%py3_build -- --with-openssl
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -156,14 +131,15 @@ rm -rf %{buildroot}%{_datadir}/doc/pycurl
|
|
|
|
|
|
|
|
|
|
%if %{with python3}
|
|
|
|
|
%check
|
|
|
|
|
# relax crypto policy for the test-suite to make it pass again (#1863711)
|
|
|
|
|
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=XXX
|
|
|
|
|
export OPENSSL_CONF=
|
|
|
|
|
|
|
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitearch}
|
|
|
|
|
export PYCURL_SSL_LIBRARY=openssl
|
|
|
|
|
export PYCURL_VSFTPD_PATH=vsftpd
|
|
|
|
|
make test PYTHON=%{__python3} NOSETESTS="%{nosetests}" PYFLAKES=true
|
|
|
|
|
|
|
|
|
|
# relax crypto policy for the test-suite to make it pass again (#1611739)
|
|
|
|
|
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=XXX
|
|
|
|
|
export OPENSSL_CONF=
|
|
|
|
|
|
|
|
|
|
make test PYTHON=%{__python3} NOSETESTS="nosetests-%{python3_version} -v" PYFLAKES=:
|
|
|
|
|
rm -fv tests/fake-curl/libcurl/*.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -186,81 +162,18 @@ rm -fv tests/fake-curl/libcurl/*.so
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 7.43.0.6-8
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 7.43.0.6-7
|
|
|
|
|
- Rebuilt for RHEL 9 BETA for openssl 3.0
|
|
|
|
|
Related: rhbz#1971065
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 7.43.0.6-6
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Feb 17 2021 Kamil Dudka <kdudka@redhat.com> - 7.43.0.6-5
|
|
|
|
|
- temporarily remove a failing test-case (#1927655)
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7.43.0.6-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 18 2021 Kamil Dudka <kdudka@redhat.com> - 7.43.0.6-3
|
|
|
|
|
- make build dependencies for upstream tests optional
|
|
|
|
|
|
|
|
|
|
* Tue Oct 27 2020 Kamil Dudka <kdudka@redhat.com> - 7.43.0.6-2
|
|
|
|
|
- make the code compile against python-3.10.0a1 (#1890442)
|
|
|
|
|
|
|
|
|
|
* Thu Sep 03 2020 Kamil Dudka <kdudka@redhat.com> - 7.43.0.6-1
|
|
|
|
|
- update to 7.43.0.6
|
|
|
|
|
|
|
|
|
|
* Tue Aug 04 2020 Kamil Dudka <kdudka@redhat.com> - 7.43.0.5-6
|
|
|
|
|
- relax crypto policy for the test-suite to make it pass again (#1863711)
|
|
|
|
|
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.43.0.5-5
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7.43.0.5-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 23 2020 Kamil Dudka <kdudka@redhat.com> - 7.43.0.5-3
|
|
|
|
|
- do not use discontinued %%_python_bytecompile_extra macro
|
|
|
|
|
- explicitly require python3-setuptools for build
|
|
|
|
|
|
|
|
|
|
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 7.43.0.5-2
|
|
|
|
|
- Rebuilt for Python 3.9
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Kamil Dudka <kdudka@redhat.com> - 7.43.0.5-1
|
|
|
|
|
- update to 7.43.0.5
|
|
|
|
|
|
|
|
|
|
* Wed Jan 15 2020 Kamil Dudka <kdudka@redhat.com> - 7.43.0.4-1
|
|
|
|
|
- update to 7.43.0.4
|
|
|
|
|
|
|
|
|
|
* Fri Nov 15 2019 Kamil Dudka <kdudka@redhat.com> - 7.43.0.2-10
|
|
|
|
|
- do not build python2-pycurl on f32+
|
|
|
|
|
|
|
|
|
|
* Tue Sep 24 2019 Miro Hrončok <mhroncok@redhat.com> - 7.43.0.2-9
|
|
|
|
|
- Drop unused Python 2 BuildRequires
|
|
|
|
|
|
|
|
|
|
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 7.43.0.2-8
|
|
|
|
|
- Rebuilt for Python 3.8
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.43.0.2-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Kamil Dudka <kdudka@redhat.com> - 7.43.0.2-6
|
|
|
|
|
- reintroduce the python2-pycurl subpackage on Fedora (#1672061)
|
|
|
|
|
|
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7.43.0.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 7.43.0.2-4
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Tue Jan 29 2019 Kamil Dudka <kdudka@redhat.com> - 7.43.0.2-4
|
|
|
|
|
- fix programming mistakes detected by static analyzers
|
|
|
|
|
* Wed Jan 22 2020 Kamil Dudka <kdudka@redhat.com> - 7.43.0.2-4
|
|
|
|
|
- fix populating list of decoded strings (#1792213)
|
|
|
|
|
- fix programming mistakes detected by static analyzers (#1666003)
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 7.43.0.2-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
* Thu Dec 20 2018 Kamil Dudka <kdudka@redhat.com> - 7.43.0.2-3
|
|
|
|
|
- drop build-time (%%check-only) dependency on pyflakes (#1661168)
|
|
|
|
|
|
|
|
|
|
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 7.43.0.2-2
|
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
* Tue Aug 07 2018 Kamil Dudka <kdudka@redhat.com> - 7.43.0.2-2
|
|
|
|
|
- relax crypto policy for the test-suite to make it pass again (#1611739)
|
|
|
|
|
|
|
|
|
|
* Mon Jun 04 2018 Kamil Dudka <kdudka@redhat.com> - 7.43.0.2-1
|
|
|
|
|
- update to 7.43.0.2
|
|
|
|
|