diff --git a/_service b/_service new file mode 100644 index 0000000..e9005dc --- /dev/null +++ b/_service @@ -0,0 +1,22 @@ + + + + git + https://gitlab.freedesktop.org/upower/upower.git + v(.*) + + @PARENT_TAG@.@TAG_OFFSET@+git.%h + v?(.*)(\+0)? + \1 + enable + + + + *.tar + zst + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..fcb6436 --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://gitlab.freedesktop.org/upower/upower.git + 4f1ef04475ec2722217079594a64c1d7ec039594 \ No newline at end of file diff --git a/upower-1.90.7.13+git.4f1ef04.obscpio b/upower-1.90.7.13+git.4f1ef04.obscpio new file mode 100644 index 0000000..16474f5 --- /dev/null +++ b/upower-1.90.7.13+git.4f1ef04.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd15b13ac092220ac5af4a8ee649ec6cafb548dd92b8f6ffa0816826cf2a2b1c +size 1028108 diff --git a/upower-v1.90.2.tar.bz2 b/upower-v1.90.2.tar.bz2 deleted file mode 100644 index cc34fb7..0000000 --- a/upower-v1.90.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6cc46c9c753f614b970738e02ba7e37d86ebbedd81e9742dd22caafbd743894d -size 138265 diff --git a/upower.changes b/upower.changes index e59db30..c2583f4 100644 --- a/upower.changes +++ b/upower.changes @@ -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 + +- Add faa6d8a6b3dd92ab61cd3c5515dfd120ccb7e74b.patch -- dbus: show + charge-threshold-* status as yes/no. + +------------------------------------------------------------------- +Tue Nov 5 14:48:37 UTC 2024 - Bjørn Lie + +- 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 + +- Drop rcFOO symlinks (PED-266). + +------------------------------------------------------------------- +Sat Jul 6 13:17:39 UTC 2024 - Enrico Belleri + +- 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 + +- 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 diff --git a/upower.obsinfo b/upower.obsinfo index bfb3b03..d13be4c 100644 --- a/upower.obsinfo +++ b/upower.obsinfo @@ -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 diff --git a/upower.spec b/upower.spec index 86de2c1..56cfae7 100644 --- a/upower.spec +++ b/upower.spec @@ -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