commit c2d9cd43e8840b3e4430bcc47a291686ad5b2cf2d0a46efdf274a4c1f879a06b Author: Matej Cepl Date: Thu Jul 25 20:11:55 2019 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pybind11-2.3.0.tar.gz b/pybind11-2.3.0.tar.gz new file mode 100644 index 0000000..b46782f --- /dev/null +++ b/pybind11-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:199a915e0f81b5a593d1a13a18f137f59a6111f0049543211d936d26dab34324 +size 136894 diff --git a/python-pybind11.changes b/python-pybind11.changes new file mode 100644 index 0000000..ee54db7 --- /dev/null +++ b/python-pybind11.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Jul 22 14:21:41 UTC 2019 - Michal Vyskocil + +- Initial packaging of pybind11 2.3.0 for openSUSE diff --git a/python-pybind11.spec b/python-pybind11.spec new file mode 100644 index 0000000..4a35245 --- /dev/null +++ b/python-pybind11.spec @@ -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