That sounds very good, and having a libs package desirable anyway should more 
consumers pop up

On 25.08.23 20:43, Richard Hughes wrote:
On Fri, 25 Aug 2023 at 19:34, Richard Hughes <hughsi...@gmail.com> wrote:
Yes, that's what I have right now. I do need to split out a
passim-libs so that you can remove the daemon and just leave the tiny
client library.
Something like this perhaps?

diff --git a/passim.spec b/passim.spec
index bc51e57..3ad7ccc 100644
--- a/passim.spec
+++ b/passim.spec
@@ -21,10 +21,18 @@ BuildRequires: systemd-rpm-macros
  BuildRequires: systemd >= %{systemd_version}

  Requires: glib2%{?_isa} >= %{glib2_version}
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}

  %description
  Passim is a daemon that allows software to share files on your local network.

+%package libs
+Summary: Local caching server library
+
+%description libs
+libpassim is a library that allows software to share files on your
local network
+using the passimd daemon.
+
  %package devel
  Summary: Development package for %{name}
  Requires: %{name}%{?_isa} = %{version}-%{release}
@@ -69,12 +77,15 @@ appstream-util validate-relax --nonet
%{buildroot}%{_metainfodir}/*.metainfo.xml
  %{_datadir}/dbus-1/system-services/org.freedesktop.Passim.service
  %{_datadir}/icons/hicolor/scalable/apps/org.freedesktop.Passim.png
  %{_datadir}/metainfo/org.freedesktop.Passim.metainfo.xml
-%{_libdir}/libpassim.so.1*
  %{_libdir}/girepository-1.0/Passim-1.0.typelib
  %{_libexecdir}/passimd
  %{_mandir}/man1/passim.1*
  %{_unitdir}/passim.service

+%files libs
+%license LICENSE
+%{_libdir}/libpassim.so.1*
+
  %files devel
  %{_datadir}/gir-1.0/Passim-1.0.gir
  %dir %{_includedir}/passim-1

...then fwupd would hard depend on passim-libs (automatically, via the
shared library use) and would "recommend" passim (the daemon) -- so
the latter could be easily removed.

Richard.
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to