2014-10-02 23:36:14 +02:00
|
|
|
#
|
|
|
|
# spec file for package libosmo-netif
|
|
|
|
#
|
|
|
|
# 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-netif
|
|
|
|
Summary: Osmocom library for muxed audio
|
2015-12-23 18:15:35 +01:00
|
|
|
Version: 0.0.6.5
|
2014-10-02 23:36:14 +02:00
|
|
|
Release: 0
|
|
|
|
License: AGPL-3.0+ and GPL-2.0+
|
2015-12-23 18:15:35 +01:00
|
|
|
Group: Hardware/Mobile
|
2014-10-02 23:36:14 +02:00
|
|
|
Url: http://openbsc.osmocom.org/trac/
|
|
|
|
|
|
|
|
#Git-Clone: git://git.osmocom.org/libosmo-netif
|
|
|
|
#Git-Web: http://git.osmocom.org/libosmo-netif/
|
2015-12-23 18:15:35 +01:00
|
|
|
#Snapshot: 0.0.6-5-gcc4ce39
|
2014-10-02 23:36:14 +02:00
|
|
|
Source: %name-%version.tar.xz
|
2015-03-01 11:39:36 +01:00
|
|
|
Patch4: osmo-talloc.diff
|
2014-10-02 23:36:14 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
#BuildRequires: dahdi-linux-devel
|
|
|
|
BuildRequires: libtool >= 2
|
2015-12-23 18:15:35 +01:00
|
|
|
BuildRequires: lksctp-tools-devel
|
2014-10-02 23:36:14 +02:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: xz
|
2015-12-23 18:46:52 +01:00
|
|
|
BuildRequires: pkgconfig(libosmoabis) >= 0.3.2.3
|
2014-10-02 23:36:14 +02:00
|
|
|
BuildRequires: pkgconfig(libosmocore) >= 0.3.0
|
|
|
|
BuildRequires: pkgconfig(libosmogsm) >= 0.3.0
|
|
|
|
BuildRequires: pkgconfig(libosmovty) >= 0.3.0
|
|
|
|
BuildRequires: pkgconfig(ortp) >= 0.15.0
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
2015-12-23 18:15:35 +01:00
|
|
|
%package -n libosmonetif3
|
2014-10-02 23:36:14 +02:00
|
|
|
Summary: Osmocom library for muxed audio
|
|
|
|
License: AGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2015-12-23 18:15:35 +01:00
|
|
|
%description -n libosmonetif3
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%package -n libosmonetif-devel
|
|
|
|
Summary: Development files for the Osmocom muxed audio library
|
|
|
|
License: AGPL-3.0+
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-12-23 18:15:35 +01:00
|
|
|
Requires: libosmonetif3 = %version
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%description -n libosmonetif-devel
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn %name
|
2015-12-23 18:15:35 +01:00
|
|
|
%patch -P 4 -p1
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%build
|
2015-03-01 11:39:36 +01:00
|
|
|
echo "%version" >.tarball-version
|
2014-10-02 23:36:14 +02:00
|
|
|
autoreconf -fiv
|
|
|
|
%configure --enable-shared --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2015-03-01 11:39:36 +01:00
|
|
|
%make_install
|
|
|
|
find "%buildroot/%_libdir" -type f -name "*.la" -delete
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
2015-12-23 18:15:35 +01:00
|
|
|
%post -n libosmonetif3 -p /sbin/ldconfig
|
|
|
|
%postun -n libosmonetif3 -p /sbin/ldconfig
|
2014-10-02 23:36:14 +02:00
|
|
|
|
2015-12-23 18:15:35 +01:00
|
|
|
%files -n libosmonetif3
|
2014-10-02 23:36:14 +02:00
|
|
|
%defattr(-,root,root)
|
2015-12-23 19:42:46 +01:00
|
|
|
%doc COPYING
|
2015-12-23 18:15:35 +01:00
|
|
|
%_libdir/libosmonetif.so.3*
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%files -n libosmonetif-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %_includedir/osmocom
|
|
|
|
%_includedir/osmocom/netif/
|
|
|
|
%_libdir/libosmonetif.so
|
|
|
|
%_libdir/pkgconfig/libosmo-netif.pc
|
|
|
|
|
|
|
|
%changelog
|