aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-14 11:54:08 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-19 15:49:42 +0200
commitd02c8f72b160a01c8edd10597fa105795537df0b (patch)
tree6a35e9eca7734403f6af97feae4ae05387766cf8
parentafb705309fad0346e1c72a61f3d0950782ae2277 (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: I387b41b6c524cd3f6baad7e89b4b6b347d9998ac
-rw-r--r--.gitignore2
-rw-r--r--configure.ac1
-rw-r--r--contrib/osmo-sip-connector.spec.in (renamed from contrib/osmo-sip-connector.spec)11
3 files changed, 9 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 0fa1ce0..c73387f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,3 +33,5 @@ doc/manuals/generated/
doc/manuals/osmomsc-usermanual.xml
doc/manuals/common
doc/manuals/build
+
+contrib/osmo-sip-connector.spec
diff --git a/configure.ac b/configure.ac
index 5fe30f0..39d10f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -146,6 +146,7 @@ AC_OUTPUT(
doc/manuals/Makefile
contrib/Makefile
contrib/systemd/Makefile
+ contrib/osmo-sip-connector.spec
doc/Makefile
doc/examples/Makefile
Makefile)
diff --git a/contrib/osmo-sip-connector.spec b/contrib/osmo-sip-connector.spec.in
index b6db802..4361daa 100644
--- a/contrib/osmo-sip-connector.spec
+++ b/contrib/osmo-sip-connector.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-sip-connector
-Version: 1.4.0.0
+Version: @VERSION@
Release: 0
Summary: MNCC to SIP bridge for osmo-nitb
License: AGPL-3.0-or-later AND GPL-2.0-or-later
Group: Productivity/Telephony/Servers
-URL: http://openbsc.osmocom.org/
+URL: https://osmocom.org/projects/osmo-sip-conector
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(libosmocore) >= 1.0.0
BuildRequires: pkgconfig(libosmogsm) >= 1.0.0
BuildRequires: pkgconfig(libosmovty) >= 1.0.0
@@ -51,6 +50,7 @@ make %{?_smp_mflags}
%install
%make_install
+%if 0%{?suse_version}
%preun
%service_del_preun %{name}.service
@@ -62,6 +62,7 @@ make %{?_smp_mflags}
%post
%service_add_post %{name}.service
+%endif
%check
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)