SHA256
1
0
forked from pool/osmo-iuh
Jan Engelhardt 2021-11-19 17:56:27 +00:00 committed by Git OBS Bridge
parent dc6a3c7938
commit a5adc07d36

View File

@ -17,7 +17,6 @@
Name: osmo-iuh
%define lname libosmo-ranap5
Version: 1.1.0
Release: 0
Summary: Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
@ -46,52 +45,59 @@ BuildRequires: pkgconfig(libosmovty) >= 1.5.0
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
%package -n libosmo-hnbap0
Summary: Shared Library part of libosmo-hnbap
Summary: Home Node B Application Part library
Group: System/Libraries
%description -n libosmo-hnbap0
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
Osmocom code for the Home Node B Application Part. HNBAP is a control protocol
found in Home Node B networks on the Iu-h interface.
%package -n libosmo-hnbap-devel
Summary: Development files for Osmocom HNBAP library
Group: Development/Libraries/C and C++
Requires: libosmo-hnbap0 = %{version}
Requires: libosmo-hnbap0 = %version
%description -n libosmo-hnbap-devel
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
This subpackage contains libraries and header files for developing
applications that want to make use of libosmo-hnbap.
%package -n %lname
Summary: Shared Library part of libosmo-ranap
%package -n libosmo-ranap5
Summary: Radio Access Network Application Part library
Group: System/Libraries
%description -n %lname
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
%description -n libosmo-ranap5
Osmocom code for the Radio Access Network Application Part of the Iu-h
interface.
%package -n libosmo-ranap-devel
Summary: Development files for Osmocom RANAP library
Summary: Header files for the Osmocom RANAP library
Group: Development/Libraries/C and C++
Requires: %lname = %version
Requires: libosmo-ranap5 = %version
%description -n libosmo-ranap-devel
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
Osmocom code for the Radio Access Network Application Part of the Iu-h
interface.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmoranap.
applications that want to make use of libosmo-ranap.
%package -n libosmo-rua0
Summary: Shared Library part of libosmo-rua
Summary: RANAP User Adaption signalling library
Group: System/Libraries
%description -n libosmo-rua0
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
Osmocom code for the RANAP User Adaption signalling.
%package -n libosmo-rua-devel
Summary: Development files for Osmocom RUA library
Summary: Header files for the Osmocom RUA library
Group: Development/Libraries/C and C++
Requires: libosmo-rua0 = %{version}
Requires: libosmo-rua0 = %version
%description -n libosmo-rua-devel
Osmocom code for the Iuh interface (HNBAP, RUA, RANAP)
Osmocom code for the RANAP User Adaption signalling.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmo-rua.
%package -n libosmo-sabp1
Summary: Osmocom Service Area Broadcast Protocol library
@ -101,7 +107,7 @@ Group: System/Libraries
Osmocom code for the Service Area Broadcast Protocol interface.
%package -n libosmo-sabp-devel
Summary: Development files for Osmocom SABP library
Summary: Header files for the Osmocom SABP library
Group: Development/Libraries/C and C++
Requires: libosmo-sabp1 = %version
@ -121,7 +127,7 @@ autoreconf -fi
--disable-static \
--docdir="%_docdir/%name" \
--with-systemdsystemunitdir="%_unitdir"
make %{?_smp_mflags}
%make_build
%install
%make_install
@ -130,7 +136,7 @@ install -d %buildroot/%_sbindir
ln -s %_sbindir/service %buildroot/%_sbindir/rcosmo-hnbgw
%check
if ! make %{?_smp_mflags} check; then
if ! %make_build check; then
find . -type f -name testsuite.log -exec cat "{}" "+"
%ifnarch ppc ppc64
exit 1
@ -139,8 +145,8 @@ fi
%post -n libosmo-hnbap0 -p /sbin/ldconfig
%postun -n libosmo-hnbap0 -p /sbin/ldconfig
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%post -n libosmo-ranap5 -p /sbin/ldconfig
%postun -n libosmo-ranap5 -p /sbin/ldconfig
%post -n libosmo-rua0 -p /sbin/ldconfig
%postun -n libosmo-rua0 -p /sbin/ldconfig
%post -n libosmo-sabp1 -p /sbin/ldconfig
@ -170,40 +176,39 @@ fi
%_sbindir/rcosmo-hnbgw
%files -n libosmo-hnbap0
%{_libdir}/libosmo-hnbap.so.0*
%_libdir/libosmo-hnbap.so.0*
%files -n libosmo-hnbap-devel
%dir %{_includedir}/osmocom/
%dir %{_includedir}/osmocom/hnbap/
%{_includedir}/osmocom/hnbap/*
%{_libdir}/libosmo-hnbap.so
%{_libdir}/pkgconfig/libosmo-hnbap.pc
%dir %_includedir/osmocom/
%dir %_includedir/osmocom/hnbap/
%_includedir/osmocom/hnbap/*
%_libdir/libosmo-hnbap.so
%_libdir/pkgconfig/libosmo-hnbap.pc
%files -n %lname
%files -n libosmo-ranap5
%_libdir/libosmo-ranap.so.5*
%files -n libosmo-ranap-devel
%dir %{_includedir}/osmocom
%_includedir/osmocom/ranap
%dir %_includedir/osmocom/
%_includedir/osmocom/ranap/
%_libdir/libosmo-ranap.so
%_libdir/pkgconfig/libosmo-ranap.pc
%files -n libosmo-rua0
%{_libdir}/libosmo-rua.so.0*
%_libdir/libosmo-rua.so.0*
%files -n libosmo-rua-devel
%dir %{_includedir}/osmocom/
%dir %{_includedir}/osmocom/rua/
%{_includedir}/osmocom/rua/*
%{_libdir}/libosmo-rua.so
%{_libdir}/pkgconfig/libosmo-rua.pc
%dir %_includedir/osmocom/
%_includedir/osmocom/rua/
%_libdir/libosmo-rua.so
%_libdir/pkgconfig/libosmo-rua.pc
%files -n libosmo-sabp1
%_libdir/libosmo-sabp.so.1*
%files -n libosmo-sabp-devel
%dir %{_includedir}/osmocom
%_includedir/osmocom/sabp
%dir %_includedir/osmocom/
%_includedir/osmocom/sabp/
%_libdir/libosmo-sabp.so
%_libdir/pkgconfig/libosmo-sabp.pc