blob: 0399d5d3f02a7b12af3520894352f659b6246027 [file] [log] [blame]
Oliver Smith2f276eb2020-05-14 11:18:39 +02001#
2# spec file for package libgtpnl
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
Oliver Smith2f276eb2020-05-14 11:18:39 +020015Name: libgtpnl
Oliver Smith01b2d942020-05-14 11:21:59 +020016Version: @VERSION@
Oliver Smith2f276eb2020-05-14 11:18:39 +020017Release: 0
18Summary: GPRS tunnel configuration library
19License: GPL-2.0-or-later AND LGPL-2.1-or-later
20Group: Development/Libraries/C and C++
21URL: https://osmocom.org/projects/linux-kernel-gtp-u/wiki
22Source: %{name}-%{version}.tar.xz
23BuildRequires: libtool >= 2
24BuildRequires: pkgconfig
25BuildRequires: xz
26BuildRequires: pkgconfig(libmnl) >= 1.0.0
27
28%description
29libgtpnl wraps the genetlink-based GPRS tunnel configuration of the
30Linux kernel into a C API.
31
32%package -n libgtpnl0
33Summary: GPRS tunnel configuration library
34License: LGPL-2.1-or-later
35Group: System/Libraries
36
37%description -n libgtpnl0
38libgtpnl wraps the genetlink-based GPRS tunnel configuration of the
39Linux kernel into a C API.
40
41%package devel
42Summary: Development files for the GPRS tunnel config library
43License: GPL-2.0-or-later AND LGPL-2.1-or-later
44Group: Development/Libraries/C and C++
45Requires: libgtpnl0 = %{version}
46
47%description devel
48libgtpnl wraps the genetlink-based GPRS tunnel configuration of the
49Linux kernel into a C API.
50
51This subpackage contains libraries and header files for developing
52applications that want to make use of libgtpnl.
53
Gabriel Ganne465b76d2021-02-11 14:03:26 +010054%package tools
55Summary: Libgtpnl user tools
56License: GPL-2.0-or-later AND LGPL-2.1-or-later
57Group: Applications/System
58Requires: libgtpnl0 = %{version}
59
60%description tools
61libgtpnl wraps the genetlink-based GPRS tunnel configuration of the
62Linux kernel into a C API.
63
64This subpackage contains sample tools to manage gtp interfaces and tunnels.
65
Oliver Smith2f276eb2020-05-14 11:18:39 +020066%prep
67%setup -q
68
69%build
70echo "%{version}" >.tarball-version
71autoreconf -fi
72%configure --includedir="%{_includedir}/%{name}"
73make %{?_smp_mflags}
74
75%install
76%make_install
77find %{buildroot} -type f -name "*.la" -delete -print
78
79%check
80make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
81
82%post -n libgtpnl0 -p /sbin/ldconfig
83%postun -n libgtpnl0 -p /sbin/ldconfig
84
85%files -n libgtpnl0
86%{_libdir}/libgtpnl.so.0*
87
88%files devel
89%license COPYING
90%{_includedir}/libgtpnl/
91%{_libdir}/libgtpnl.so
92%{_libdir}/pkgconfig/*.pc
93
Gabriel Ganne465b76d2021-02-11 14:03:26 +010094%files tools
95%{_bindir}/gtp-link
96%{_bindir}/gtp-tunnel
97
Oliver Smith2f276eb2020-05-14 11:18:39 +020098%changelog