From b821d5a7cf923534d3e280461492d782cf40d995c92d721c377c53f0188edb4f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 3 Dec 2012 15:40:14 +0000 Subject: [PATCH] Non-systemd non-pkgconfig systems support OBS-URL: https://build.opensuse.org/package/show/utilities/parkverbot?expand=0&rev=8 --- parkverbot.spec | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/parkverbot.spec b/parkverbot.spec index 0f51d49..b15ef29 100644 --- a/parkverbot.spec +++ b/parkverbot.spec @@ -29,11 +29,17 @@ Source: %name-%version.tar.xz Source2: %name-%version.tar.xz.asc #BuildRequires: autoconf >= 2.60, automake >= 1.10 BuildRequires: pkgconfig >= 0.23 -BuildRequires: systemd BuildRequires: xz +%if 0%{?sles_version} +BuildRequires: libHX-devel >= 3.12 +%else BuildRequires: pkgconfig(libHX) >= 3.12 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +%endif +%if 0%{?suse_version} >= 1220 +BuildRequires: systemd %systemd_requires +%endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Modern rotational hard disks have a misfeature involving the regular