aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-14 11:48:29 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-15 12:06:05 +0200
commit750f75a1cdd93b3b6e716c11e7bc473a407b77e6 (patch)
tree240aaee786da7afb751850872d6e770be0de0973
parentd6877eb8f979524e0af3c9596f1a3cec069813e0 (diff)
contrib: integrate RPM specosmith/rpm
Remove OpenSUSE bug report link, set version to 0.0.0, make it build with CentOS 8 etc. Related: OS#4550 Change-Id: I1d03ac87a7d0c3c600d187f3e485cb2dab8838bb
-rw-r--r--contrib/osmo-mgw.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/contrib/osmo-mgw.spec b/contrib/osmo-mgw.spec
index 2aeed06c9..b83e91a1f 100644
--- a/contrib/osmo-mgw.spec
+++ b/contrib/osmo-mgw.spec
@@ -16,7 +16,7 @@
#
Name: osmo-mgw
-Version: 1.7.0.13
+Version: 0.0.0
Release: 0
Summary: Osmocom's Media Gateway for 2G and 3G circuit-switched mobile networks
License: AGPL-3.0-or-later AND GPL-2.0-or-later
@@ -26,7 +26,11 @@ Source: %{name}-%{version}.tar.xz
BuildRequires: automake >= 1.9
BuildRequires: libtool >= 2
BuildRequires: pkgconfig >= 0.20
+%if 0%{?centos_ver}
+BuildRequires: systemd
+%else
BuildRequires: systemd-rpm-macros
+%endif
BuildRequires: pkgconfig(libosmo-netif) >= 0.6.0
BuildRequires: pkgconfig(libosmocore) >= 1.0.0
BuildRequires: pkgconfig(libosmoctrl) >= 1.1.0
@@ -88,6 +92,8 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%post -n libosmo-mgcp-client6 -p /sbin/ldconfig
%postun -n libosmo-mgcp-client6 -p /sbin/ldconfig
+
+%if 0%{?suse_version}
%preun
%service_del_preun osmo-mgw.service
@@ -99,6 +105,7 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%post
%service_add_post osmo-mgw.service
+%endif
%files
%license COPYING