forked from pool/python-pybind11
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
This commit is contained in:
committed by
Git OBS Bridge
parent
f3a2c9d630
commit
3565b58fb0
@@ -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
3
pybind11-2.4.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e212e3043cb7a15466abb8896c6924c1ce40ae2988d8c24c111afcb30735fb8f
|
||||||
|
size 570507
|
@@ -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>
|
Sat Aug 24 06:26:13 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
@@ -18,16 +18,19 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-pybind11
|
Name: python-pybind11
|
||||||
Version: 2.3.0
|
Version: 2.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Module for operability between C++11 and Python
|
Summary: Module for operability between C++11 and Python
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/pybind/pybind11
|
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 devel}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: cmake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
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
|
code. It can reduce boilerplate code in traditional extension modules
|
||||||
by inferring type information using compile-time introspection.
|
by inferring type information using compile-time introspection.
|
||||||
|
|
||||||
%package devel
|
%package -n %{name}-devel
|
||||||
Summary: Development files for pybind11
|
Summary: Development files for pybind11
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
Requires: python-devel
|
Requires: python-devel
|
||||||
|
|
||||||
%description devel
|
%description -n %{name}-devel
|
||||||
This package contains files for developing applications using pybind11.
|
This package contains files for developing applications using pybind11.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pybind11-%{version}
|
%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}"
|
echo "python_files devel = %{python_files devel}"
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
%cmake
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
%cmake_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%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}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%files %{python_files devel}
|
%files -n %{name}-devel
|
||||||
%defattr(-,root,root)
|
%{_includedir}/pybind11
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sysconfig_path include}
|
%{_datadir}/cmake/pybind11
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user