diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/jenkins.sh | 4 | ||||
-rw-r--r-- | contrib/libgtpnl.spec.in | 98 |
2 files changed, 100 insertions, 2 deletions
diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index 43e81a1..353cf49 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -7,7 +7,7 @@ osmo-clean-workspace.sh autoreconf --install --force ./configure --enable-sanitize CFLAGS="-Werror" CPPFLAGS="-Werror" $MAKE $PARALLEL_MAKE -$MAKE distcheck -$MAKE maintainer-clean +$MAKE $PARALLEL_MAKE distcheck +$MAKE $PARALLEL_MAKE maintainer-clean osmo-clean-workspace.sh diff --git a/contrib/libgtpnl.spec.in b/contrib/libgtpnl.spec.in new file mode 100644 index 0000000..0399d5d --- /dev/null +++ b/contrib/libgtpnl.spec.in @@ -0,0 +1,98 @@ +# +# spec file for package libgtpnl +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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. + +Name: libgtpnl +Version: @VERSION@ +Release: 0 +Summary: GPRS tunnel configuration library +License: GPL-2.0-or-later AND LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: https://osmocom.org/projects/linux-kernel-gtp-u/wiki +Source: %{name}-%{version}.tar.xz +BuildRequires: libtool >= 2 +BuildRequires: pkgconfig +BuildRequires: xz +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 +License: LGPL-2.1-or-later +Group: System/Libraries + +%description -n libgtpnl0 +libgtpnl wraps the genetlink-based GPRS tunnel configuration of the +Linux kernel into a C API. + +%package devel +Summary: Development files for the GPRS tunnel config library +License: GPL-2.0-or-later AND LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +Requires: libgtpnl0 = %{version} + +%description devel +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. + +%package tools +Summary: Libgtpnl user tools +License: GPL-2.0-or-later AND LGPL-2.1-or-later +Group: Applications/System +Requires: libgtpnl0 = %{version} + +%description tools +libgtpnl wraps the genetlink-based GPRS tunnel configuration of the +Linux kernel into a C API. + +This subpackage contains sample tools to manage gtp interfaces and tunnels. + +%prep +%setup -q + +%build +echo "%{version}" >.tarball-version +autoreconf -fi +%configure --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 libgtpnl0 -p /sbin/ldconfig +%postun -n libgtpnl0 -p /sbin/ldconfig + +%files -n libgtpnl0 +%{_libdir}/libgtpnl.so.0* + +%files devel +%license COPYING +%{_includedir}/libgtpnl/ +%{_libdir}/libgtpnl.so +%{_libdir}/pkgconfig/*.pc + +%files tools +%{_bindir}/gtp-link +%{_bindir}/gtp-tunnel + +%changelog |