summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 09:40:37 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 09:40:37 +0000
commit45641e2cab8e5575472cf95b229a8cd64c47b5e0 (patch)
treeb62968ed02f24b3bd3bc18155bba61a3c916c6d0
parent7fd7831bc68ef2382f029dd3357fa304d28018cf (diff)
automatic import of python-pybind11
-rw-r--r--.gitignore1
-rw-r--r--python-pybind11.spec121
-rw-r--r--sources1
3 files changed, 123 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..64806f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pybind11-2.10.4.tar.gz
diff --git a/python-pybind11.spec b/python-pybind11.spec
new file mode 100644
index 0000000..f598f33
--- /dev/null
+++ b/python-pybind11.spec
@@ -0,0 +1,121 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pybind11
+Version: 2.10.4
+Release: 1
+Summary: Seamless operability between C++11 and Python
+License: BSD
+URL: https://github.com/pybind/pybind11
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/bb/f9/a526ea001ecadd48d90ed7a61038b5ba732136d76b60357d23dc37521c58/pybind11-2.10.4.tar.gz
+BuildArch: noarch
+
+Requires: python3-pybind11-global
+
+%description
+pybind11 can map the following core C++ features to Python:
+- Functions accepting and returning custom data structures per value,
+ reference, or pointer
+- Instance methods and static methods
+- Overloaded functions
+- Instance attributes and static attributes
+- Arbitrary exception types
+- Enumerations
+- Callbacks
+- Iterators and ranges
+- Custom operators
+- Single and multiple inheritance
+- STL data structures
+- Smart pointers with reference counting like ``std::shared_ptr``
+- Internal references with correct reference counting
+- C++ classes with virtual (and pure virtual) methods can be extended
+ in Python
+
+%package -n python3-pybind11
+Summary: Seamless operability between C++11 and Python
+Provides: python-pybind11
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pybind11
+pybind11 can map the following core C++ features to Python:
+- Functions accepting and returning custom data structures per value,
+ reference, or pointer
+- Instance methods and static methods
+- Overloaded functions
+- Instance attributes and static attributes
+- Arbitrary exception types
+- Enumerations
+- Callbacks
+- Iterators and ranges
+- Custom operators
+- Single and multiple inheritance
+- STL data structures
+- Smart pointers with reference counting like ``std::shared_ptr``
+- Internal references with correct reference counting
+- C++ classes with virtual (and pure virtual) methods can be extended
+ in Python
+
+%package help
+Summary: Development documents and examples for pybind11
+Provides: python3-pybind11-doc
+%description help
+pybind11 can map the following core C++ features to Python:
+- Functions accepting and returning custom data structures per value,
+ reference, or pointer
+- Instance methods and static methods
+- Overloaded functions
+- Instance attributes and static attributes
+- Arbitrary exception types
+- Enumerations
+- Callbacks
+- Iterators and ranges
+- Custom operators
+- Single and multiple inheritance
+- STL data structures
+- Smart pointers with reference counting like ``std::shared_ptr``
+- Internal references with correct reference counting
+- C++ classes with virtual (and pure virtual) methods can be extended
+ in Python
+
+%prep
+%autosetup -n pybind11-2.10.4
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-pybind11 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.10.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..705e2e5
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7218329bb593dff3a0f533aedbbad0a5 pybind11-2.10.4.tar.gz