Sync from SUSE:SLFO:Main upower revision cdce2410b26d9daa230efac31213c812

This commit is contained in:
Adrian Schröter 2025-02-20 11:24:33 +01:00
parent de43cf80e1
commit 047f854f89
7 changed files with 137 additions and 26 deletions

22
_service Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://gitlab.freedesktop.org/upower/upower.git</param>
<param name="versionrewrite-pattern">v(.*)</param>
<!--
<param name="revision">v1.90.7</param>
<param name="versionformat">@PARENT_TAG@</param>
-->
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@+git.%h</param>
<param name="versionrewrite-pattern">v?(.*)(\+0)?</param>
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</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>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://gitlab.freedesktop.org/upower/upower.git</param>
<param name="changesrevision">4f1ef04475ec2722217079594a64c1d7ec039594</param></service></servicedata>

BIN
upower-1.90.7.13+git.4f1ef04.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

BIN
upower-v1.90.2.tar.bz2 (Stored with Git LFS)

Binary file not shown.

View File

@ -1,3 +1,89 @@
-------------------------------------------------------------------
Thu Feb 13 11:11:22 UTC 2025 - trenn@suse.de
- Upower is a mature tool with mostly fixes being added, let's
move over to a "take the very latest git HEAD code base by default
approach". Also show the amount of additional patches on top of latest
public version and the latest git patch hash the sources are based
on in the version format (see below)
- Update to version 1.90.7.13+git.4f1ef04:
* linux: integration-test: a test case for Dualshock4 with a headphone jack
* linux: up-device-supply: Update the model name after changing the device type
* linux: device_supply: Prioritize Gaming Input
* dbus: UPower.xml: Update GetCriticalAction Values
* linux: integration-test: test case for the removable battery
* src: up-device-battery: Reset values when the battery is not present
* src: up-daemon: skip the battery if present = 0
* Update LINGUAS
* pre-commit-config: Remove deprecated default_stages "commit"
* contrib: setup: Install and setup pre-commit
- Remove upstreamed patch
D faa6d8a6b3dd92ab61cd3c5515dfd120ccb7e74b.patch
-------------------------------------------------------------------
Fri Jan 3 21:44:15 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
- Add faa6d8a6b3dd92ab61cd3c5515dfd120ccb7e74b.patch -- dbus: show
charge-threshold-* status as yes/no.
-------------------------------------------------------------------
Tue Nov 5 14:48:37 UTC 2024 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 1.90.6:
* Fractional battery percentage.
* CI enhancement.
* Tweak the default battery charging threshold to 75-80.
* Fix g_object_weak_ref: assertion 'g_atomic_int_get
(&object->ref_count) >= 1' failed.
- Changes from version 1.90.5:
* Suspend and Ignore as the CriticalPowerActions.
* Support for battery charging threshold.
* Tweak the device priority to make sure the device kind joystick
can be correctly shown.
- Add pkgconfig(polkit-gobject-1) BuildRequires: New dependency.
-------------------------------------------------------------------
Tue Oct 15 12:00:43 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Drop rcFOO symlinks (PED-266).
-------------------------------------------------------------------
Sat Jul 6 13:17:39 UTC 2024 - Enrico Belleri <kilgore.trout@idesmi.eu>
- Update to version 1.90.4:
* Resolved high disk and CPU rate.
* Stop guessing the unknown battery as a power supply.
* Continue to support lid handling.
* Fix org.freedesktop.UPower: EnergyRate is a positive value.
* Fix uni-test python script.
- Switch to tagged release.
- Update BuildRequires minimum versions
-------------------------------------------------------------------
Mon Feb 12 09:47:07 UTC 2024 - trenn@suse.de
- Update to version 1.90.2+15:
* Revert "ci: Update last ABI break"
* Revert "build: Bump the library soname after recent changes"
* Revert "all: Remove Lid handling"
* Revert "lib: Remove deprecated up_client_get_devices()"
* dbus: org.freedesktop.UPower: EnergyRate is a positive value
* linux: Adjust test_bluetooth_le_device for dbusmock 0.30.1
* linux: stop assuming power supply of unknown type as battery
* linux: drop f-literals without format string
* linux: prefer is not None over !=
* build: make 'udevrulesdir' and 'udevhwdbdir' as Linux-only
- Introduce _service obs_scm and obsinfo files for automated
update service via:
osc service mr
-------------------------------------------------------------------
Tue Jan 16 16:06:27 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Own /usr/share/gtk-doc: glib no longer uses gtk-doc and as a
consequence cannot be held responsible to deliver that basic
directory structure.
-------------------------------------------------------------------
Sat Jul 15 14:51:51 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,4 +1,4 @@
name: upower
version: 0.99.17
mtime: 1646847994
commit: c889154ec8e3e2239db9260d48b2e198d72ba002
version: 1.90.7.13+git.4f1ef04
mtime: 1739001483
commit: 4f1ef04475ec2722217079594a64c1d7ec039594

