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-12-27 21:45:29 +01:00
|
|
|
%define version_unconverted 0.1.1
|
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-12-27 21:45:29 +01:00
|
|
|
Version: 0.1.1
|
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
|
2017-04-29 01:56:51 +02:00
|
|
|
BuildRequires: pkg-config >= 0.20
|
2014-10-02 23:36:14 +02:00
|
|
|
BuildRequires: xz
|
2017-12-27 21:45:29 +01:00
|
|
|
BuildRequires: pkgconfig(libosmoabis) >= 0.0.7
|
|
|
|
BuildRequires: pkgconfig(libosmocore) >= 0.10.0
|
|
|
|
BuildRequires: pkgconfig(libosmogsm) >= 0.10.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
|
|
|
|
2017-12-27 21:45:29 +01:00
|
|
|
%package -n libosmonetif4
|
2014-10-02 23:36:14 +02:00
|
|
|
Summary: Osmocom library for muxed audio
|
|
|
|
License: AGPL-3.0+
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-12-27 21:45:29 +01:00
|
|
|
%description -n libosmonetif4
|
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++
|
2017-12-27 21:45:29 +01:00
|
|
|
Requires: libosmonetif4 = %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
|
|
|
|
2017-12-27 21:45:29 +01:00
|
|
|
%post -n libosmonetif4 -p /sbin/ldconfig
|
|
|
|
%postun -n libosmonetif4 -p /sbin/ldconfig
|
2014-10-02 23:36:14 +02:00
|
|
|
|
2017-12-27 21:45:29 +01:00
|
|
|
%files -n libosmonetif4
|
2014-10-02 23:36:14 +02:00
|
|
|
%defattr(-,root,root)
|
2017-12-27 21:45:29 +01:00
|
|
|
%_libdir/libosmonetif.so.4*
|
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
|