Hello community, here is the log from the commit of package python-pycurl for openSUSE:Factory checked in at 2018-09-20 11:40:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pycurl (Old) and /work/SRC/openSUSE:Factory/.python-pycurl.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pycurl" Thu Sep 20 11:40:59 2018 rev:24 rq:634807 version:7.43.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pycurl/python-pycurl.changes 2018-08-31 09:51:57.665610307 +0200 +++ /work/SRC/openSUSE:Factory/.python-pycurl.new/python-pycurl.changes 2018-09-20 11:41:07.604868230 +0200 @@ -1,0 +2,6 @@ +Thu Sep 6 12:53:06 UTC 2018 - Matěj Cepl <[email protected]> + +- Switch to multibuild, so that we don't need testing BuildRequires + always. + +------------------------------------------------------------------- New: ---- _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pycurl.spec ++++++ --- /var/tmp/diff_new_pack.tQVdD0/_old 2018-09-20 11:41:08.212867874 +0200 +++ /var/tmp/diff_new_pack.tQVdD0/_new 2018-09-20 11:41:08.212867874 +0200 @@ -18,7 +18,19 @@ %define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define test 1 +%bcond_without test +%else +%bcond_with test +%endif +%if %{with test} +Name: python-pycurl-%{flavor} +%else Name: python-pycurl +%endif Version: 7.43.0.2 Release: 0 Summary: PycURL -- cURL library module @@ -32,14 +44,16 @@ Patch1: pycurl-libssh.patch # PATCH-FIX-OPENSUSE python-pycurl-7.43.0-tls-backend.patch -- do not run runtime tests to compare linked libs Patch2: python-pycurl-7.43.0-tls-backend.patch -BuildRequires: %{python_module bottle} BuildRequires: %{python_module devel} -BuildRequires: %{python_module flaky} -BuildRequires: %{python_module nose} BuildRequires: fdupes BuildRequires: libcurl-devel >= 7.19.0 BuildRequires: openssl-devel BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module bottle} +BuildRequires: %{python_module flaky} +BuildRequires: %{python_module nose} +%endif %ifpython2 Provides: %{oldpython}-curl = %{version} Obsoletes: %{oldpython}-curl < %{version} @@ -76,9 +90,14 @@ rm -rf %{buildroot}%{_datadir}/doc # Remove wrongly installed junk -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%{python_expand \ +$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch} +$python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch} +%fdupes %{buildroot}%{$python_sitearch} +} %check +%if %{with test} export PYCURL_SSL_LIBRARY=openssl # taken from "make test" because we only need to run nosetests, # not the rest of the mess in the upstream runner @@ -97,11 +116,15 @@ %{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} \ nosetests-%$python_bin_suffix -v --with-flaky -a "$test_flags" } +rm -rf %{buildroot}%{_libexecdir}/debug %{buildroot}%{_libdir}/python* +%endif # test %files %{python_files} %license COPYING-LGPL COPYING-MIT %doc AUTHORS ChangeLog README.rst +%if ! %{with test} %{python_sitearch}/* +%endif %files -n %{name}-doc %doc examples doc/*.rst ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild>