View File

@ -1,7 +1,7 @@
#
# spec file for package upower
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -21,39 +21,40 @@
%else
%define libplist2 0
%endif
Name: upower
Version: 1.90.2
Version: 1.90.7.13+git.4f1ef04
Release: 0
Summary: Power Device Enumeration Framework
License: GPL-2.0-or-later
Group: System/Daemons
URL: https://upower.freedesktop.org/
Source: https://gitlab.freedesktop.org/upower/upower/-/archive/v%{version}/upower-v%{version}.tar.bz2
#Source: https://gitlab.freedesktop.org/upower/upower/-/archive/v%%{version}/upower-v%%{version}.tar.bz2
Source: %{name}-%{version}.tar.zst
# PATCH-FIX-OPENSUSE: Skip installation of test-only dependencies
Patch1: skip-tests-install.patch
BuildRequires: gobject-introspection-devel >= 0.9.9
BuildRequires: gtk-doc >= 1.11
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: meson >= 0.49.0
BuildRequires: meson >= 0.60.0
BuildRequires: pkgconfig
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gio-2.0) >= 2.16.1
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.34.0
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gio-2.0) >= 2.66.0
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.66.0
BuildRequires: pkgconfig(glib-2.0) >= 2.66.0
BuildRequires: pkgconfig(gobject-2.0) >= 2.66.0
BuildRequires: pkgconfig(gudev-1.0) >= 235
BuildRequires: pkgconfig(libimobiledevice-1.0) >= 0.9.7
BuildRequires: pkgconfig(libusb-1.0) >= 1.0.0
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
%{?systemd_requires}
%if %libplist2
BuildRequires: pkgconfig(libplist-2.0)
%else
BuildRequires: pkgconfig(libplist) >= 0.12
%endif
BuildRequires: pkgconfig(libusb-1.0) >= 1.0.0
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
%{?systemd_requires}
%description
UPower is an abstraction for enumerating power devices, listening to
@ -105,7 +106,7 @@ system) are restricted using PolicyKit.
%lang_package
%prep
%autosetup -p1 -n %{name}-v%{version}
%autosetup -p1
%build
%meson \
@ -115,9 +116,6 @@ system) are restricted using PolicyKit.
%install
%meson_install
install -d %{buildroot}%{_sbindir}
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%find_lang %{name}
%pre
@ -139,11 +137,10 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%files
%license COPYING
%doc AUTHORS NEWS README
%doc AUTHORS NEWS README.md
%dir %{_sysconfdir}/UPower
%config(noreplace) %{_sysconfdir}/UPower/UPower.conf
%{_bindir}/upower
%{_sbindir}/rc%{name}
%dir %{_libexecdir}/upower
%{_libexecdir}/upower/upowerd
%{_udevrulesdir}/*.rules
@ -158,6 +155,8 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%{_mandir}/man7/UPower.7%{?ext_man}
%{_mandir}/man8/upowerd.8%{?ext_man}
%dir %{_localstatedir}/lib/upower
%{_datadir}/polkit-1/actions/org.freedesktop.upower.policy
%{_datadir}/zsh/site-functions/_upower
%files -n libupower-glib3
%{_libdir}/libupower-glib.so.*
@ -166,7 +165,7 @@ ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%{_libdir}/girepository-1.0/UPowerGlib-1.0.typelib
%files -n libupower-glib-devel
%doc %{_datadir}/gtk-doc/html/UPower/
%doc %{_datadir}/gtk-doc/
%{_includedir}/libupower-glib/
%{_libdir}/pkgconfig/upower-glib.pc
%{_libdir}/libupower-glib.so