aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-14 11:41:16 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-15 12:01:27 +0200
commitc6a48d662060e442c69c7a9e248f77adc38d1149 (patch)
tree6b0c8fe15cdef971ef2d1d4124216e255dbff1f0
parent8c9c70a0a78138b0f4cc5bfee1d807525f4322f9 (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: Ia160d1a04b95e9efeb6c26eabd28c3697968d177
-rw-r--r--contrib/osmo-bts.spec11
1 files changed, 7 insertions, 4 deletions
diff --git a/contrib/osmo-bts.spec b/contrib/osmo-bts.spec
index 2a423b2f..968efc99 100644
--- a/contrib/osmo-bts.spec
+++ b/contrib/osmo-bts.spec
@@ -12,11 +12,8 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
-#
-
Name: osmo-bts
-Version: 1.2.0.49
+Version: 0.0.0
Release: 0
Summary: Osmocom BTS-Side code (Abis, scheduling)
License: AGPL-3.0-or-later AND GPL-2.0-only
@@ -27,7 +24,11 @@ BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig >= 0.20
+%if 0%{?centos_ver}
+BuildRequires: systemd
+%else
BuildRequires: systemd-rpm-macros
+%endif
BuildRequires: pkgconfig(libosmoabis) >= 0.6.0
BuildRequires: pkgconfig(libosmocodec) >= 1.2.0
BuildRequires: pkgconfig(libosmocoding) >= 1.2.0
@@ -76,6 +77,7 @@ make V=1 %{?_smp_mflags}
%install
%make_install
+%if 0%{?suse_version}
%pre %service_add_pre osmo-bts-trx.service
%post %service_add_post osmo-bts-trx.service
%preun %service_del_preun osmo-bts-trx.service
@@ -84,6 +86,7 @@ make V=1 %{?_smp_mflags}
%post virtual %service_add_post osmo-bts-virtual.service
%preun virtual %service_del_preun osmo-bts-virtual.service
%postun virtual %service_del_postun osmo-bts-virtual.service
+%endif
%check
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)