File libosmo-pfcp.spec of Package libosmo-pfcp

#
# spec file for package libosmo-pfcp
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# 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:           libosmo-pfcp
Version:        0.5.0.2
Release:        0
Summary:        Osmocom PFCP protocol implementation
License:        AGPL-3.0-or-later AND GPL-2.0-or-later
Group:          Productivity/Telephony/Servers
URL:            https://projects.osmocom.org/projects/libosmo-pfcp
Source:         %{name}-%{version}.tar.xz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  systemd-rpm-macros
BuildRequires:  pkgconfig(libosmocore) >= 1.11.0
BuildRequires:  pkgconfig(libosmogsm) >= 1.11.0
%{?systemd_requires}

%description
Osmocom PFCP protocol implementation.

%package -n libosmo-gtlv1
Summary:        Generic TLV and TLIV protocol support
License:        GPL-2.0-or-later
Group:          System/Libraries

%description -n libosmo-gtlv1
libosmo-gtlv implements decoding, encoding and logging of protocols
using a Tag-Length-Value and/or Tag-Length-Instance-Value structure.

%package -n libosmo-gtlv-devel
Summary:        Development files for libosmo-gtlv
License:        GPL-2.0-or-later
Group:          Development/Libraries/C and C++
Requires:       libosmo-gtlv1 = %{version}

%description -n libosmo-gtlv-devel
libosmo-gtlv implements decoding, encoding and logging of protocols
using a Tag-Length-Value and/or Tag-Length-Instance-Value structure.

This package provides development files for compiling a program
using libosmo-gtlv.

%package -n 	libosmo-pfcp4
Summary:        PFCP protocol support
License:        AGPL-3.0-or-later
Group:          System/Libraries

%description -n libosmo-pfcp4
Decoding, encoding and endpoint implementation of the Packet Forwarding
Control Protocol (3GPP TS 29.244).

%package -n libosmo-pfcp-devel
Summary:        Development files for libosmo-pfcp
License:        AGPL-3.0-or-later
Group:          Development/Libraries/C and C++
Requires:       libosmo-pfcp4 = %{version}

%description -n libosmo-pfcp-devel
Decoding, encoding and endpoint implementation of the Packet Forwarding
Control Protocol (3GPP TS 29.244).

This package provides development files for compiling a program
using libosmo-pfcp.

%prep
%autosetup

%build
echo "%{version}" >.tarball-version
autoreconf -fi
%configure --disable-static
%make_build

%install
%make_install
find "%buildroot/%_libdir" -type f -name "*.la" -delete

%ldconfig_scriptlets -n libosmo-gtlv1
%ldconfig_scriptlets -n libosmo-pfcp4

%check
%make_build check || (find . -name testsuite.log -exec cat {} +)

%files -n libosmo-gtlv1
%{_libdir}/libosmo-gtlv.so.1*

%files -n libosmo-pfcp4
%{_libdir}/libosmo-pfcp.so.4*

%files -n libosmo-gtlv-devel
%dir %{_includedir}/osmocom
%{_includedir}/osmocom/gtlv
%{_libdir}/libosmo-gtlv.so
%{_libdir}/pkgconfig/libosmo-gtlv.pc

%files -n libosmo-pfcp-devel
%dir %{_includedir}/osmocom
%{_includedir}/osmocom/pfcp
%{_libdir}/libosmo-pfcp.so
%{_libdir}/pkgconfig/libosmo-pfcp.pc

%changelog
openSUSE Build Service is sponsored by