python-systemd: New package.
Message ID | 1480597834-15622-1-git-send-email-stefan.schantl@ipfire.org |
---|---|
State | Superseded |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (unknown [172.28.1.200]) by web02.ipfire.org (Postfix) with ESMTP id 2532761E79 for <patchwork@ipfire.org>; Thu, 1 Dec 2016 14:09:10 +0100 (CET) Received: from mail01.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 14A1F1BEA; Thu, 1 Dec 2016 14:09:08 +0100 (CET) Received: from tuxedo.stevee (213162068236.public.t-mobile.at [213.162.68.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 056361BE0; Thu, 1 Dec 2016 14:09:06 +0100 (CET) From: Stefan Schantl <stefan.schantl@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] python-systemd: New package. Date: Thu, 1 Dec 2016 14:10:34 +0100 Message-Id: <1480597834-15622-1-git-send-email-stefan.schantl@ipfire.org> X-Mailer: git-send-email 2.7.4 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Message
Stefan Schantl
Dec. 2, 2016, 12:10 a.m. UTC
This package now contains the python bindings for systemd.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
python-systemd/python-systemd.nm | 60 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
create mode 100644 python-systemd/python-systemd.nm
Comments
Hi, looks good, but the package should be called python3-systemd which complies with the naming of the other ones. Isn't there a possible runtime dependency to a specific version of systemd required? On Thu, 2016-12-01 at 14:10 +0100, Stefan Schantl wrote: > This package now contains the python bindings for systemd. > > Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> > --- > python-systemd/python-systemd.nm | 60 > ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 60 insertions(+) > create mode 100644 python-systemd/python-systemd.nm > > diff --git a/python-systemd/python-systemd.nm b/python-systemd/python- > systemd.nm > new file mode 100644 > index 0000000..a291874 > --- /dev/null > +++ b/python-systemd/python-systemd.nm > @@ -0,0 +1,60 @@ > +############################################################################# > ## > +# IPFire.org - An Open Source Firewall > Solution # > +# Copyright (C) - IPFire Development Team <info@ipfire.org> > # > +############################################################################# > ## > + > +name = python-systemd > +version = 232 > +release = 1 > + > +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}.ta > r.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} There could be a space between += and \ > + > + install_cmds > + # Remove accidently installed files from testsuite. > + rm -rvf %{BUILDROOT}%{python3_sitearch}/systemd/test > + end > +end Accidentially? > + > +packages > + package %{name} > + obsoletes > + python3-systemd >= 221 > + end > + end > + > + package %{name}-debuginfo > + template DEBUGINFO > + end > +end
Hello thanks for reviewing my commit: I'll send a new patch with the renamed package name. No it seems, that there is no runtime dependency to a specific systemd version. Best regards, -Stefan > Hi, > > looks good, but the package should be called python3-systemd which > complies with > the naming of the other ones. > > Isn't there a possible runtime dependency to a specific version of > systemd > required? > > On Thu, 2016-12-01 at 14:10 +0100, Stefan Schantl wrote: > > > > This package now contains the python bindings for systemd. > > > > Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> > > --- > > python-systemd/python-systemd.nm | 60 > > ++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 60 insertions(+) > > create mode 100644 python-systemd/python-systemd.nm > > > > diff --git a/python-systemd/python-systemd.nm b/python- > > systemd/python- > > systemd.nm > > new file mode 100644 > > index 0000000..a291874 > > --- /dev/null > > +++ b/python-systemd/python-systemd.nm > > @@ -0,0 +1,60 @@ > > +################################################################## > > ########### > > ## > > +# IPFire.org - An Open Source Firewall > > Solution # > > +# Copyright (C) - IPFire Development Team <info@ipfire.org> > > > > # > > +################################################################## > > ########### > > ## > > + > > +name = python-systemd > > +version = 232 > > +release = 1 > > + > > +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}.ta > > r.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} > > There could be a space between += and \ > > > > > + > > + install_cmds > > + # Remove accidently installed files from > > testsuite. > > + rm -rvf > > %{BUILDROOT}%{python3_sitearch}/systemd/test > > + end > > +end > > Accidentially? > > > > > + > > +packages > > + package %{name} > > + obsoletes > > + python3-systemd >= 221 > > + end > > + end > > + > > + package %{name}-debuginfo > > + template DEBUGINFO > > + end > > +end