2017-04-29 02:28:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package libgtpnl
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libgtpnl
|
2017-12-28 01:40:50 +01:00
|
|
|
Version: 1.1.0
|
2017-04-29 02:28:18 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: GPRS tunnel configuration library
|
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
|
|
|
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: pkg-config
|
2017-04-29 03:12:51 +02:00
|
|
|
BuildRequires: xz
|
2017-04-29 02:28:18 +02:00
|
|
|
BuildRequires: pkgconfig(libmnl) >= 1.0.0
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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+
|
|
|
|
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
|
|
|
|
License: GPL-2.0+ and LGPL-2.1+
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2017-04-29 03:12:51 +02:00
|
|
|
autoreconf -fi
|
2017-04-29 02:38:48 +02:00
|
|
|
%configure --includedir="%_includedir/%name"
|
2017-04-29 02:28:18 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
|
2017-04-29 20:33:34 +02:00
|
|
|
%check
|
|
|
|
make %{?_smp_mflags} check
|
|
|
|
|
2017-04-29 02:28:18 +02:00
|
|
|
%post -n libgtpnl0 -p /sbin/ldconfig
|
|
|
|
%postun -n libgtpnl0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n libgtpnl0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libgtpnl.so.0*
|
|
|
|
|
2017-04-29 20:33:34 +02:00
|
|
|
%files devel
|
2017-04-29 02:28:18 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING
|
|
|
|
%_includedir/libgtpnl/
|
|
|
|
%_libdir/libgtpnl.so
|
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|