python-pycurl 7.45.1-1 (aarch64) 2022-15311
9999

Status published
Submitter alexander [@T] mezon.ru
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/235330
Packages
python-pycurl-7.45.1-1.aarch64.binary
python-pycurl-7.45.1-1.aarch64.source
python-pycurl-debuginfo-7.45.1-1.aarch64.debuginfo
python-pycurl-debugsource-7.45.1-1.aarch64.binary
Build Date 2022-09-27 15:16:51 +0000 UTC
Last Updated 2022-09-30 17:12:18.321568573 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary d27bfb7116728e282fd2e7976c38e43ef0d76c88

commit d27bfb7116728e282fd2e7976c38e43ef0d76c88
Author:     Bernhard Rosenkränzer <bero@lindev.ch>
AuthorDate: Tue Sep 27 17:01:56 2022 +0200
Commit:     Bernhard Rosenkränzer <bero@lindev.ch>
CommitDate: Tue Sep 27 17:01:56 2022 +0200

    7.45.1, drop python2 cruft
---
 .abf.yml           |  2 +-
 python-pycurl.spec | 53 +++++++++--------------------------------------------
 2 files changed, 10 insertions(+), 45 deletions(-)

diff --git a/.abf.yml b/.abf.yml
index 88959aa..a225b05 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
 sources:
-  pycurl-7.44.1.tar.gz: ef2dc64486b80ee8a984adbee450a72371cdc298
+  pycurl-7.45.1.tar.gz: c63d95443d2997430396a1d46921b646c16cd011
diff --git a/python-pycurl.spec b/python-pycurl.spec
index c13b18c..46395c1 100644
--- a/python-pycurl.spec
+++ b/python-pycurl.spec
@@ -2,16 +2,15 @@
 
 Summary:	A Python interface to libcurl
 Name:		python-%{module}
-Version:	7.44.1
+Version:	7.45.1
 Release:	1
 Group:		Development/Python
 License:	LGPLv2+
 Url:		http://pycurl.io
-Source0:	https://files.pythonhosted.org/packages/47/f9/c41d6830f7bd4e70d5726d26f8564538d08ca3a7ac3db98b325f94cdcb7f/pycurl-7.44.1.tar.gz
+Source0:	https://files.pythonhosted.org/packages/source/p/pycurl/pycurl-%{version}.tar.gz
 Patch1:		pycurl-7.43.0-link.patch
 BuildRequires:	pkgconfig(libcurl)
 BuildRequires:	pkgconfig(python3)
-BuildRequires:	pkgconfig(python2)
 BuildRequires:	pkgconfig(openssl)
 %rename	python-curl
 
@@ -21,57 +20,23 @@ objects identified by a URL from a Python program, similar to the
 urllib Python module. PycURL is mature, very fast, and supports a lot
 of features.
 
-%package -n python2-%{module}
-Summary:        A Python interface to libcurl
-Group:          Development/Python
-License:        LGPLv2+
-
-%description -n python2-%{module}
-PycURL is a Python interface to libcurl. PycURL can be used to fetch
-objects identified by a URL from a Python program, similar to the
-urllib Python module. PycURL is mature, very fast, and supports a lot
-of features
-
 %prep
-%setup -qc
-mv pycurl-%{version} python2
-pushd python2
-
+%autosetup -p1 -n pycurl-%{version}
 chmod a-x examples/*py
-%autopatch -p1
-
-popd
-
-cp -a python2 python3
 
 %build
-pushd python2
-
-env CFLAGS="%{optflags} -DHAVE_CURL_OPENSSL" python2 setup.py build
-popd
-
-pushd python3
-env CFLAGS="%{optflags} -DHAVE_CURL_OPENSSL" %py3_build
+export CFLAGS="%{optflags} -DHAVE_CURL_OPENSSL"
+%py_build
 
 %check
 export PYTHONPATH=%{buildroot}%{py_platsitedir}
 python -c 'import %{module}; print(%{module}.version)'
 
 %install
-
-pushd python2
-python2 setup.py install --skip-build --root=%{buildroot} --optimize=2
-rm -rf %{buildroot}%{_datadir}/doc/pycurl
-popd
-
-pushd python3
 python setup.py install --skip-build --root=%{buildroot} --optimize=2
-rm -rf %{buildroot}%{_datadir}/doc/pycurl
  
 %files
-%doc python2/COPYING-LGPL python2/COPYING-MIT python2/ChangeLog python2/README.rst python2/examples python2/doc
-%{py_platsitedir}/*
-
-%files -n python2-%{module}
-%doc python2/COPYING-LGPL python2/COPYING-MIT python2/ChangeLog python2/README.rst python2/examples python2/doc
-%{py2_platsitedir}/
+%{py_platsitedir}/pycurl*.egg-info
+%{py_platsitedir}/pycurl.*.so
+%{py_platsitedir}/curl
+%doc %{_docdir}/pycurl
Not Available

benbullard79 [@T] cox.netNo Comment.572d 18hrs
benbullard79 [@T] cox.netNo Comment.572d 17hrs