diff options
| author | Konrad Kleine <kkleine@redhat.com> | 2024-12-10 11:39:03 +0100 |
|---|---|---|
| committer | Konrad Kleine <kkleine@redhat.com> | 2024-12-10 12:15:24 +0100 |
| commit | 32a9ec5d6a1b31b53188bc4608530fb4fad0b8d2 (patch) | |
| tree | 3d193b9adde6f11f675597ebac502b3b8a2ae915 /python-nanobind.spec | |
| download | python-nanobind-32a9ec5d6a1b31b53188bc4608530fb4fad0b8d2.tar.gz python-nanobind-32a9ec5d6a1b31b53188bc4608530fb4fad0b8d2.tar.xz python-nanobind-32a9ec5d6a1b31b53188bc4608530fb4fad0b8d2.zip | |
First release of nanobind 2.4.0
Diffstat (limited to 'python-nanobind.spec')
| -rw-r--r-- | python-nanobind.spec | 54 |
1 files changed, 54 insertions, 0 deletions
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 |
