| 1 |
# |
| 2 |
# spec file for package libosmo-netif |
| 3 |
# |
| 4 |
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. |
| 5 |
# |
| 6 |
# All modifications and additions to the file contributed by third parties |
| 7 |
# remain the property of their copyright owners, unless otherwise agreed |
| 8 |
# upon. The license for this file, and modifications and additions to the |
| 9 |
# file, is the same license as for the pristine package itself (unless the |
| 10 |
# license for the pristine package is not an Open Source License, in which |
| 11 |
# case the license is the MIT License). An "Open Source License" is a |
| 12 |
# license that conforms to the Open Source Definition (Version 1.9) |
| 13 |
# published by the Open Source Initiative. |
| 14 |
|
| 15 |
Name: libosmo-netif |
| 16 |
Version: @VERSION@ |
| 17 |
Release: 0 |
| 18 |
Summary: Osmocom library for muxed audio |
| 19 |
License: GPL-2.0-or-later |
| 20 |
Group: Productivity/Telephony/Utilities |
| 21 |
URL: https://osmocom.org/projects/libosmo-netif |
| 22 |
Source: %{name}-%{version}.tar.xz |
| 23 |
BuildRequires: automake |
| 24 |
BuildRequires: libtool >= 2 |
| 25 |
BuildRequires: lksctp-tools-devel |
| 26 |
BuildRequires: pkgconfig >= 0.20 |
| 27 |
BuildRequires: pkgconfig(libosmocore) >= 1.12.0 |
| 28 |
BuildRequires: pkgconfig(libosmogsm) >= 1.12.0 |
| 29 |
BuildRequires: pkgconfig(libosmocodec) >= 1.12.0 |
| 30 |
BuildRequires: pkgconfig(libosmovty) >= 1.12.0 |
| 31 |
|
| 32 |
%description |
| 33 |
Network interface demuxer library for OsmoCom projects. |
| 34 |
|
| 35 |
%package -n libosmonetif11 |
| 36 |
Summary: Osmocom library for muxed audio |
| 37 |
License: AGPL-3.0-or-later |
| 38 |
Group: System/Libraries |
| 39 |
|
| 40 |
%description -n libosmonetif11 |
| 41 |
Network interface demuxer library for OsmoCom projects. |
| 42 |
|
| 43 |
%package -n libosmonetif-devel |
| 44 |
Summary: Development files for the Osmocom muxed audio library |
| 45 |
License: AGPL-3.0-or-later |
| 46 |
Group: Development/Libraries/C and C++ |
| 47 |
Requires: libosmonetif11 = %{version} |
| 48 |
|
| 49 |
%description -n libosmonetif-devel |
| 50 |
Network interface demuxer library for OsmoCom projects. |
| 51 |
|
| 52 |
This subpackage contains libraries and header files for developing |
| 53 |
applications that want to make use of libosmo-netif. |
| 54 |
|
| 55 |
%prep |
| 56 |
%setup -q |
| 57 |
|
| 58 |
%build |
| 59 |
echo "%{version}" >.tarball-version |
| 60 |
autoreconf -fiv |
| 61 |
%configure --enable-shared --disable-static --includedir="%{_includedir}/%{name}" |
| 62 |
make %{?_smp_mflags} |
| 63 |
|
| 64 |
%install |
| 65 |
%make_install |
| 66 |
find %{buildroot} -type f -name "*.la" -delete -print |
| 67 |
|
| 68 |
%check |
| 69 |
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +) |
| 70 |
|
| 71 |
%post -n libosmonetif11 -p /sbin/ldconfig |
| 72 |
%postun -n libosmonetif11 -p /sbin/ldconfig |
| 73 |
|
| 74 |
%files -n libosmonetif11 |
| 75 |
%{_libdir}/libosmonetif.so.11* |
| 76 |
|
| 77 |
%files -n libosmonetif-devel |
| 78 |
%license COPYING |
| 79 |
%dir %{_includedir}/%{name} |
| 80 |
%dir %{_includedir}/%{name}/osmocom |
| 81 |
%{_includedir}/%{name}/osmocom/netif/ |
| 82 |
%{_libdir}/libosmonetif.so |
| 83 |
%{_libdir}/pkgconfig/libosmo-netif.pc |
| 84 |
|
| 85 |
%changelog |