From a7c9a3d993b8c5e75a69afcc34728877d2adc27a2fb922f62abf7b41a10ffcca Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 24 Jun 2014 12:05:21 +0000 Subject: [PATCH] Also support 13.1 for now OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=683 --- systemd.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/systemd.spec b/systemd.spec index c38fac8..0bc178d 100644 --- a/systemd.spec +++ b/systemd.spec @@ -1169,6 +1169,17 @@ else sed -ri 's@^([[:blank:]]+)(cmdline\[i\+\+\][[:blank:]]+=[[:blank:]]+"-l")(;)@\1/* \2 */\3@' src/fsck/fsck.c fi +%if 0%{?suse_version} <= 1310 +# +# Older versions like oS 13.1 do not distinguish between +# network.target and network-online.target +# +for f in src/core/service.c src/insserv-generator/insserv-generator.c +do + sed -ri '/"network",.*SPECIAL_NETWORK_ONLINE_TARGET,/{ s/SPECIAL_NETWORK_ONLINE_TARGET/SPECIAL_NETWORK_TARGET/}' $f +done +%endif + %build cflags () {