File libosmo-netif.spec of Package libosmo-netif

89
 
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
Requires: osmocom-nightly = 202504022026
17
Version: 1.6.0.2.1b40.202504022026
18
Release:        0
19
Summary:        Osmocom library for muxed audio
20
License:        GPL-2.0-or-later
21
Group:          Productivity/Telephony/Utilities
22
URL:            https://osmocom.org/projects/libosmo-netif
23
Source: libosmo-netif_1.6.0.2.1b40.202504022026.tar.xz
24
Source1: rpmlintrc
25
BuildRequires:  automake
26
BuildRequires:  libtool >= 2
27
BuildRequires:  lksctp-tools-devel
28
BuildRequires:  pkgconfig >= 0.20
29
BuildRequires:  pkgconfig(libosmocore) >= 1.11.0
30
BuildRequires:  pkgconfig(libosmogsm) >= 1.11.0
31
BuildRequires:  pkgconfig(libosmocodec) >= 1.11.0
32
33
%description
34
Network interface demuxer library for OsmoCom projects.
35
36
%package -n libosmonetif11
37
Requires: osmocom-nightly = 202504022026
38
Summary:        Osmocom library for muxed audio
39
License:        AGPL-3.0-or-later
40
Group:          System/Libraries
41
42
%description -n libosmonetif11
43
Network interface demuxer library for OsmoCom projects.
44
45
%package -n libosmonetif-devel
46
Requires: osmocom-nightly = 202504022026
47
Summary:        Development files for the Osmocom muxed audio library
48
License:        AGPL-3.0-or-later
49
Group:          Development/Libraries/C and C++
50
Requires:       libosmonetif11 = %{version}
51
52
%description -n libosmonetif-devel
53
Network interface demuxer library for OsmoCom projects.
54
55
This subpackage contains libraries and header files for developing
56
applications that want to make use of libosmo-netif.
57
58
%prep
59
%setup -n libosmo-netif -q
60
61
%build
62
echo "%{version}" >.tarball-version
63
autoreconf -fiv
64
%configure --enable-shared --disable-static --includedir="%{_includedir}/%{name}"
65
make %{?_smp_mflags}
66
67
%install
68
%make_install
69
find %{buildroot} -type f -name "*.la" -delete -print
70
71
%check
72
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
73
74
%post   -n libosmonetif11 -p /sbin/ldconfig
75
%postun -n libosmonetif11 -p /sbin/ldconfig
76
77
%files -n libosmonetif11
78
%{_libdir}/libosmonetif.so.11*
79
80
%files -n libosmonetif-devel
81
%license COPYING
82
%dir %{_includedir}/%{name}
83
%dir %{_includedir}/%{name}/osmocom
84
%{_includedir}/%{name}/osmocom/netif/
85
%{_libdir}/libosmonetif.so
86
%{_libdir}/pkgconfig/libosmo-netif.pc
87
88
%changelog
89