From 426b74b2d4a179d63ae1cf351641b89d3543a8626a6511c5be7b18df4ba08781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Mon, 6 Jan 2014 07:38:20 +0000 Subject: [PATCH] Fixed systemd BuildRequires OBS-URL: https://build.opensuse.org/package/show/YaST:Head/autoyast2?expand=0&rev=489 --- autoyast2.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autoyast2.spec b/autoyast2.spec index c387bc4..844c765 100644 --- a/autoyast2.spec +++ b/autoyast2.spec @@ -1,7 +1,7 @@ # # spec file for package autoyast2 # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,6 +31,13 @@ BuildRequires: yast2-installation-control # xmllint BuildRequires: libxml2-tools +# %%{_unitdir} macro definition is in a separate package since 13.1 +%if 0%{?suse_version} >= 1310 +BuildRequires: systemd-rpm-macros +%else +BuildRequires: systemd +%endif + Requires: autoyast2-installation = %{version} Requires: libxslt Requires: yast2