2013-02-22 09:03:06 +01:00
|
|
|
#
|
|
|
|
# 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
|
2013-06-03 01:50:56 +02:00
|
|
|
Summary: Osmocom library for A-bis interface between BTS and BSC
|
2014-10-02 22:43:49 +02:00
|
|
|
Version: 0.3.0
|
|
|
|
Release: 0
|
2013-02-22 09:03:06 +01:00
|
|
|
License: AGPL-3.0+ and GPL-2.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-06-03 01:50:56 +02:00
|
|
|
Url: http://openbsc.osmocom.org/trac/wiki/libosmo-abis
|
2013-02-22 09:03:06 +01:00
|
|
|
|
|
|
|
#Git-Clone: git://git.osmocom.org/libosmo-abis
|
2014-10-02 22:43:49 +02:00
|
|
|
#Snapshot: 0.3.0
|
2014-10-02 22:56:40 +02:00
|
|
|
#Update osmo-version.diff too!
|
2013-02-22 09:03:06 +01:00
|
|
|
Source: %name-%version.tar.xz
|
|
|
|
Patch1: osmo-version.diff
|
|
|
|
Patch2: osmo-talloc.diff
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake >= 1.6
|
2014-07-21 10:07:15 +02:00
|
|
|
#BuildRequires: dahdi-linux-devel
|
2013-02-22 09:03:06 +01:00
|
|
|
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
|
|
|
|
|
2014-10-02 22:43:49 +02:00
|
|
|
%package -n libosmoabis4
|
2013-06-03 01:50:56 +02:00
|
|
|
Summary: A-bis interface core library
|
2013-02-22 09:03:06 +01:00
|
|
|
License: AGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2014-10-02 22:43:49 +02:00
|
|
|
%description -n libosmoabis4
|
2013-02-22 09:03:06 +01:00
|
|
|
|
|
|
|
%package -n libosmoabis-devel
|
|
|
|
Summary: Development files for the Osmocom A-bis core library
|
|
|
|
License: AGPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
2014-10-02 22:43:49 +02:00
|
|
|
Requires: libosmoabis4 = %version
|
2013-02-22 09:03:06 +01:00
|
|
|
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
|
2013-06-03 01:50:56 +02:00
|
|
|
%setup -qn %name
|
2014-07-21 10:07:15 +02:00
|
|
|
%patch -P 1 -P 2 -p1
|
2013-02-22 09:03:06 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fiv
|
2014-07-21 10:07:15 +02:00
|
|
|
%configure --enable-shared --disable-static
|
2013-02-22 09:03:06 +01:00
|
|
|
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
|
|
|
|
|
2014-10-02 22:43:49 +02:00
|
|
|
%post -n libosmoabis4 -p /sbin/ldconfig
|
|
|
|
%postun -n libosmoabis4 -p /sbin/ldconfig
|
2013-02-22 09:03:06 +01:00
|
|
|
%post -n libosmotrau0 -p /sbin/ldconfig
|
|
|
|
%postun -n libosmotrau0 -p /sbin/ldconfig
|
|
|
|
|
2014-10-02 22:43:49 +02:00
|
|
|
%files -n libosmoabis4
|
2013-02-22 09:03:06 +01:00
|
|
|
%defattr(-,root,root)
|
2014-10-02 22:43:49 +02:00
|
|
|
%_libdir/libosmoabis.so.4*
|
2013-02-22 09:03:06 +01:00
|
|
|
|
|
|
|
%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
|