File cellbroadcastd.spec of Package cellbroadcastd
#
# spec file for package cellbroadcastd
#
# Copyright (c) 2025 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global soname libcellbroadcast0_0-0
Name: cellbroadcastd
Version: 0.0.2
Release: 0
Summary: Cellbroadcastd provides a DBus daemon that manages cell broadcast messages received
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: GPL-3.0-or-later
URL: https://gitlab.freedesktop.org/devrtz/cellbroadcastd
Source: %name-%version.tar.xz
Source1: gvdb-0.0.1.tar.xz
BuildRequires: meson
BuildRequires: cmake
BuildRequires: pkgconfig(mobile-broadband-provider-info)
BuildRequires: pkgconfig(gmobile)
BuildRequires: pkgconfig(mm-glib)
BuildRequires: pkgconfig(gobject-introspection-1.0)
%description
Cellbroadcastd provides a DBus daemon that manages cell broadcast
messages received via ModemManager. It provides a storage for them
and allows configuring channels for the modem to watch out for. It
offers a library (libcellbroadcast) and GObject introspection bindings
to ease using it from applications.
%package -n %{soname}
Summary: Shared library for %{name}
%description -n %{soname}
Cellbroadcastd provides a DBus daemon that manages cell broadcast
messages received via ModemManager. It provides a storage for them
and allows configuring channels for the modem to watch out for. It
offers a library (libcellbroadcast) and GObject introspection bindings
to ease using it from applications.
This package contains the shared library for %{name}.
%package devel
Summary: DBus daemon that manages cell broadcast messages
Requires: %{name} = %{version}
Requires: %{soname} = %{version}
%description devel
Devel files for DBus daemon that manages cell broadcast messages
%prep
%autosetup -p1
cd subprojects
rm -rf *
tar -xvf %{SOURCE1}
mv $(basename -s .tar.xz %{SOURCE1}) gvdb
%build
%meson -Dsystemd_user_unit_dir=%{_userunitdir} \
%{nil}
%meson_build
%install
%meson_install
rm -rf %{buildroot}%{_libdir}/libcellbroadcast-0.0.a
%post -n %{soname} -p /sbin/ldconfig
%postun -n %{soname} -p /sbin/ldconfig
%files
%{_bindir}/cbcli
%{_libexecdir}/cellbroadcastd
%{_datadir}/glib-2.0/schemas/
%{_userunitdir}/cellbroadcastd.service
%{_datadir}/dbus-1/interfaces/
%{_datadir}/dbus-1/services/
%{_datadir}/applications/
%files -n %{soname}
%{_libdir}/libcellbroadcast-0.0.so.0
%files devel
%{_libdir}/libcellbroadcast-0.0.so
%{_includedir}/libcellbroadcast-0.0/
%{_libdir}/pkgconfig/libcellbroadcast-0.0.pc
%changelog