2017-04-29 02:28:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package libgtpnl
|
|
|
|
#
|
2024-10-21 00:16:55 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2017-04-29 02:28:18 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-11 01:43:32 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-29 02:28:18 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libgtpnl
|
2024-10-21 00:16:55 +02:00
|
|
|
Version: 1.3.0
|
2017-04-29 02:28:18 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: GPRS tunnel configuration library
|
2018-12-11 01:43:32 +01:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2017-04-29 02:28:18 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-09-06 13:54:28 +02:00
|
|
|
URL: https://osmocom.org/projects/linux-kernel-gtp-u/wiki
|
2021-03-14 22:11:33 +01:00
|
|
|
Source: https://github.com/osmocom/libgtpnl/archive/%version.tar.gz
|
2024-10-21 00:16:55 +02:00
|
|
|
Patch1: 0001-Revert-configure-regular_C-PP-FLAGS-C-PP-FLAGS.patch
|
|
|
|
Patch2: 0002-build-fix-bashims-in-configure.ac.patch
|
2017-04-29 02:28:18 +02:00
|
|
|
BuildRequires: libtool >= 2
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: pkgconfig(libmnl) >= 1.0.0
|
|
|
|
|
|
|
|
%description
|
|
|
|
libgtpnl wraps the genetlink-based GPRS tunnel configuration of the
|
|
|
|
Linux kernel into a C API.
|
|
|
|
|
|
|
|
%package -n libgtpnl0
|
|
|
|
Summary: GPRS tunnel configuration library
|
2018-12-11 01:43:32 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2017-04-29 02:28:18 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libgtpnl0
|
|
|
|
libgtpnl wraps the genetlink-based GPRS tunnel configuration of the
|
|
|
|
Linux kernel into a C API.
|
|
|
|
|
2017-04-29 20:33:34 +02:00
|
|
|
%package devel
|
2017-04-29 02:28:18 +02:00
|
|
|
Summary: Development files for the GPRS tunnel config library
|
2018-12-11 01:43:32 +01:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2017-04-29 02:28:18 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libgtpnl0 = %version
|
|
|
|
|
2017-04-29 20:33:34 +02:00
|
|
|
%description devel
|
2017-04-29 02:28:18 +02:00
|
|
|
libgtpnl wraps the genetlink-based GPRS tunnel configuration of the
|
|
|
|
Linux kernel into a C API.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libgtpnl.
|
|
|
|
|
2021-03-14 22:11:33 +01:00
|
|
|
%package tools
|
|
|
|
Summary: GTP tunnel configuration utilities
|
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
|
|
|
Group: Productivity/Networking/Routing
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Utilities to configure GTP tunnels.
|
|
|
|
|
2017-04-29 02:28:18 +02:00
|
|
|
%prep
|
2020-09-06 13:54:28 +02:00
|
|
|
%autosetup -p1
|
2017-04-29 02:28:18 +02:00
|
|
|
|
|
|
|
%build
|
2018-12-11 02:29:43 +01:00
|
|
|
echo "%version" >.tarball-version
|
2017-04-29 03:12:51 +02:00
|
|
|
autoreconf -fi
|
2020-09-06 13:54:28 +02:00
|
|
|
# bugzilla.opensuse.org/795968 for rationale
|
2017-04-29 02:38:48 +02:00
|
|
|
%configure --includedir="%_includedir/%name"
|
2020-09-06 13:54:28 +02:00
|
|
|
%make_build
|
2017-04-29 02:28:18 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
|
2017-04-29 20:33:34 +02:00
|
|
|
%check
|
2020-09-06 14:37:39 +02:00
|
|
|
%make_build check
|
2017-04-29 20:33:34 +02:00
|
|
|
|
2017-04-29 02:28:18 +02:00
|
|
|
%post -n libgtpnl0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgtpnl0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libgtpnl0
|
|
|
|
%_libdir/libgtpnl.so.0*
|
|
|
|
|
2017-04-29 20:33:34 +02:00
|
|
|
%files devel
|
2020-09-06 13:54:28 +02:00
|
|
|
%license COPYING
|
2017-04-29 02:28:18 +02:00
|
|
|
%_includedir/libgtpnl/
|
|
|
|
%_libdir/libgtpnl.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
2021-03-14 22:11:33 +01:00
|
|
|
%files tools
|
|
|
|
%_bindir/gtp-*
|
|
|
|
|
2017-04-29 02:28:18 +02:00
|
|
|
%changelog
|