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: If5499e11d872e629a018fc77d5adf5d0cb863d48
This commit is contained in:
parent
3694631c1a
commit
0314593aa7
|
@ -72,3 +72,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-msc.spec
|
||||||
|
|
|
@ -267,4 +267,5 @@ AC_OUTPUT(
|
||||||
doc/sequence_charts/Makefile
|
doc/sequence_charts/Makefile
|
||||||
contrib/Makefile
|
contrib/Makefile
|
||||||
contrib/systemd/Makefile
|
contrib/systemd/Makefile
|
||||||
|
contrib/osmo-msc.spec
|
||||||
Makefile)
|
Makefile)
|
||||||
|
|
|
@ -12,27 +12,26 @@
|
||||||
# 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/
|
|
||||||
#
|
|
||||||
|
|
||||||
## Disable LTO for now since it breaks compilation of the tests
|
## Disable LTO for now since it breaks compilation of the tests
|
||||||
## https://osmocom.org/issues/4115
|
## https://osmocom.org/issues/4115
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
|
|
||||||
%define with_iu 1
|
%define with_iu 1
|
||||||
Name: osmo-msc
|
Name: osmo-msc
|
||||||
Version: 1.6.1.32
|
Version: @VERSION@
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Osmocom's MSC for 2G and 3G circuit-switched mobile networks
|
Summary: Osmocom's MSC for 2G and 3G circuit-switched mobile networks
|
||||||
License: AGPL-3.0-or-later AND GPL-2.0-only
|
License: AGPL-3.0-or-later AND GPL-2.0-only
|
||||||
Group: Productivity/Telephony/Servers
|
Group: Productivity/Telephony/Servers
|
||||||
URL: https://osmocom.org/projects/osmomsc/wiki
|
URL: https://osmocom.org/projects/osmomsc
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libdbi-drivers-dbd-sqlite3
|
BuildRequires: libdbi-drivers-dbd-sqlite3
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig >= 0.20
|
BuildRequires: pkgconfig >= 0.20
|
||||||
BuildRequires: pkgconfig(dbi)
|
BuildRequires: pkgconfig(dbi)
|
||||||
BuildRequires: pkgconfig(libcrypto) >= 0.9.5
|
BuildRequires: pkgconfig(libcrypto) >= 0.9.5
|
||||||
|
@ -86,6 +85,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
|
||||||
|
|
||||||
|
@ -97,6 +97,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