File libosmo-cc.spec of Package libosmo-cc

#
# spec file for package libosmo-cc
#
# Copyright (c) 2024-2025, 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/
#

%define sover 3
Name:           libosmo-cc
Version:        2.1.0+git20251026
Release:        0
Summary:        Osmo-CC Library
License:        GPL-3.0-or-later
Group:          Productivity/Telephony/Servers
URL:            https://gitea.osmocom.org/cc/libosmo-cc
Source:         %{name}-%{version}.tar.xz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libosmocore) >= 1.6.0

%description
Osmo-CC Library.

%package -n libosmocc%{sover}
Summary:        Osmo-CC Library
License:        GPL-3.0-or-later
Group:          System/Libraries

%description -n libosmocc%{sover}
Osmo-CC Library.

%package -n libosmo-cc-devel
Summary:        Development files for libosmocc
License:        GPL-3.0-or-later
Group:          Development/Libraries/C and C++
Requires:       libosmocc%{sover} = %{version}

%description -n libosmo-cc-devel
Osmo-CC Library.

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

%prep
%autosetup -p1

%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 libosmocc%{sover}

%check
# no tests yet

%files -n libosmocc%{sover}
%{_libdir}/libosmocc.so.%{sover}*

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

%changelog
openSUSE Build Service is sponsored by