2014-10-02 23:36:14 +02:00
|
|
|
#
|
|
|
|
# spec file for package libosmo-netif
|
|
|
|
#
|
2017-04-29 00:34:02 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-10-02 23:36:14 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-04-29 00:34:02 +02:00
|
|
|
%define version_unconverted 0.0.6.67
|
2016-07-31 20:05:07 +02:00
|
|
|
|
2014-10-02 23:36:14 +02:00
|
|
|
Name: libosmo-netif
|
|
|
|
Summary: Osmocom library for muxed audio
|
2017-04-29 00:34:02 +02:00
|
|
|
License: GPL-2.0+
|
2016-03-11 09:51:27 +01:00
|
|
|
Group: Productivity/Telephony/Utilities
|
2017-04-29 00:34:02 +02:00
|
|
|
Version: 0.0.6.67
|
2016-03-11 12:03:14 +01:00
|
|
|
Release: 0
|
2017-04-29 01:26:05 +02:00
|
|
|
Url: https://osmocom.org/projects/libosmo-netif
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
Source: %name-%version.tar.xz
|
2016-01-22 19:26:27 +01:00
|
|
|
Patch1: osmo-talloc.diff
|
2014-10-02 23:36:14 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: automake
|
|
|
|
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
|
|
|
|
|
|
|
|
%description
|
2016-01-22 19:26:27 +01:00
|
|
|
Network interface demuxer library for OsmoCom projects.
|
2014-10-02 23:36:14 +02:00
|
|
|
|
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
|
2016-01-22 19:26:27 +01:00
|
|
|
Network interface demuxer library for OsmoCom projects.
|
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
|
2016-01-22 19:26:27 +01:00
|
|
|
Network interface demuxer library for OsmoCom projects.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libosmo-netif.
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%prep
|
2016-03-11 12:03:14 +01:00
|
|
|
%setup -q
|
2016-01-22 19:26:27 +01:00
|
|
|
%patch -P 1 -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
|
2016-01-22 19:26:27 +01:00
|
|
|
%configure --enable-shared --disable-static --includedir="%_includedir/%name"
|
2014-10-02 23:36:14 +02:00
|
|
|
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
|
2016-01-26 13:06:37 +01:00
|
|
|
if ! make %{?_smp_mflags} check; then
|
|
|
|
rv=$?
|
|
|
|
cat tests/testsuite.log
|
|
|
|
echo "Suppressing exit $rv"
|
|
|
|
# timing issue
|
|
|
|
fi
|
2014-10-02 23:36:14 +02:00
|
|
|
|
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 18:15:35 +01:00
|
|
|
%_libdir/libosmonetif.so.3*
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%files -n libosmonetif-devel
|
|
|
|
%defattr(-,root,root)
|
2015-12-23 19:52:37 +01:00
|
|
|
%doc COPYING
|
2016-01-22 19:26:27 +01:00
|
|
|
%dir %_includedir/%name
|
|
|
|
%dir %_includedir/%name/osmocom
|
|
|
|
%_includedir/%name/osmocom/netif/
|
2014-10-02 23:36:14 +02:00
|
|
|
%_libdir/libosmonetif.so
|
|
|
|
%_libdir/pkgconfig/libosmo-netif.pc
|
|
|
|
|
|
|
|
%changelog
|