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
This commit is contained in:
parent
afb705309f
commit
d02c8f72b1
|
@ -33,3 +33,5 @@ doc/manuals/generated/
|
||||||
doc/manuals/osmomsc-usermanual.xml
|
doc/manuals/osmomsc-usermanual.xml
|
||||||
doc/manuals/common
|
doc/manuals/common
|
||||||
doc/manuals/build
|
doc/manuals/build
|
||||||
|
|
||||||
|
contrib/osmo-sip-connector.spec
|
||||||
|
|
|
@ -146,6 +146,7 @@ AC_OUTPUT(
|
||||||
doc/manuals/Makefile
|
doc/manuals/Makefile
|
||||||
contrib/Makefile
|
contrib/Makefile
|
||||||
contrib/systemd/Makefile
|
contrib/systemd/Makefile
|
||||||
|
contrib/osmo-sip-connector.spec
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
doc/examples/Makefile
|
doc/examples/Makefile
|
||||||
Makefile)
|
Makefile)
|
||||||
|
|
|
@ -12,22 +12,21 @@
|
||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
||||||
#
|
|
||||||
|
|
||||||
Name: osmo-sip-connector
|
Name: osmo-sip-connector
|
||||||
Version: 1.4.0.0
|
Version: @VERSION@
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: MNCC to SIP bridge for osmo-nitb
|
Summary: MNCC to SIP bridge for osmo-nitb
|
||||||
License: AGPL-3.0-or-later AND GPL-2.0-or-later
|
License: AGPL-3.0-or-later AND GPL-2.0-or-later
|
||||||
Group: Productivity/Telephony/Servers
|
Group: Productivity/Telephony/Servers
|
||||||
URL: http://openbsc.osmocom.org/
|
URL: https://osmocom.org/projects/osmo-sip-conector
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig >= 0.20
|
BuildRequires: pkgconfig >= 0.20
|
||||||
|
%if 0%{?suse_version}
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libosmocore) >= 1.0.0
|
BuildRequires: pkgconfig(libosmocore) >= 1.0.0
|
||||||
BuildRequires: pkgconfig(libosmogsm) >= 1.0.0
|
BuildRequires: pkgconfig(libosmogsm) >= 1.0.0
|
||||||
BuildRequires: pkgconfig(libosmovty) >= 1.0.0
|
BuildRequires: pkgconfig(libosmovty) >= 1.0.0
|
||||||
|
@ -51,6 +50,7 @@ make %{?_smp_mflags}
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
|
%if 0%{?suse_version}
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun %{name}.service
|
%service_del_preun %{name}.service
|
||||||
|
|
||||||
|
@ -62,6 +62,7 @@ make %{?_smp_mflags}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post %{name}.service
|
%service_add_post %{name}.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
Loading…
Reference in New Issue