[packages/python3-landlock] Initial
arekm
arekm at pld-linux.org
Fri Mar 20 20:33:07 CET 2026
commit c21186d843cc592f533c2c33848901f4d1f935d7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Mar 20 20:32:47 2026 +0100
Initial
python3-landlock.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
---
diff --git a/python3-landlock.spec b/python3-landlock.spec
new file mode 100644
index 0000000..0e113af
--- /dev/null
+++ b/python3-landlock.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+%define module landlock
+Summary: Python interface to the Landlock Linux Security Module
+Summary(pl.UTF-8): Interfejs Pythona do modułu bezpieczeństwa Landlock w Linuksie
+Name: python3-%{module}
+Version: 1.0.0.dev5
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/landlock/
+Source0: https://github.com/Edward-Knight/landlock/archive/v%{version}/%{module}-%{version}.tar.gz
+# Source0-md5: 424ce9a9a788f2d9b0c69913d5199222
+URL: https://github.com/Edward-Knight/landlock
+BuildRequires: python3-build
+BuildRequires: python3-flit_core >= 3.2
+BuildRequires: python3-flit_core < 4
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.9
+%if %{with tests}
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-forked
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.9
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+landlock provides a Python interface to the Landlock Linux Security
+Module. It allows developers to harden Python code with rule-based
+file system access restrictions, preventing unauthorized file system
+access and device interactions.
+
+%description -l pl.UTF-8
+landlock udostępnia interfejs Pythona do modułu bezpieczeństwa Landlock
+w Linuksie. Pozwala programistom zabezpieczać kod Pythona przy użyciu
+ograniczeń dostępu do systemu plików opartych na regułach, zapobiegając
+nieautoryzowanemu dostępowi do systemu plików i interakcjom z
+urządzeniami.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_forked \
+%{__python3} -m pytest tests -o 'addopts=' -o 'required_plugins='
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/landlock
+%{py3_sitescriptdir}/landlock-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-landlock.git/commitdiff/c21186d843cc592f533c2c33848901f4d1f935d7
More information about the pld-cvs-commit
mailing list