From 32a9ec5d6a1b31b53188bc4608530fb4fad0b8d2 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Tue, 10 Dec 2024 11:39:03 +0100 Subject: First release of nanobind 2.4.0 --- python-nanobind.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 python-nanobind.spec (limited to 'python-nanobind.spec') diff --git a/python-nanobind.spec b/python-nanobind.spec new file mode 100644 index 0000000..a4fa552 --- /dev/null +++ b/python-nanobind.spec @@ -0,0 +1,54 @@ +Name: python-nanobind +Version: 2.4.0 +Release: %autorelease +Summary: nanobind: tiny and efficient C++/Python bindings + +License: BSD +URL: https://github.com/wjakob/nanobind +Source: %{pypi_source nanobind} + +BuildArch: noarch +BuildRequires: python3-devel + +%global _description %{expand: +nanobind is a small binding library that exposes C++ types +in Python and vice versa. It is reminiscent of Boost.Python +and pybind11 and uses near-identical syntax. +In contrast to these existing tools, nanobind is more +efficient: bindings compile in a shorter amount of time, +produce smaller binaries, and have better runtime performance.} + +%description %_description + +%package -n python3-nanobind +Summary: %{summary} + +%description -n python3-nanobind %_description + +%prep +%autosetup -p1 -n nanobind-%{version} + +%generate_buildrequires +%pyproject_buildrequires -t + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files 'nanobind' + + +%check +%_pyproject_check_import_allow_no_modules -t +%tox -- --parallel 0 -- --verbose + + +%files -n python3-nanobind -f %{pyproject_files} +%license LICENSE + + +%changelog +%autochangelog \ No newline at end of file -- cgit