forked from pool/python-pycurl
- Switch to %pyproject_*.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycurl?expand=0&rev=112
This commit is contained in:
15
_service
Normal file
15
_service
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="versionprefix">7.45.3+git</param>
|
||||||
|
<param name="url">https://github.com/pycurl/pycurl.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">main</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
</service>
|
||||||
|
<service name="tar" mode="buildtime"/>
|
||||||
|
<service name="recompress" mode="buildtime">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">gz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="manual" />
|
||||||
|
</services>
|
@@ -1,8 +1,10 @@
|
|||||||
Index: pycurl-7.43.0/tests/runwsgi.py
|
---
|
||||||
===================================================================
|
tests/runwsgi.py | 4 ++--
|
||||||
--- pycurl-7.43.0.orig/tests/runwsgi.py
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
+++ pycurl-7.43.0/tests/runwsgi.py
|
|
||||||
@@ -48,10 +48,10 @@ def start_bottle_server(app, port, serve
|
--- a/tests/runwsgi.py
|
||||||
|
+++ b/tests/runwsgi.py
|
||||||
|
@@ -56,10 +56,10 @@ def start_bottle_server(app, port, serve
|
||||||
server_thread.daemon = True
|
server_thread.daemon = True
|
||||||
server_thread.start()
|
server_thread.start()
|
||||||
|
|
||||||
|
@@ -1,3 +1,7 @@
|
|||||||
|
---
|
||||||
|
tests/ssh_key_cb_test.py | 31 +++++++++++++++++++++++--------
|
||||||
|
1 file changed, 23 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
--- a/tests/ssh_key_cb_test.py
|
--- a/tests/ssh_key_cb_test.py
|
||||||
+++ b/tests/ssh_key_cb_test.py
|
+++ b/tests/ssh_key_cb_test.py
|
||||||
@@ -33,8 +33,11 @@ class SshKeyCbTest(unittest.TestCase):
|
@@ -33,8 +33,11 @@ class SshKeyCbTest(unittest.TestCase):
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 9 09:38:48 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
- Switch to %pyproject_*.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 4 14:25:56 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
Fri Oct 4 14:25:56 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||||
|
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
%define psuffix %{nil}
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
%define upversion 7.45.3
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pycurl%{psuffix}
|
Name: python-pycurl%{psuffix}
|
||||||
Version: 7.45.3
|
Version: 7.45.3
|
||||||
@@ -33,6 +34,7 @@ Summary: PycURL -- cURL library module
|
|||||||
License: LGPL-2.1-or-later AND MIT
|
License: LGPL-2.1-or-later AND MIT
|
||||||
URL: http://pycurl.io/
|
URL: http://pycurl.io/
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pycurl/pycurl-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pycurl/pycurl-%{version}.tar.gz
|
||||||
|
# Source: pycurl-%%{version}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE increase_test_timeout.diff -- Increase the timeout in a test so it doesn't fail when obs is overloaded
|
# PATCH-FIX-OPENSUSE increase_test_timeout.diff -- Increase the timeout in a test so it doesn't fail when obs is overloaded
|
||||||
Patch0: increase_test_timeout.diff
|
Patch0: increase_test_timeout.diff
|
||||||
# PATCH-FIX-UPSTREAM handle difference between libssh and libssh2
|
# PATCH-FIX-UPSTREAM handle difference between libssh and libssh2
|
||||||
@@ -44,7 +46,9 @@ Patch3: make-leap15-compat.patch
|
|||||||
# PATCH-FIX-UPSTREAM test-bottle-flask.patch gh#pycurl/pycurl#838
|
# PATCH-FIX-UPSTREAM test-bottle-flask.patch gh#pycurl/pycurl#838
|
||||||
Patch4: test-bottle-flask.patch
|
Patch4: test-bottle-flask.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -86,11 +90,11 @@ rm -f tests/failonerror_test.py
|
|||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
export PYCURL_SSL_LIBRARY=openssl
|
export PYCURL_SSL_LIBRARY=openssl
|
||||||
%python_build --with-openssl
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
export PYCURL_SSL_LIBRARY=openssl
|
export PYCURL_SSL_LIBRARY=openssl
|
||||||
%python_install --with-openssl
|
%pyproject_install
|
||||||
|
|
||||||
rm -rf %{buildroot}%{_datadir}/doc # Remove wrongly installed junk
|
rm -rf %{buildroot}%{_datadir}/doc # Remove wrongly installed junk
|
||||||
|
|
||||||
@@ -108,7 +112,7 @@ export PYCURL_SSL_LIBRARY=openssl
|
|||||||
# not the rest of the mess in the upstream runner
|
# not the rest of the mess in the upstream runner
|
||||||
pushd tests/fake-curl/libcurl
|
pushd tests/fake-curl/libcurl
|
||||||
rm -f *.so
|
rm -f *.so
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
popd
|
popd
|
||||||
# exclude certain tests
|
# exclude certain tests
|
||||||
test_flags='online or occasionally_failing'
|
test_flags='online or occasionally_failing'
|
||||||
@@ -142,7 +146,7 @@ rm -rf %{buildroot}%{_prefix}/lib/debug %{buildroot}%{_libdir}/python*
|
|||||||
%doc AUTHORS ChangeLog README.rst
|
%doc AUTHORS ChangeLog README.rst
|
||||||
%{python_sitearch}/curl
|
%{python_sitearch}/curl
|
||||||
%{python_sitearch}/pycurl*.so
|
%{python_sitearch}/pycurl*.so
|
||||||
%{python_sitearch}/pycurl-%{version}*-info
|
%{python_sitearch}/pycurl-%{upversion}*-info
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1500
|
%if 0%{?suse_version} > 1500
|
||||||
%files -n %{name}-doc
|
%files -n %{name}-doc
|
||||||
|
Reference in New Issue
Block a user