1
0
forked from pool/libosmo-abis
libosmo-abis/libosmo-abis.spec

154 lines
4.9 KiB
RPMSpec

#
# spec file for package libosmo-abis
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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: libosmo-abis
Version: 0.3.2.3
Release: 0
Summary: Osmocom library for A-bis interface between BTS and BSC
License: AGPL-3.0+ and GPL-2.0+
Group: Productivity/Telephony/Utilities
Url: http://openbsc.osmocom.org/trac/wiki/libosmo-abis
#Git-Clone: git://git.osmocom.org/libosmo-abis
#Snapshot: 0.3.2-1-g86fc3c8
Source: %name-%version.tar.xz
Patch1: osmo-talloc.diff
Patch2: 0001-build-resolve-compiler-warnings.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake >= 1.6
#BuildRequires: dahdi-linux-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: xz
BuildRequires: pkgconfig(libosmocore) >= 0.3.0
BuildRequires: pkgconfig(libosmogsm) >= 0.3.10
BuildRequires: pkgconfig(libosmovty) >= 0.3.0
BuildRequires: pkgconfig(ortp) >= 0.13.1
# follow arch limitations for libosmocore
# do not try to build for big-endian archs
# as suggested by http://lists.osmocom.org/pipermail/baseband-devel/2015-February/000022.html
ExcludeArch: ppc ppc64 ppc64p7 mips mips64 %sparc s390 s390x
%description
In GSM, A-bis is a BSS-internal interface link between the BTS and
BSC. This interface allows control of the radio equipment and radio
frequency allocation in the BTS.
%package -n libosmoabis5
Summary: Osmocom A-bis interface core library
License: AGPL-3.0+
Group: System/Libraries
%description -n libosmoabis5
In the GSM system architecture, A-bis is a Base Station
System-internal interface linking the Base Transceiver Stations (BTS)
and Base Station Controller (BSC). This interface allows control of
the radio equipment and radio frequency allocation in the BTS.
%package -n libosmoabis-devel
Summary: Development files for the Osmocom A-bis core library
License: AGPL-3.0+
Group: Development/Libraries/C and C++
Requires: libosmoabis5 = %version
Requires: libosmocore-devel >= 0.3.0
Requires: libosmogsm-devel >= 0.3.10
%description -n libosmoabis-devel
In GSM, A-bis is a BSS-internal interface link between the BTS and
BSC. This interface allows control of the radio equipment and radio
frequency allocation in the BTS.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmoabis.
%package -n libosmotrau1
Summary: Osmocom TRAU (E1/RTP) library
License: GPL-2.0+
Group: System/Libraries
%description -n libosmotrau1
The Transcoder Rate Adaptor Unit enables the use of lower rates (32,
16 or 8 kbps) over the A-bis interface instead of the 64 kbps ISDN
rate for which the Mobile Switching Center (MSC) is designed.
%package -n libosmotrau-devel
Summary: Development files for the Osmocom TRAU (E1/RTP) library
License: GPL-2.0+
Group: Development/Libraries/C and C++
Requires: libosmotrau1 = %version
%description -n libosmotrau-devel
The Transcoder Rate Adaptor Unit enables the use of lower bitrates
over the A-bis interface instead of the 64 kbps design rate of the
MSC.
This subpackage contains libraries and header files for developing
applications that want to make use of libosmotrau.
%prep
%setup -qn %name
%patch -P 1 -P 2 -p1
%build
echo "%version" >.tarball-version
autoreconf -fiv
%configure --enable-shared --disable-static --includedir="%_includedir/%name"
make %{?_smp_mflags}
%install
b="%buildroot"
make %{?_smp_mflags} install DESTDIR="$b"
find "$b/%_libdir" -type f -name "*.la" -delete
%check
make %{?_smp_mflags} check
%post -n libosmoabis5 -p /sbin/ldconfig
%postun -n libosmoabis5 -p /sbin/ldconfig
%post -n libosmotrau1 -p /sbin/ldconfig
%postun -n libosmotrau1 -p /sbin/ldconfig
%files -n libosmoabis5
%defattr(-,root,root)
%_libdir/libosmoabis.so.5*
%files -n libosmoabis-devel
%defattr(-,root,root)
%doc COPYING
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/abis/
%_libdir/libosmoabis.so
%_libdir/pkgconfig/libosmoabis.pc
%files -n libosmotrau1
%defattr(-,root,root)
%_libdir/libosmotrau.so.1*
%files -n libosmotrau-devel
%defattr(-,root,root)
%doc COPYING
%dir %_includedir/%name
%dir %_includedir/%name/osmocom
%_includedir/%name/osmocom/trau
%_libdir/libosmotrau.so
%_libdir/pkgconfig/libosmotrau.pc
%changelog