]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
python3-systemd: New package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 1 Dec 2016 13:20:25 +0000 (14:20 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 3 Dec 2016 13:37:29 +0000 (13:37 +0000)
This package contains the python3 bindings for systemd.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
python3-systemd/python3-systemd.nm [new file with mode: 0644]

diff --git a/python3-systemd/python3-systemd.nm b/python3-systemd/python3-systemd.nm
new file mode 100644 (file)
index 0000000..c6d0ebf
--- /dev/null
@@ -0,0 +1,57 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = python3-systemd
+version    = 232
+release    = 1
+thisapp    = python-systemd-%{version}
+
+groups     = Development/Tools
+url        = https://github.com/systemd/python-systemd
+license    = LGPLv2+
+summary    = Python module wrapping systemd functionality.
+
+description
+       This package contains various Python modulse for a native access to
+       the systemd facilities.
+end
+
+source_dl  = https://github.com/systemd/python-systemd/archive/v%{version}.tar.gz#/
+
+build
+       requires
+               python3-devel >= 3.4
+               systemd-devel
+       end
+
+       prepare_cmds
+               sed -i 's/py\.test/pytest/' Makefile
+       end
+
+       make_build_targets += \
+               PYTHON=%{python3}
+
+       test
+               # Disable testsuite, because pytest is required
+               # which is currently not available.
+               #make PYTHON=%{python3} check
+       end
+
+       make_install_targets += \
+               PYTHON=%{python3}
+
+       install_cmds
+               # Remove accidently installed files from testsuite.
+               rm -rvf %{BUILDROOT}%{python3_sitearch}/systemd/test
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end