Accepting request 1159543 from GNOME:Factory

GNOME 46 (forwarded request 1159287 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1159543
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgtop?expand=0&rev=64
This commit is contained in:
Dominique Leuenberger 2024-03-20 20:12:42 +00:00 committed by Git OBS Bridge
commit 511bb1d2fc
6 changed files with 80 additions and 13 deletions

19
_service Normal file
View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://gitlab.gnome.org/GNOME/libgtop.git</param>
<param name="revision">2.41.3</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">(.*)\+0</param>
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">disable</param>
</service>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">zst</param>
</service>
<service name="set_version" mode="manual" />
</services>

BIN
libgtop-2.40.0.tar.xz (Stored with Git LFS)

Binary file not shown.

3
libgtop-2.41.3.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:123802afc8a406829d350f44e51c5194c4d7043c303b84e6d2286c126c6e5a6f
size 2663436

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
Mon Feb 19 17:35:45 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 2.41.3:
+ Fixed daemon buffer overflow.
+ Updated translations.
-------------------------------------------------------------------
Tue Jan 16 12:40:28 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- 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 <bjorn.lie@gmail.com>
- 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 <dimstar@opensuse.org>

4
libgtop.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: libgtop
version: 2.41.3
mtime: 1708105765
commit: 526a51698173535312f6cab1408ac9a225063c9d

View File

@ -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*