blob: 86dfee7352f25944cdfd4772fc82df269a4aa3a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
Name: libosmo-pfcp
Version: @VERSION@
Release: 0
Summary: PFCP protocol encoding, decoding and endpoint implementation
License: GPL-2.0-or-later
Group: Hardware/Mobile
URL: https://osmocom.org/projects/libosmo-pfcp
Source: %{name}-%{version}.tar.xz
BuildRequires: autoconf-archive
BuildRequires: automake >= 1.9
BuildRequires: libtool >= 2
BuildRequires: lksctp-tools-devel
BuildRequires: pkgconfig >= 0.20
BuildRequires: pkgconfig(libosmocore) >= 1.9.0
BuildRequires: pkgconfig(libosmogsm) >= 1.9.0
BuildRequires: pkgconfig(talloc)
%description
Description: Osmocom PFCP protocol implementation (metapackage)
Install Osmocom PFCP and generic TLV protocol libraries.
libosmo-gtlv and libosmo-pfcp
%package -n libosmo-gtlv1
Summary: Generic TLV and TLIV protocol support
License: GPL-2.0-or-later
Group: System/Libraries
%description -n libosmo-gtlv1
Decoding, encoding and logging of protocols using a Tag-Length-Value and/or
Tag-Length-Instance-Value structure.
%package -n libosmo-gtlv-devel
Summary: Development files for libosmo-pfcp
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
Requires: libosmo-gtlv1 = %{version}
%description -n libosmo-gtlv-devel
libosmo-pfcp implements decoding, encoding and endpoint implementation of the
Packet Forwarding Control Protocol (3GPP TS 29.244). This package in particular
contains the files for compiling a program using this library.
%package -n libosmo-pfcp0
Summary: PFCP protocol support
License: GPL-2.0-or-later
Group: System/Libraries
%description -n libosmo-pfcp0
PFCP protocol support: Decoding, encoding and endpoint implementation of the
Packet Forwarding Control Protocol (3GPP TS 29.244).
%package -n libosmo-pfcp-devel
Summary: Development files for libosmo-pfcp
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
Requires: libosmo-pfcp0 = %{version}
%description -n libosmo-pfcp-devel
libosmo-pfcp implements decoding, encoding and endpoint implementation of the
Packet Forwarding Control Protocol (3GPP TS 29.244). This package in particular
contains the files for compiling a program using this library.
%prep
%setup -q
%build
echo "%{version}" >.tarball-version
autoreconf -fi
%configure \
--disable-static \
--includedir="%_includedir/%name"
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
%post -n libosmo-gtlv1 -p /sbin/ldconfig
%postun -n libosmo-gtlv1 -p /sbin/ldconfig
%post -n libosmo-pfcp0 -p /sbin/ldconfig
%postun -n libosmo-pfcp0 -p /sbin/ldconfig
%files -n libosmo-gtlv1
%{_libdir}/libosmo-gtlv.so.1*
%files -n libosmo-gtlv-devel
%dir %{_includedir}/%{name}
%dir %{_includedir}/%{name}/osmocom
%{_includedir}/%{name}/osmocom/gtlv
%{_libdir}/libosmo-gtlv.so
%{_libdir}/pkgconfig/libosmo-gtlv.pc
%files -n libosmo-pfcp0
%{_libdir}/libosmo-pfcp.so.0*
%files -n libosmo-pfcp-devel
%dir %{_includedir}/%{name}
%dir %{_includedir}/%{name}/osmocom
%{_includedir}/%{name}/osmocom/pfcp
%{_libdir}/libosmo-pfcp.so
%{_libdir}/pkgconfig/libosmo-pfcp.pc
%changelog
|