aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-14 11:41:16 +0200
committerlaforge <laforge@osmocom.org>2020-05-20 08:52:37 +0000
commit98e235b7329910e1f8465a20d499b1594d7803d6 (patch)
treea08bfaf68e2bf19bf08e0268b17f8f825b17ed69 /contrib
parentd4a53017e1baab23a9c52aa807d78a6c28522e85 (diff)
contrib: integrate RPM spec
Remove OpenSUSE bug report link, set version to @VERSION@, make it build with CentOS 8 etc. Related: OS#4550 Change-Id: Ia160d1a04b95e9efeb6c26eabd28c3697968d177
Diffstat (limited to 'contrib')
-rw-r--r--contrib/osmo-bts.spec.in (renamed from contrib/osmo-bts.spec)12
1 files changed, 7 insertions, 5 deletions
diff --git a/contrib/osmo-bts.spec b/contrib/osmo-bts.spec.in
index 2a423b2f..c1559211 100644
--- a/contrib/osmo-bts.spec
+++ b/contrib/osmo-bts.spec.in
@@ -12,22 +12,21 @@
# 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: @VERSION@
Release: 0
Summary: Osmocom BTS-Side code (Abis, scheduling)
License: AGPL-3.0-or-later AND GPL-2.0-only
Group: Productivity/Telephony/Servers
-URL: https://osmocom.org/projects/osmobts/wiki/Wiki
+URL: https://osmocom.org/projects/osmobts
Source: %{name}-%{version}.tar.xz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig >= 0.20
+%if 0%{?suse_version}
BuildRequires: systemd-rpm-macros
+%endif
BuildRequires: pkgconfig(libosmoabis) >= 0.6.0
BuildRequires: pkgconfig(libosmocodec) >= 1.2.0
BuildRequires: pkgconfig(libosmocoding) >= 1.2.0
@@ -38,6 +37,7 @@ BuildRequires: pkgconfig(libosmotrau) >= 0.6.0
BuildRequires: pkgconfig(libosmovty) >= 1.2.0
### FIXME: DependencyHACK to include osmocom/gprs/protocol/gsm_04_60.h
BuildRequires: pkgconfig(libosmogb)
+%{?systemd_requires}
%description
Osmocom BTS-Side code (A-bis, scheduling).
@@ -76,6 +76,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 +85,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 {} +)