From e1953f555d35d9033a7f9e2e3fb21bc4ce0db1de3224b32e2eed86760dc94a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 8 Feb 2021 14:50:35 +0000 Subject: [PATCH] Accepting request 870090 from home:jayvdb:branches:devel:languages:python - Add docs/changelog.rst to package contents - Update to v2.6.2 * See changelog for changes since 2.5.0 OBS-URL: https://build.opensuse.org/request/show/870090 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=23 --- pybind11-2.5.0.tar.gz | 3 --- pybind11-2.6.2.tar.gz | 3 +++ python-pybind11.changes | 7 +++++++ python-pybind11.spec | 17 +++++++++++++---- 4 files changed, 23 insertions(+), 7 deletions(-) delete mode 100644 pybind11-2.5.0.tar.gz create mode 100644 pybind11-2.6.2.tar.gz diff --git a/pybind11-2.5.0.tar.gz b/pybind11-2.5.0.tar.gz deleted file mode 100644 index da5b380..0000000 --- a/pybind11-2.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97504db65640570f32d3fdf701c25a340c8643037c3b69aec469c10c93dc8504 -size 573769 diff --git a/pybind11-2.6.2.tar.gz b/pybind11-2.6.2.tar.gz new file mode 100644 index 0000000..b828e2b --- /dev/null +++ b/pybind11-2.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ff2fff22df038f5cd02cea8af56622bc67f5b64534f1b83b9f133b8366acff2 +size 647954 diff --git a/python-pybind11.changes b/python-pybind11.changes index 473e8d8..dc8dfce 100644 --- a/python-pybind11.changes +++ b/python-pybind11.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Feb 7 13:15:06 UTC 2021 - John Vandenberg + +- Add docs/changelog.rst to package contents +- Update to v2.6.2 + * See changelog for changes since 2.5.0 + ------------------------------------------------------------------- Fri Jul 17 01:00:06 UTC 2020 - Stefan BrĂ¼ns diff --git a/python-pybind11.spec b/python-pybind11.spec index 8d4ec1f..d95e4cf 100644 --- a/python-pybind11.spec +++ b/python-pybind11.spec @@ -1,7 +1,7 @@ # # spec file for package python-pybind11 # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pybind11 -Version: 2.5.0 +Version: 2.6.2 Release: 0 Summary: Module for operability between C++11 and Python License: BSD-3-Clause @@ -76,6 +76,7 @@ popd %install %python_install +%python_clone -a %{buildroot}%{_bindir}/pybind11-config %python_expand %cmake_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # removing duplicated header files @@ -85,11 +86,19 @@ rm -rfv %{buildroot}%{_includedir}/python3.*/pybind11 %check # test fails as python3-widget is not in distribuion rm tests/test_embed/test_interpreter.py -%pytest +export PYTHONPATH=${PWD}/build/tests/ +%pytest -k 'not (tests_build_wheel or tests_build_global_wheel)' + +%post +%python_install_alternative pybind11-config + +%postun +%python_uninstall_alternative pybind11-config %files %{python_files} -%doc README.md +%doc README.rst docs/changelog.rst %license LICENSE +%python_alternative %{_bindir}/pybind11-config %{python_sitelib}/pybind11* %exclude %{python_sitelib}/pybind11/include