aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/osmo-sgsn.spec.in
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2024-04-26 09:56:22 +0200
committerOliver Smith <osmith@sysmocom.de>2024-04-26 09:58:51 +0200
commit05363e0a32dbd9fe28f0cdfad518ec1cd2950962 (patch)
treee8ae6451781d12c74a87fcb99b1dbef9640f0ca9 /contrib/osmo-sgsn.spec.in
parenta07e6d9c58d26f51d245d4034f8add4757ea38c7 (diff)
contrib/osmo-sgsn.spec: fix build for almalinux:8HEADmaster
Add the missing "%if 0%{?suse_version}" around %service_del/add commands, as these are only available on opensuse. Fix for: error: line 106: Too many names: %preun -n osmo-gtphub %service_del_preun osmo-gtphub.service Fixes: a07e6d9c (".deb/.rpm: add osmocom user during package install") Change-Id: I89802f926bfccc0f7b4bb1ff64115b232b1db022
Diffstat (limited to 'contrib/osmo-sgsn.spec.in')
-rw-r--r--contrib/osmo-sgsn.spec.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/osmo-sgsn.spec.in b/contrib/osmo-sgsn.spec.in
index d1382cb97..031cd1448 100644
--- a/contrib/osmo-sgsn.spec.in
+++ b/contrib/osmo-sgsn.spec.in
@@ -100,10 +100,12 @@ chmod 0660 /etc/osmocom/osmo-sgsn.cfg
chown root:osmocom /etc/osmocom
chmod 2775 /etc/osmocom
+%if 0%{?suse_version}
%preun -n osmo-gtphub %service_del_preun osmo-gtphub.service
%postun -n osmo-gtphub %service_del_postun osmo-gtphub.service
%pre -n osmo-gtphub %service_add_pre osmo-gtphub.service
%post -n osmo-gtphub %service_add_post osmo-gtphub.service
+%endif
%check
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)