From 483eb4dc51fd81ec9031b3396fa7c7fef4a335820201a7e594297cf3ea66dba6 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 19 Mar 2024 13:33:35 +0000 Subject: [PATCH] Accepting request 1159287 from GNOME:Next GNOME 46 OBS-URL: https://build.opensuse.org/request/show/1159287 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libgtop?expand=0&rev=93 --- _service | 19 +++++++++++++++++++ libgtop-2.40.0.tar.xz | 3 --- libgtop-2.41.3.obscpio | 3 +++ libgtop.changes | 33 +++++++++++++++++++++++++++++++++ libgtop.obsinfo | 4 ++++ libgtop.spec | 31 +++++++++++++++++++++---------- 6 files changed, 80 insertions(+), 13 deletions(-) create mode 100644 _service delete mode 100644 libgtop-2.40.0.tar.xz create mode 100644 libgtop-2.41.3.obscpio create mode 100644 libgtop.obsinfo diff --git a/_service b/_service new file mode 100644 index 0000000..d8e3a76 --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + + git + https://gitlab.gnome.org/GNOME/libgtop.git + 2.41.3 + @PARENT_TAG@+@TAG_OFFSET@ + (.*)\+0 + \1 + disable + + + + *.tar + zst + + + + diff --git a/libgtop-2.40.0.tar.xz b/libgtop-2.40.0.tar.xz deleted file mode 100644 index 79b0fb5..0000000 --- a/libgtop-2.40.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:78f3274c0c79c434c03655c1b35edf7b95ec0421430897fb1345a98a265ed2d4 -size 744316 diff --git a/libgtop-2.41.3.obscpio b/libgtop-2.41.3.obscpio new file mode 100644 index 0000000..c057e82 --- /dev/null +++ b/libgtop-2.41.3.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:123802afc8a406829d350f44e51c5194c4d7043c303b84e6d2286c126c6e5a6f +size 2663436 diff --git a/libgtop.changes b/libgtop.changes index 2a36393..d69472e 100644 --- a/libgtop.changes +++ b/libgtop.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Mon Feb 19 17:35:45 UTC 2024 - Dominique Leuenberger + +- Update to version 2.41.3: + + Fixed daemon buffer overflow. + + Updated translations. + +------------------------------------------------------------------- +Tue Jan 16 12:40:28 UTC 2024 - Dominique Leuenberger + +- Convert to source service for easier updating. +- Add libtool, gtk-doc, makeinfo and util-linux-systemd + BuildRequires and call autogen.sh: git checked out sources are + not bootstrapped. + +------------------------------------------------------------------- +Sun Oct 15 15:14:59 UTC 2023 - Bjørn Lie + +- Update to version 2.41.2: + + Change disk example read/write unit to bytes + + Fixed potential Buffer overflow when reading disk stats + + Changed disk read/write unit to bytes in example +- Changes from version 2.41.1: + + Skip loop and rom devices + + Allow building with gettext >= 0.20 + + Updated translations. +- Replace glib2-devel with pkgconfig(glib-2.0) BuildRequires: Align + with what configure checks for. +- Use autosetup and ldconfig_scriptlets macros. +- Build the doc sub-package as noarch. +- Add permissions PreReq and set_permissions and verify_permissions + macros in post and verifyscript sections. + ------------------------------------------------------------------- Mon Dec 19 08:45:11 UTC 2022 - Dominique Leuenberger diff --git a/libgtop.obsinfo b/libgtop.obsinfo new file mode 100644 index 0000000..5b2dad9 --- /dev/null +++ b/libgtop.obsinfo @@ -0,0 +1,4 @@ +name: libgtop +version: 2.41.3 +mtime: 1708105765 +commit: 526a51698173535312f6cab1408ac9a225063c9d diff --git a/libgtop.spec b/libgtop.spec index 944f40d..b761866 100644 --- a/libgtop.spec +++ b/libgtop.spec @@ -1,7 +1,7 @@ # # spec file for package libgtop # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,18 +18,23 @@ %define sover 11 Name: libgtop -Version: 2.40.0 +Version: 2.41.3 Release: 0 Summary: System status information library License: GPL-2.0-or-later Group: Development/Libraries/C and C++ URL: https://developer.gnome.org/libgtop/stable/ -Source: https://download.gnome.org/sources/libgtop/2.40/%{name}-%{version}.tar.xz -BuildRequires: glib2-devel +Source: %{name}-%{version}.tar.zst BuildRequires: gobject-introspection-devel +BuildRequires: gtk-doc +BuildRequires: libtool +BuildRequires: makeinfo BuildRequires: pkgconfig +BuildRequires: util-linux-systemd +BuildRequires: pkgconfig(glib-2.0) >= 2.6.0 BuildRequires: pkgconfig(gobject-2.0) >= 2.26.0 BuildRequires: pkgconfig(xau) +PreReq: permissions %description A library that fetches information about the running system, such as @@ -88,6 +93,7 @@ Group: Development/Libraries/GNOME Requires: libgtop-2_0-%{sover} = %{version} # FIXME: use proper Requires(pre/post/preun/...) PreReq: /sbin/install-info +BuildArch: noarch %description doc A library that fetches information about the running system, such as @@ -100,9 +106,10 @@ from /dev/kmem. %lang_package %prep -%setup -q +%autosetup -p1 %build +NOCONFIGURE=1 ./autogen.sh %configure\ --disable-static %make_build @@ -112,8 +119,7 @@ from /dev/kmem. find %{buildroot} -type f -name "*.la" -delete -print %find_lang %{name} %{?no_lang_C} -%post -n libgtop-2_0-%{sover} -p /sbin/ldconfig -%postun -n libgtop-2_0-%{sover} -p /sbin/ldconfig +%ldconfig_scriptlets -n libgtop-2_0-%{sover} %preun doc %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}2.info.gz @@ -121,11 +127,17 @@ find %{buildroot} -type f -name "*.la" -delete -print %post doc %install_info --info-dir=%{_infodir} %{_infodir}/%{name}2.info.gz +%post +%set_permissions /usr/libexec/libgtop_server2 + +%verifyscript +%verify_permissions -e /usr/libexec/libgtop_server2 + %files lang -f %{name}.lang %files -%{_bindir}/libgtop_daemon2 -%{_bindir}/libgtop_server2 +%{_libexecdir}/libgtop_server2 +%{_libexecdir}/libgtop_daemon2 %files -n libgtop-2_0-%{sover} %license COPYING @@ -140,7 +152,6 @@ find %{buildroot} -type f -name "*.la" -delete -print %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_datadir}/gir-1.0/GTop-2.0.gir -%doc %{_datadir}/gtk-doc/html/libgtop/ %files doc %{_infodir}/*.info*