14
0

Accepting request 717842 from home:mvyskocil

add pybind11 to d:l:p (requisite of scipy test suite)
* fix License entry

OBS-URL: https://build.opensuse.org/request/show/717842
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=1
This commit is contained in:
2019-07-25 20:11:55 +00:00
committed by Git OBS Bridge
commit c2d9cd43e8
5 changed files with 101 additions and 0 deletions

70
python-pybind11.spec Normal file
View File

@@ -0,0 +1,70 @@
#
# spec file for package python-pybind11
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pybind11
Version: 2.3.0
Release: 0
License: BSD-3-Clause
Summary: Seamless operability between C++11 and Python
Url: https://github.com/pybind/pybind11
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/53/bc/0880e869d1a4bfd7954835d67e6d5e2c8a30c3fd6372134a4be79a842a4c/pybind11-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
Seamless operability between C++11 and Python
%package devel
Summary: Development files for pybind11
Group: Development/Libraries/Python
Requires: %{name} = %{version}
Requires: python-devel
%description 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
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%files %{python_files devel}
%defattr(-,root,root)
%license LICENSE
%{python_sysconfig_path include}
%changelog