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: I4b87cb0d80bda7bbfda600310aee24a814f97f3f
This commit is contained in:
parent
c955655b20
commit
700a5a384c
|
@ -83,3 +83,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-bsc.spec
|
||||||
|
|
|
@ -254,4 +254,5 @@ AC_OUTPUT(
|
||||||
doc/manuals/Makefile
|
doc/manuals/Makefile
|
||||||
contrib/Makefile
|
contrib/Makefile
|
||||||
contrib/systemd/Makefile
|
contrib/systemd/Makefile
|
||||||
|
contrib/osmo-bsc.spec
|
||||||
Makefile)
|
Makefile)
|
||||||
|
|
|
@ -12,26 +12,24 @@
|
||||||
# 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/4113
|
## https://osmocom.org/issues/4113
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
|
||||||
|
|
||||||
Name: osmo-bsc
|
Name: osmo-bsc
|
||||||
Version: 1.6.0.78
|
Version: @VERSION@
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: OsmoBSC: Osmocom's Base Station Controller for 2G CS mobile networks
|
Summary: OsmoBSC: Osmocom's Base Station Controller for 2G CS mobile networks
|
||||||
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: Hardware/Mobile
|
Group: Hardware/Mobile
|
||||||
URL: https://osmocom.org/projects/openbsc/wiki/Osmo-bsc
|
URL: https://osmocom.org/projects/osmobsc
|
||||||
Source: %{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.xz
|
||||||
BuildRequires: automake >= 1.9
|
BuildRequires: automake >= 1.9
|
||||||
BuildRequires: libtool >= 2
|
BuildRequires: libtool >= 2
|
||||||
BuildRequires: pkgconfig >= 0.20
|
BuildRequires: pkgconfig >= 0.20
|
||||||
|
%if 0%{?suse_version}
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig(libcrypto) >= 0.9.5
|
BuildRequires: pkgconfig(libcrypto) >= 0.9.5
|
||||||
BuildRequires: pkgconfig(libosmo-mgcp-client) >= 1.5.0
|
BuildRequires: pkgconfig(libosmo-mgcp-client) >= 1.5.0
|
||||||
BuildRequires: pkgconfig(libosmo-netif) >= 0.6.0
|
BuildRequires: pkgconfig(libosmo-netif) >= 0.6.0
|
||||||
|
@ -100,6 +98,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
|
||||||
|
|
||||||
|
@ -111,6 +110,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