diff --git a/sysprof-3.44.0.tar.xz b/sysprof-3.44.0.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..9b309faaa6d8dc4675c9aea27a59174a0609fc31 Binary files /dev/null and b/sysprof-3.44.0.tar.xz differ diff --git a/sysprof.spec b/sysprof.spec new file mode 100644 index 0000000000000000000000000000000000000000..8e41accdf35c9e7d708e586acb3d2d5f5f09e174 --- /dev/null +++ b/sysprof.spec @@ -0,0 +1,168 @@ +%define anolis_release 1 +%global glib2_version 2.67.4 + +Name: sysprof +Version: 3.44.0 +Release: %{anolis_release}%{?dist} +Summary: A system-wide Linux profiler + +License: GPLv3+ +URL: http://www.sysprof.com +Source0: https://download.gnome.org/sources/sysprof/3.44/sysprof-%{version}.tar.xz + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: gettext +BuildRequires: itstool +BuildRequires: meson +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) +BuildRequires: pkgconfig(json-glib-1.0) +BuildRequires: pkgconfig(libdazzle-1.0) +BuildRequires: pkgconfig(libsystemd) +BuildRequires: pkgconfig(libunwind-generic) +BuildRequires: pkgconfig(polkit-gobject-1) +BuildRequires: pkgconfig(systemd) +BuildRequires: /usr/bin/appstream-util +BuildRequires: /usr/bin/desktop-file-validate + +Requires: glib2 >= %{glib2_version} +Requires: hicolor-icon-theme +Requires: %{name}-cli = %{version}-%{release} +Requires: libsysprof-ui = %{version}-%{release} + +%description +Sysprof is a sampling CPU profiler for Linux that collects accurate, +high-precision data and provides efficient access to the sampled +calltrees. + + +%package cli +Summary: Sysprof command line utility +Requires: kernel-tools +Requires: libsysprof = %{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 + +%description -n libsysprof-ui +The libsysprof-ui package contains the Sysprof UI library. + + +%package capture-devel +Summary: Development files for sysprof-capture static library +License: BSD-2-Clause-Patent +Provides: sysprof-capture-static = %{version}-%{release} +Conflicts: %{name}-devel < 3.39.94-1 + +%description capture-devel +The %{name}-capture-devel package contains the sysprof-capture static library and header files. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}-capture-devel%{?_isa} = %{version}-%{release} +Requires: libsysprof = %{version}-%{release} +Requires: libsysprof-ui = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -p1 + + +%build +%meson +%meson_build + + +%install +%meson_install +%find_lang %{name} --with-gnome + + +%check +appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml +desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop + + +%files +%license COPYING +%doc NEWS README.md AUTHORS +%{_bindir}/sysprof +%{_datadir}/applications/org.gnome.Sysprof3.desktop +%{_datadir}/glib-2.0/schemas/org.gnome.sysprof3.gschema.xml +%{_datadir}/icons/hicolor/*/*/* +%{_datadir}/metainfo/org.gnome.Sysprof3.appdata.xml +%{_datadir}/mime/packages/sysprof-mime.xml + +%files cli -f %{name}.lang +%license COPYING +%{_bindir}/sysprof-cli +%{_libexecdir}/sysprofd +%{_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 +%{_datadir}/dbus-1/system-services/org.gnome.Sysprof3.service +%{_datadir}/polkit-1/actions/org.gnome.sysprof3.policy +%{_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 + +%files capture-devel +%license src/libsysprof-capture/COPYING +%dir %{_includedir}/sysprof-4 +%{_includedir}/sysprof-4/sysprof-address.h +%{_includedir}/sysprof-4/sysprof-capture-condition.h +%{_includedir}/sysprof-4/sysprof-capture-cursor.h +%{_includedir}/sysprof-4/sysprof-capture.h +%{_includedir}/sysprof-4/sysprof-capture-reader.h +%{_includedir}/sysprof-4/sysprof-capture-types.h +%{_includedir}/sysprof-4/sysprof-capture-writer.h +%{_includedir}/sysprof-4/sysprof-clock.h +%{_includedir}/sysprof-4/sysprof-collector.h +%{_includedir}/sysprof-4/sysprof-macros.h +%{_includedir}/sysprof-4/sysprof-platform.h +%{_includedir}/sysprof-4/sysprof-version.h +%{_includedir}/sysprof-4/sysprof-version-macros.h +%{_libdir}/libsysprof-capture-4.a +%{_libdir}/pkgconfig/sysprof-capture-4.pc + +%files devel +%{_includedir}/sysprof-4/ +%{_libdir}/pkgconfig/sysprof-4.pc +%{_libdir}/pkgconfig/sysprof-ui-4.pc +%{_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 +* Fri Jul 01 2022 happy_orange - 3.44.0-1 +- Init package from upstrem