Oliver Smith | 2f276eb | 2020-05-14 11:18:39 +0200 | [diff] [blame] | 1 | # |
| 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 Smith | 2f276eb | 2020-05-14 11:18:39 +0200 | [diff] [blame] | 15 | Name: libgtpnl |
Oliver Smith | 01b2d94 | 2020-05-14 11:21:59 +0200 | [diff] [blame] | 16 | Version: @VERSION@ |
Oliver Smith | 2f276eb | 2020-05-14 11:18:39 +0200 | [diff] [blame] | 17 | Release: 0 |
| 18 | Summary: GPRS tunnel configuration library |
| 19 | License: GPL-2.0-or-later AND LGPL-2.1-or-later |
| 20 | Group: Development/Libraries/C and C++ |
| 21 | URL: https://osmocom.org/projects/linux-kernel-gtp-u/wiki |
| 22 | Source: %{name}-%{version}.tar.xz |
| 23 | BuildRequires: libtool >= 2 |
| 24 | BuildRequires: pkgconfig |
| 25 | BuildRequires: xz |
| 26 | BuildRequires: pkgconfig(libmnl) >= 1.0.0 |
| 27 | |
| 28 | %description |
| 29 | libgtpnl wraps the genetlink-based GPRS tunnel configuration of the |
| 30 | Linux kernel into a C API. |
| 31 | |
| 32 | %package -n libgtpnl0 |
| 33 | Summary: GPRS tunnel configuration library |
| 34 | License: LGPL-2.1-or-later |
| 35 | Group: System/Libraries |
| 36 | |
| 37 | %description -n libgtpnl0 |
| 38 | libgtpnl wraps the genetlink-based GPRS tunnel configuration of the |
| 39 | Linux kernel into a C API. |
| 40 | |
| 41 | %package devel |
| 42 | Summary: Development files for the GPRS tunnel config library |
| 43 | License: GPL-2.0-or-later AND LGPL-2.1-or-later |
| 44 | Group: Development/Libraries/C and C++ |
| 45 | Requires: libgtpnl0 = %{version} |
| 46 | |
| 47 | %description devel |
| 48 | libgtpnl wraps the genetlink-based GPRS tunnel configuration of the |
| 49 | Linux kernel into a C API. |
| 50 | |
| 51 | This subpackage contains libraries and header files for developing |
| 52 | applications that want to make use of libgtpnl. |
| 53 | |
Gabriel Ganne | 465b76d | 2021-02-11 14:03:26 +0100 | [diff] [blame] | 54 | %package tools |
| 55 | Summary: Libgtpnl user tools |
| 56 | License: GPL-2.0-or-later AND LGPL-2.1-or-later |
| 57 | Group: Applications/System |
| 58 | Requires: libgtpnl0 = %{version} |
| 59 | |
| 60 | %description tools |
| 61 | libgtpnl wraps the genetlink-based GPRS tunnel configuration of the |
| 62 | Linux kernel into a C API. |
| 63 | |
| 64 | This subpackage contains sample tools to manage gtp interfaces and tunnels. |
| 65 | |
Oliver Smith | 2f276eb | 2020-05-14 11:18:39 +0200 | [diff] [blame] | 66 | %prep |
| 67 | %setup -q |
| 68 | |
| 69 | %build |
| 70 | echo "%{version}" >.tarball-version |
| 71 | autoreconf -fi |
| 72 | %configure --includedir="%{_includedir}/%{name}" |
| 73 | make %{?_smp_mflags} |
| 74 | |
| 75 | %install |
| 76 | %make_install |
| 77 | find %{buildroot} -type f -name "*.la" -delete -print |
| 78 | |
| 79 | %check |
| 80 | make %{?_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 Ganne | 465b76d | 2021-02-11 14:03:26 +0100 | [diff] [blame] | 94 | %files tools |
| 95 | %{_bindir}/gtp-link |
| 96 | %{_bindir}/gtp-tunnel |
| 97 | |
Oliver Smith | 2f276eb | 2020-05-14 11:18:39 +0200 | [diff] [blame] | 98 | %changelog |