14
0

Accepting request 736064 from devel:languages:python

- 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/736064
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=3
This commit is contained in:
2019-10-10 09:53:00 +00:00
committed by Git OBS Bridge
4 changed files with 30 additions and 17 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:199a915e0f81b5a593d1a13a18f137f59a6111f0049543211d936d26dab34324
size 136894

3
pybind11-2.4.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e212e3043cb7a15466abb8896c6924c1ce40ae2988d8c24c111afcb30735fb8f
size 570507

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Oct 8 09:11:41 UTC 2019 - Christian Goll <cgoll@suse.com>
- 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 <jengelh@inai.de>

View File

@@ -18,19 +18,20 @@
%{?!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
URL: https://github.com/pybind/pybind11
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
%python_subpackages
%description
@@ -39,36 +40,41 @@ 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
Provides: %{python_module %{name}-devel}
%description devel
%description -n %{name}-devel
This package contains files for developing applications using pybind11.
%prep
%setup -q -n pybind11-%{version}
echo "python_files devel = %{python_files devel}"
%build
%python_build
# calling cmake to install header to right location and
# generate cmake include files
%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