forked from pool/libosmo-abis
Jan Engelhardt
5a932ab170
OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmo-abis?expand=0&rev=4
123 lines
3.4 KiB
RPMSpec
123 lines
3.4 KiB
RPMSpec
#
|
|
# spec file for package libosmo-abis
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products 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
|
|
Summary: Osmocom library for A-bis interface between BTS and BSC
|
|
Version: 0.3.0
|
|
Release: 0
|
|
License: AGPL-3.0+ and GPL-2.0+
|
|
Group: Development/Libraries/C and C++
|
|
Url: http://openbsc.osmocom.org/trac/wiki/libosmo-abis
|
|
|
|
#Git-Clone: git://git.osmocom.org/libosmo-abis
|
|
#Snapshot: 0.3.0
|
|
Source: %name-%version.tar.xz
|
|
Patch1: osmo-version.diff
|
|
Patch2: osmo-talloc.diff
|
|
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
|
|
|
|
%description
|
|
|
|
%package -n libosmoabis4
|
|
Summary: A-bis interface core library
|
|
License: AGPL-3.0+
|
|
Group: System/Libraries
|
|
|
|
%description -n libosmoabis4
|
|
|
|
%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: libosmoabis4 = %version
|
|
Requires: libosmocore-devel >= 0.3.0
|
|
Requires: libosmogsm-devel >= 0.3.10
|
|
|
|
%description -n libosmoabis-devel
|
|
|
|
%package -n libosmotrau0
|
|
Summary: Osmocom TRAU (E1/RTP) library
|
|
License: GPL-2.0+
|
|
Group: System/Libraries
|
|
|
|
%description -n libosmotrau0
|
|
|
|
%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: libosmotrau0 = %version
|
|
|
|
%description -n libosmotrau-devel
|
|
|
|
%prep
|
|
%setup -qn %name
|
|
%patch -P 1 -P 2 -p1
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure --enable-shared --disable-static
|
|
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 libosmoabis4 -p /sbin/ldconfig
|
|
%postun -n libosmoabis4 -p /sbin/ldconfig
|
|
%post -n libosmotrau0 -p /sbin/ldconfig
|
|
%postun -n libosmotrau0 -p /sbin/ldconfig
|
|
|
|
%files -n libosmoabis4
|
|
%defattr(-,root,root)
|
|
%_libdir/libosmoabis.so.4*
|
|
|
|
%files -n libosmoabis-devel
|
|
%defattr(-,root,root)
|
|
%dir %_includedir/osmocom
|
|
%_includedir/osmocom/abis/
|
|
%_libdir/libosmoabis.so
|
|
%_libdir/pkgconfig/libosmoabis.pc
|
|
|
|
%files -n libosmotrau0
|
|
%defattr(-,root,root)
|
|
%_libdir/libosmotrau.so.0*
|
|
|
|
%files -n libosmotrau-devel
|
|
%defattr(-,root,root)
|
|
%dir %_includedir/osmocom
|
|
%_includedir/osmocom/trau
|
|
%_libdir/libosmotrau.so
|
|
%_libdir/pkgconfig/libosmotrau.pc
|
|
|
|
%changelog
|