From d94bd3d947562790cad055aea37c6d0429161f03 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Sun, 20 Sep 2020 10:37:41 +0200 Subject: [PATCH] Split out a separate libsysprof package ... and avoid -devel subpackage depending on the GUI app. --- sysprof.spec | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/sysprof.spec b/sysprof.spec index 5c52ea6..479a634 100644 --- a/sysprof.spec +++ b/sysprof.spec @@ -2,7 +2,7 @@ Name: sysprof Version: 3.38.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A system-wide Linux profiler License: GPLv3+ @@ -18,6 +18,7 @@ BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version} BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib2_version} BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} BuildRequires: pkgconfig(gobject-2.0) +BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.0 BuildRequires: pkgconfig(libdazzle-1.0) BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(polkit-gobject-1) @@ -40,14 +41,21 @@ calltrees. Summary: Sysprof command line utility # sysprofd needs turbostat Requires: kernel-tools +Requires: libsysprof%{?_isa} = %{version}-%{release} %description cli The %{name}-cli package contains the sysprof-cli command line utility. +%package -n libsysprof +Summary: Sysprof libraries + +%description -n libsysprof +The libsysprof package contains the Sysprof libraries. + + %package -n libsysprof-ui Summary: Sysprof UI library -BuildRequires: pkgconfig(gtk+-3.0) >= 3.22.0 %description -n libsysprof-ui The libsysprof-ui package contains the Sysprof UI library. @@ -55,7 +63,8 @@ The libsysprof-ui package contains the Sysprof UI library. %package devel Summary: Development files for %{name} -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: libsysprof%{?_isa} = %{version}-%{release} +Requires: libsysprof-ui%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for @@ -94,13 +103,7 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %files cli -f %{name}.lang %license COPYING %{_bindir}/sysprof-cli -%{_libdir}/libsysprof-4.so -%{_libdir}/libsysprof-memory-4.so -%{_libdir}/libsysprof-speedtrack-4.so %{_libexecdir}/sysprofd -%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof2.xml -%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml -%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Service.xml %{_datadir}/dbus-1/system.d/org.gnome.Sysprof2.conf %{_datadir}/dbus-1/system.d/org.gnome.Sysprof3.conf %{_datadir}/dbus-1/system-services/org.gnome.Sysprof2.service @@ -109,6 +112,12 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %{_unitdir}/sysprof2.service %{_unitdir}/sysprof3.service +%files -n libsysprof +%license COPYING +%{_libdir}/libsysprof-4.so +%{_libdir}/libsysprof-memory-4.so +%{_libdir}/libsysprof-speedtrack-4.so + %files -n libsysprof-ui %license COPYING %{_libdir}/libsysprof-ui-4.so @@ -119,9 +128,16 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %{_libdir}/pkgconfig/sysprof-capture-4.pc %{_libdir}/pkgconfig/sysprof-ui-4.pc %{_libdir}/libsysprof-capture-4.a +%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof2.xml +%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml +%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Service.xml %changelog +* Sun Sep 20 2020 Kalev Lember - 3.38.0-2 +- Split out a separate libsysprof package and avoid -devel subpackage depending + on the GUI app + * Sat Sep 12 2020 Kalev Lember - 3.38.0-1 - Update to 3.38.0