2014-10-02 23:36:14 +02:00
|
|
|
#
|
|
|
|
# spec file for package libosmo-netif
|
|
|
|
#
|
2022-08-03 18:33:31 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
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.
|
|
|
|
|
2018-12-11 02:16:44 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-10-02 23:36:14 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libosmo-netif
|
2022-08-03 18:33:31 +02:00
|
|
|
Version: 1.2.0
|
2021-03-14 21:55:20 +01:00
|
|
|
Release: 0
|
2014-10-02 23:36:14 +02:00
|
|
|
Summary: Osmocom library for muxed audio
|
2018-12-11 02:16:44 +01:00
|
|
|
License: GPL-2.0-or-later
|
2016-03-11 09:51:27 +01:00
|
|
|
Group: Productivity/Telephony/Utilities
|
2020-09-06 14:23:20 +02:00
|
|
|
URL: https://osmocom.org/projects/libosmo-netif
|
2014-10-02 23:36:14 +02:00
|
|
|
|
2021-03-14 21:55:20 +01:00
|
|
|
Source: https://github.com/osmocom/libosmo-netif/archive/%version.tar.gz
|
2016-01-22 19:26:27 +01:00
|
|
|
Patch1: osmo-talloc.diff
|
2014-10-02 23:36:14 +02:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool >= 2
|
2015-12-23 18:15:35 +01:00
|
|
|
BuildRequires: lksctp-tools-devel
|
2017-04-29 01:56:51 +02:00
|
|
|
BuildRequires: pkg-config >= 0.20
|
2021-03-14 21:55:20 +01:00
|
|
|
BuildRequires: pkgconfig(libosmocore) >= 1.5.0
|
|
|
|
BuildRequires: pkgconfig(libosmogsm) >= 1.5.0
|
2017-10-03 01:06:33 +02:00
|
|
|
BuildRequires: pkgconfig(talloc)
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%description
|
2016-01-22 19:26:27 +01:00
|
|
|
Network interface demuxer library for OsmoCom projects.
|
2014-10-02 23:36:14 +02:00
|
|
|
|
2019-08-15 06:41:45 +02:00
|
|
|
%package -n libosmonetif8
|
2014-10-02 23:36:14 +02:00
|
|
|
Summary: Osmocom library for muxed audio
|
2018-12-11 02:16:44 +01:00
|
|
|
License: AGPL-3.0-or-later
|
2014-10-02 23:36:14 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2019-08-15 06:41:45 +02:00
|
|
|
%description -n libosmonetif8
|
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
|
2018-12-11 02:16:44 +01:00
|
|
|
License: AGPL-3.0-or-later
|
2014-10-02 23:36:14 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-08-15 06:41:45 +02:00
|
|
|
Requires: libosmonetif8 = %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
|
2020-09-06 14:23:20 +02:00
|
|
|
%autosetup -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
|
2020-09-06 14:23:20 +02:00
|
|
|
# bugzilla.opensuse.org/795968 for rationale
|
|
|
|
%configure --includedir="%_includedir/%name" \
|
|
|
|
--enable-shared --disable-static
|
|
|
|
%make_build
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%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
|
2020-09-06 14:23:20 +02:00
|
|
|
if ! %make_build check; then
|
2016-01-26 13:06:37 +01:00
|
|
|
rv=$?
|
|
|
|
cat tests/testsuite.log
|
|
|
|
echo "Suppressing exit $rv"
|
|
|
|
# timing issue
|
|
|
|
fi
|
2014-10-02 23:36:14 +02:00
|
|
|
|
2019-08-15 06:41:45 +02:00
|
|
|
%post -n libosmonetif8 -p /sbin/ldconfig
|
|
|
|
%postun -n libosmonetif8 -p /sbin/ldconfig
|
2014-10-02 23:36:14 +02:00
|
|
|
|
2019-08-15 06:41:45 +02:00
|
|
|
%files -n libosmonetif8
|
2022-08-03 18:33:31 +02:00
|
|
|
%_libdir/libosmonetif.so.*
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
%files -n libosmonetif-devel
|
2020-09-06 14:23:20 +02:00
|
|
|
%license COPYING
|
|
|
|
%dir %_includedir/%name/
|
|
|
|
%dir %_includedir/%name/osmocom/
|
2016-01-22 19:26:27 +01:00
|
|
|
%_includedir/%name/osmocom/netif/
|
2014-10-02 23:36:14 +02:00
|
|
|
%_libdir/libosmonetif.so
|
|
|
|
%_libdir/pkgconfig/libosmo-netif.pc
|
|
|
|
|
|
|
|
%changelog
|