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: Ibec1a22952ecfb0578bb4611e65ad819f5984fd8
changes/97/18297/3
Oliver Smith 3 years ago committed by laforge
parent 4f35665b9f
commit 70abda0ab2
  1. 2
      .gitignore
  2. 1
      configure.ac
  3. 15
      contrib/osmo-iuh.spec.in

2
.gitignore vendored

@ -49,3 +49,5 @@ doc/manuals/build
doc/manuals/common
doc/manuals/generated
doc/manuals/*.pdf
contrib/osmo-iuh.spec

@ -167,4 +167,5 @@ AC_OUTPUT(
doc/manuals/Makefile
contrib/Makefile
contrib/systemd/Makefile
contrib/osmo-iuh.spec
)

@ -12,17 +12,13 @@
# 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-iuh
Version: 0.6.0.13
Version: @VERSION@
Release: 0
Summary: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
License: AGPL-3.0-or-later AND GPL-2.0-or-later
Group: Hardware/Mobile
URL: https://osmocom.org/projects/osmohnbgw/wiki
URL: https://osmocom.org/projects/osmohnbgw
Source: %{name}-%{version}.tar.xz
BuildRequires: automake >= 1.9
BuildRequires: libtool >= 2
@ -30,6 +26,9 @@ BuildRequires: lksctp-tools-devel
BuildRequires: pkgconfig >= 0.20
# python3 for asn1tostruct.py
BuildRequires: python3
%if 0%{?suse_version}
BuildRequires: systemd-rpm-macros
%endif
BuildRequires: pkgconfig(libasn1c) >= 0.9.30
BuildRequires: pkgconfig(libosmo-netif) >= 0.3.0
BuildRequires: pkgconfig(libosmo-sigtran) >= 0.10.0
@ -38,6 +37,7 @@ BuildRequires: pkgconfig(libosmoctrl) >= 0.12.0
BuildRequires: pkgconfig(libosmogb)
BuildRequires: pkgconfig(libosmogsm) >= 0.12.0
BuildRequires: pkgconfig(libosmovty) >= 0.12.0
%{?systemd_requires}
%description
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
@ -103,10 +103,13 @@ make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%postun -n libosmo-ranap3 -p /sbin/ldconfig
%post -n libosmo-sabp0 -p /sbin/ldconfig
%postun -n libosmo-sabp0 -p /sbin/ldconfig
%if 0%{?suse_version}
%pre %service_add_pre osmo-hnbgw.service
%post %service_add_post osmo-hnbgw.service
%preun %service_del_preun osmo-hnbgw.service
%postun %service_del_postun osmo-hnbgw.service
%endif
%files
%license COPYING
Loading…
Cancel
Save