From 3565b58fb0de14ee73a6f308f49395ea6bd49a0e3770150920d2b64eb7ccd666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 8 Oct 2019 10:16:24 +0000 Subject: [PATCH] Accepting request 736037 from home:mslacken:ml - updated to 2.4.2 * made devel package python version independent * added cmake run to install cmake include files OBS-URL: https://build.opensuse.org/request/show/736037 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=5 --- pybind11-2.3.0.tar.gz | 3 --- pybind11-2.4.2.tar.gz | 3 +++ python-pybind11.changes | 7 +++++++ python-pybind11.spec | 25 ++++++++++++++++++------- 4 files changed, 28 insertions(+), 10 deletions(-) delete mode 100644 pybind11-2.3.0.tar.gz create mode 100644 pybind11-2.4.2.tar.gz diff --git a/pybind11-2.3.0.tar.gz b/pybind11-2.3.0.tar.gz deleted file mode 100644 index b46782f..0000000 --- a/pybind11-2.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:199a915e0f81b5a593d1a13a18f137f59a6111f0049543211d936d26dab34324 -size 136894 diff --git a/pybind11-2.4.2.tar.gz b/pybind11-2.4.2.tar.gz new file mode 100644 index 0000000..aaf259e --- /dev/null +++ b/pybind11-2.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e212e3043cb7a15466abb8896c6924c1ce40ae2988d8c24c111afcb30735fb8f +size 570507 diff --git a/python-pybind11.changes b/python-pybind11.changes index f243c82..92aefbf 100644 --- a/python-pybind11.changes +++ b/python-pybind11.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Oct 8 09:11:41 UTC 2019 - Christian Goll + +- updated to 2.4.2 + * made devel package python version independent + * added cmake run to install cmake include files + ------------------------------------------------------------------- Sat Aug 24 06:26:13 UTC 2019 - Jan Engelhardt diff --git a/python-pybind11.spec b/python-pybind11.spec index cca589b..e031339 100644 --- a/python-pybind11.spec +++ b/python-pybind11.spec @@ -18,16 +18,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pybind11 -Version: 2.3.0 +Version: 2.4.2 Release: 0 Summary: Module for operability between C++11 and Python License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/pybind/pybind11 -Source: https://files.pythonhosted.org/packages/53/bc/0880e869d1a4bfd7954835d67e6d5e2c8a30c3fd6372134a4be79a842a4c/pybind11-%{version}.tar.gz +Source: https://github.com/pybind/pybind11/archive/v%{version}.tar.gz#/pybind11-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: cmake BuildRequires: fdupes +BuildRequires: gcc-c++ BuildRequires: python-rpm-macros BuildArch: noarch @@ -39,36 +42,44 @@ and vice versa, mainly to create Python bindings of existing C++ code. It can reduce boilerplate code in traditional extension modules by inferring type information using compile-time introspection. -%package devel +%package -n %{name}-devel Summary: Development files for pybind11 Group: Development/Libraries/Python Requires: %{name} = %{version} Requires: python-devel -%description devel +%description -n %{name}-devel This package contains files for developing applications using pybind11. %prep %setup -q -n pybind11-%{version} +# calling cmake to install header to right location and +# generate cmake include files echo "python_files devel = %{python_files devel}" %build %python_build +%cmake +%cmake_build %install %python_install +%cmake_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +# removing duplciated header files +rm -rv %{buildroot}%{_includedir}/python2.*/pybind11/ +rm -rv %{buildroot}%{_includedir}/python3.*/pybind11 %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/* -%files %{python_files devel} -%defattr(-,root,root) +%files -n %{name}-devel +%{_includedir}/pybind11 %license LICENSE -%{python_sysconfig_path include} +%{_datadir}/cmake/pybind11 %changelog