Name: python-sandlock Version: 0.7.0 Release: %autorelease # Fill in the actual package summary to submit package to Fedora Summary: Lightweight process sandbox using Landlock, seccomp, and seccomp user notification # Check if the automatically generated License and its spelling is correct for Fedora # https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/ License: Apache-2.0 URL: https://github.com/multikernel/sandlock Source: %{pypi_source sandlock} # we have libsandlock_ffi, so we don't need to build it. Patch: exclude-setuptools-rust.diff BuildArch: noarch BuildRequires: python3-devel # for test: pyproject_check_import %if %{with check} BuildRequires: libsandlock_ffi = %{version}-%{release} %endif # Fill in the actual package description to submit package to Fedora %global _description %{expand: This is package 'sandlock' generated automatically by pyp2spec.} %description %_description %package -n python3-sandlock Summary: %{summary} Requires: libsandlock_ffi% = %{version}-%{release} %description -n python3-sandlock %_description # For official Fedora packages, review which extras should be actually packaged # See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras %pyproject_extras_subpkg -n python3-sandlock mcp,mcp-remote %prep %autosetup -p1 -n sandlock-%{version} %generate_buildrequires # Keep only those extras which you actually want to package or use during tests %pyproject_buildrequires -x mcp,mcp-remote %build %pyproject_wheel %install %pyproject_install # Add top-level Python module names here as arguments, you can use globs %pyproject_save_files sandlock %check %pyproject_check_import %files -n python3-sandlock -f %{pyproject_files} %doc README.md %{_bindir}/sandlock-mcp %changelog %autochangelog