commit
518b8a740e
@ -0,0 +1 @@
|
|||||||
|
SOURCES/upower-0.99.7.tar.xz
|
@ -0,0 +1 @@
|
|||||||
|
d65bea7ad4452096aa127d9410075fb3b080895a SOURCES/upower-0.99.7.tar.xz
|
@ -0,0 +1,338 @@
|
|||||||
|
From 91e9ccf69394d3c005f0386e92c8a84c158aa0c7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= <jprvita@endlessm.com>
|
||||||
|
Date: Thu, 1 Nov 2018 14:45:28 -0700
|
||||||
|
Subject: [PATCH 1/7] daemon: Make comment more succinct
|
||||||
|
|
||||||
|
This will help make it more clear when adding an extra state on the
|
||||||
|
following commit. It also makes the language consistent between the
|
||||||
|
different lines. There are no changes on the meaning of these lines nor
|
||||||
|
any functional changes on this commit.
|
||||||
|
---
|
||||||
|
src/up-daemon.c | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/up-daemon.c b/src/up-daemon.c
|
||||||
|
index 1a5dddc..95fff6b 100644
|
||||||
|
--- a/src/up-daemon.c
|
||||||
|
+++ b/src/up-daemon.c
|
||||||
|
@@ -209,9 +209,9 @@ up_daemon_update_display_battery (UpDaemon *daemon)
|
||||||
|
power_supply == FALSE)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
- /* If one battery is charging, then the composite is charging
|
||||||
|
- * If all batteries are discharging, then the composite is discharging
|
||||||
|
- * If all batteries are fully charged, then they're all fully charged
|
||||||
|
+ /* If one battery is charging, the composite is charging
|
||||||
|
+ * If all batteries are discharging, the composite is discharging
|
||||||
|
+ * If all batteries are fully charged, the composite is fully charged
|
||||||
|
* Everything else is unknown */
|
||||||
|
if (state == UP_DEVICE_STATE_CHARGING)
|
||||||
|
state_total = UP_DEVICE_STATE_CHARGING;
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
||||||
|
|
||||||
|
From dc2de4e321c34e62a784ac6d9971f7defbf4984f Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= <jprvita@endlessm.com>
|
||||||
|
Date: Mon, 15 Oct 2018 17:05:27 -0700
|
||||||
|
Subject: [PATCH 2/7] daemon: Consider pending-charge when calculating the
|
||||||
|
display state
|
||||||
|
|
||||||
|
Without this change if all batteries in the system are in the
|
||||||
|
pending-charge state, the display device state is set to unknown, and
|
||||||
|
its icon to battery-missing-symbolic.
|
||||||
|
|
||||||
|
This change makes the pending-charge state be considered when
|
||||||
|
calculating the DisplayDevice state, setting it to pending-charge if at
|
||||||
|
least one battery in the system is pending-charge and no other is
|
||||||
|
charging or discharging.
|
||||||
|
|
||||||
|
Closes: #81
|
||||||
|
Closes: #19
|
||||||
|
---
|
||||||
|
src/up-daemon.c | 6 +++++-
|
||||||
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/up-daemon.c b/src/up-daemon.c
|
||||||
|
index 95fff6b..690f379 100644
|
||||||
|
--- a/src/up-daemon.c
|
||||||
|
+++ b/src/up-daemon.c
|
||||||
|
@@ -210,14 +210,18 @@ up_daemon_update_display_battery (UpDaemon *daemon)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
/* If one battery is charging, the composite is charging
|
||||||
|
- * If all batteries are discharging, the composite is discharging
|
||||||
|
+ * If all batteries are discharging or pending-charge, the composite is discharging
|
||||||
|
* If all batteries are fully charged, the composite is fully charged
|
||||||
|
+ * If one battery is pending-charge and no other is charging or discharging, then the composite is pending-charge
|
||||||
|
* Everything else is unknown */
|
||||||
|
if (state == UP_DEVICE_STATE_CHARGING)
|
||||||
|
state_total = UP_DEVICE_STATE_CHARGING;
|
||||||
|
else if (state == UP_DEVICE_STATE_DISCHARGING &&
|
||||||
|
state_total != UP_DEVICE_STATE_CHARGING)
|
||||||
|
state_total = UP_DEVICE_STATE_DISCHARGING;
|
||||||
|
+ else if (state == UP_DEVICE_STATE_PENDING_CHARGE &&
|
||||||
|
+ (state_total == UP_DEVICE_STATE_UNKNOWN || state_total == UP_DEVICE_STATE_PENDING_CHARGE))
|
||||||
|
+ state_total = UP_DEVICE_STATE_PENDING_CHARGE;
|
||||||
|
else if (state == UP_DEVICE_STATE_FULLY_CHARGED &&
|
||||||
|
state_total == UP_DEVICE_STATE_UNKNOWN)
|
||||||
|
state_total = UP_DEVICE_STATE_FULLY_CHARGED;
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
||||||
|
|
||||||
|
From 4420273ca55a6f6e97dd5075bca63e8a012c8794 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= <jprvita@endlessm.com>
|
||||||
|
Date: Fri, 2 Nov 2018 09:49:33 -0700
|
||||||
|
Subject: [PATCH 3/7] integration-test: Define PENDING_CHARGE and
|
||||||
|
PENDING_DISCHARGE states
|
||||||
|
|
||||||
|
Add definitions for UP_DEVICE_STATE_PENDING_CHARGE and
|
||||||
|
UP_DEVICE_STATE_PENDING_DISCHARGE.
|
||||||
|
---
|
||||||
|
src/linux/integration-test | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/linux/integration-test b/src/linux/integration-test
|
||||||
|
index 81064dd..fbd95da 100755
|
||||||
|
--- a/src/linux/integration-test
|
||||||
|
+++ b/src/linux/integration-test
|
||||||
|
@@ -60,7 +60,9 @@ BATTERY_IFACE = 'org.bluez.Battery1'
|
||||||
|
UP_DEVICE_STATE_CHARGING,
|
||||||
|
UP_DEVICE_STATE_DISCHARGING,
|
||||||
|
UP_DEVICE_STATE_EMPTY,
|
||||||
|
- UP_DEVICE_STATE_FULLY_CHARGED) = (0, 1, 2, 3, 4)
|
||||||
|
+ UP_DEVICE_STATE_FULLY_CHARGED,
|
||||||
|
+ UP_DEVICE_STATE_PENDING_CHARGE,
|
||||||
|
+ UP_DEVICE_STATE_PENDING_DISCHARGE) = (0, 1, 2, 3, 4, 5, 6)
|
||||||
|
|
||||||
|
(UP_DEVICE_LEVEL_UNKNOWN,
|
||||||
|
UP_DEVICE_LEVEL_NONE,
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
||||||
|
|
||||||
|
From ec968accf4038a48a1bc8a1a8c177a7550739233 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= <jprvita@endlessm.com>
|
||||||
|
Date: Fri, 2 Nov 2018 09:55:22 -0700
|
||||||
|
Subject: [PATCH 4/7] integration-test: Test DisplayDevice pending-charge
|
||||||
|
|
||||||
|
Test relaying the pending-charge state to the DisplayDevice. This commit
|
||||||
|
adds three tests: only one battery pending-charge, one battery
|
||||||
|
pending-charge and another one discharging, and one battery
|
||||||
|
pending-charge and another one charging.
|
||||||
|
---
|
||||||
|
src/linux/integration-test | 72 ++++++++++++++++++++++++++++++++++++++
|
||||||
|
1 file changed, 72 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/linux/integration-test b/src/linux/integration-test
|
||||||
|
index fbd95da..ad6dade 100755
|
||||||
|
--- a/src/linux/integration-test
|
||||||
|
+++ b/src/linux/integration-test
|
||||||
|
@@ -491,6 +491,78 @@ class Tests(dbusmock.DBusTestCase):
|
||||||
|
self.assertEqual(self.get_dbus_display_property('WarningLevel'), UP_DEVICE_LEVEL_NONE)
|
||||||
|
self.stop_daemon()
|
||||||
|
|
||||||
|
+ def test_display_pending_charge_one_battery(self):
|
||||||
|
+ '''One battery pending-charge'''
|
||||||
|
+
|
||||||
|
+ self.testbed.add_device('power_supply', 'BAT0', None,
|
||||||
|
+ ['type', 'Battery',
|
||||||
|
+ 'present', '1',
|
||||||
|
+ 'status', 'Not charging',
|
||||||
|
+ 'charge_full', '10500000',
|
||||||
|
+ 'charge_full_design', '11000000',
|
||||||
|
+ 'capacity', '40',
|
||||||
|
+ 'voltage_now', '12000000'], [])
|
||||||
|
+
|
||||||
|
+ self.start_daemon()
|
||||||
|
+ devs = self.proxy.EnumerateDevices()
|
||||||
|
+ self.assertEqual(len(devs), 1)
|
||||||
|
+ self.assertEqual(self.get_dbus_display_property('State'), UP_DEVICE_STATE_PENDING_CHARGE)
|
||||||
|
+ self.stop_daemon()
|
||||||
|
+
|
||||||
|
+ def test_display_pending_charge_other_battery_discharging(self):
|
||||||
|
+ '''One battery pending-charge and another one discharging'''
|
||||||
|
+
|
||||||
|
+ self.testbed.add_device('power_supply', 'BAT0', None,
|
||||||
|
+ ['type', 'Battery',
|
||||||
|
+ 'present', '1',
|
||||||
|
+ 'status', 'Not charging',
|
||||||
|
+ 'charge_full', '10500000',
|
||||||
|
+ 'charge_full_design', '11000000',
|
||||||
|
+ 'capacity', '40',
|
||||||
|
+ 'voltage_now', '12000000'], [])
|
||||||
|
+ self.testbed.add_device('power_supply', 'BAT1', None,
|
||||||
|
+ ['type', 'Battery',
|
||||||
|
+ 'present', '1',
|
||||||
|
+ 'status', 'Discharging',
|
||||||
|
+ 'charge_full', '10500000',
|
||||||
|
+ 'charge_full_design', '11000000',
|
||||||
|
+ 'capacity', '40',
|
||||||
|
+ 'voltage_now', '12000000'], [])
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+ self.start_daemon()
|
||||||
|
+ devs = self.proxy.EnumerateDevices()
|
||||||
|
+ self.assertEqual(len(devs), 2)
|
||||||
|
+ self.assertEqual(self.get_dbus_display_property('State'), UP_DEVICE_STATE_DISCHARGING)
|
||||||
|
+ self.stop_daemon()
|
||||||
|
+
|
||||||
|
+ def test_display_pending_charge_other_battery_charging(self):
|
||||||
|
+ '''One battery pending-charge and another one charging'''
|
||||||
|
+
|
||||||
|
+ self.testbed.add_device('power_supply', 'BAT0', None,
|
||||||
|
+ ['type', 'Battery',
|
||||||
|
+ 'present', '1',
|
||||||
|
+ 'status', 'Not charging',
|
||||||
|
+ 'charge_full', '10500000',
|
||||||
|
+ 'charge_full_design', '11000000',
|
||||||
|
+ 'capacity', '40',
|
||||||
|
+ 'voltage_now', '12000000'], [])
|
||||||
|
+ self.testbed.add_device('power_supply', 'BAT1', None,
|
||||||
|
+ ['type', 'Battery',
|
||||||
|
+ 'present', '1',
|
||||||
|
+ 'status', 'Charging',
|
||||||
|
+ 'charge_full', '10500000',
|
||||||
|
+ 'charge_full_design', '11000000',
|
||||||
|
+ 'capacity', '40',
|
||||||
|
+ 'voltage_now', '12000000'], [])
|
||||||
|
+
|
||||||
|
+
|
||||||
|
+ self.start_daemon()
|
||||||
|
+ devs = self.proxy.EnumerateDevices()
|
||||||
|
+ self.assertEqual(len(devs), 2)
|
||||||
|
+ self.assertEqual(self.get_dbus_display_property('State'), UP_DEVICE_STATE_CHARGING)
|
||||||
|
+ self.stop_daemon()
|
||||||
|
+
|
||||||
|
def test_battery_charge(self):
|
||||||
|
'''battery which reports charge instead of energy
|
||||||
|
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
||||||
|
|
||||||
|
From 9318e73c8cd55522829970a74dc9d6ca59e4f828 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= <jprvita@endlessm.com>
|
||||||
|
Date: Fri, 2 Nov 2018 16:05:21 -0700
|
||||||
|
Subject: [PATCH 5/7] linux: Don't set out_state before state is final
|
||||||
|
|
||||||
|
Currently up_device_supply_refresh_battery sets out_state before the
|
||||||
|
state value is definitive, so the wrong state value is returned to the
|
||||||
|
caller. Luckily the only caller does not make use of this value at the
|
||||||
|
moment, so there are no user-visible consequences. Nonetheless this is a
|
||||||
|
bug, so this commit fixes it.
|
||||||
|
---
|
||||||
|
src/linux/up-device-supply.c | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
|
||||||
|
index 11a14e1..993cf12 100644
|
||||||
|
--- a/src/linux/up-device-supply.c
|
||||||
|
+++ b/src/linux/up-device-supply.c
|
||||||
|
@@ -664,7 +664,6 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply,
|
||||||
|
}
|
||||||
|
|
||||||
|
state = up_device_supply_get_state (native_path);
|
||||||
|
- *out_state = state;
|
||||||
|
|
||||||
|
/* reset unknown counter */
|
||||||
|
if (state != UP_DEVICE_STATE_UNKNOWN) {
|
||||||
|
@@ -834,6 +833,8 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply,
|
||||||
|
supply->priv->energy_old_first = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ *out_state = state;
|
||||||
|
+
|
||||||
|
g_object_set (device,
|
||||||
|
"energy", energy,
|
||||||
|
"energy-full", energy_full,
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
||||||
|
|
||||||
|
From ebea310f15cb61a3f5558800a45951d3c885201d Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= <jprvita@endlessm.com>
|
||||||
|
Date: Mon, 26 Nov 2018 13:12:18 -0800
|
||||||
|
Subject: [PATCH 6/7] linux: Map pending-charge to fully-charged when charge is
|
||||||
|
100%
|
||||||
|
|
||||||
|
Some devices report "Not charging" when the battery is full and AC power
|
||||||
|
is connected. In this situation we should report fully-charged instead
|
||||||
|
of pending-charge.
|
||||||
|
|
||||||
|
Closes: #86.
|
||||||
|
---
|
||||||
|
src/linux/up-device-supply.c | 6 ++++++
|
||||||
|
1 file changed, 6 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
|
||||||
|
index 993cf12..42971da 100644
|
||||||
|
--- a/src/linux/up-device-supply.c
|
||||||
|
+++ b/src/linux/up-device-supply.c
|
||||||
|
@@ -733,6 +733,12 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply,
|
||||||
|
percentage = CLAMP(percentage, 0.0f, 100.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
+ /* Some devices report "Not charging" when the battery is full and AC
|
||||||
|
+ * power is connected. In this situation we should report fully-charged
|
||||||
|
+ * instead of pending-charge. */
|
||||||
|
+ if (state == UP_DEVICE_STATE_PENDING_CHARGE && percentage == 100.0)
|
||||||
|
+ state = UP_DEVICE_STATE_FULLY_CHARGED;
|
||||||
|
+
|
||||||
|
/* the battery isn't charging or discharging, it's just
|
||||||
|
* sitting there half full doing nothing: try to guess a state */
|
||||||
|
if (state == UP_DEVICE_STATE_UNKNOWN && supply->priv->is_power_supply) {
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
||||||
|
|
||||||
|
From b327348ac160b57430ba4d2662835513ea35c08c Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= <jprvita@endlessm.com>
|
||||||
|
Date: Mon, 26 Nov 2018 13:13:00 -0800
|
||||||
|
Subject: [PATCH 7/7] integration-test: Test mapping pending-charge to
|
||||||
|
fully-charged
|
||||||
|
|
||||||
|
---
|
||||||
|
src/linux/integration-test | 25 +++++++++++++++++++++++++
|
||||||
|
1 file changed, 25 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/linux/integration-test b/src/linux/integration-test
|
||||||
|
index ad6dade..c6fb5c0 100755
|
||||||
|
--- a/src/linux/integration-test
|
||||||
|
+++ b/src/linux/integration-test
|
||||||
|
@@ -563,6 +563,31 @@ class Tests(dbusmock.DBusTestCase):
|
||||||
|
self.assertEqual(self.get_dbus_display_property('State'), UP_DEVICE_STATE_CHARGING)
|
||||||
|
self.stop_daemon()
|
||||||
|
|
||||||
|
+ def test_map_pending_charge_to_fully_charged(self):
|
||||||
|
+ '''Map pending-charge to fully-charged'''
|
||||||
|
+
|
||||||
|
+ bat0 = self.testbed.add_device('power_supply', 'BAT0', None,
|
||||||
|
+ ['type', 'Battery',
|
||||||
|
+ 'present', '1',
|
||||||
|
+ 'status', 'Not charging',
|
||||||
|
+ 'charge_full', '10500000',
|
||||||
|
+ 'charge_full_design', '11000000',
|
||||||
|
+ 'capacity', '100',
|
||||||
|
+ 'voltage_now', '12000000'], [])
|
||||||
|
+
|
||||||
|
+ self.start_daemon()
|
||||||
|
+ devs = self.proxy.EnumerateDevices()
|
||||||
|
+ self.assertEqual(len(devs), 1)
|
||||||
|
+ bat0_up = devs[0]
|
||||||
|
+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'State'), UP_DEVICE_STATE_FULLY_CHARGED)
|
||||||
|
+ self.stop_daemon()
|
||||||
|
+
|
||||||
|
+ # and make sure we still return pending-charge below 100%
|
||||||
|
+ self.testbed.set_attribute(bat0, 'capacity', '99')
|
||||||
|
+ self.start_daemon()
|
||||||
|
+ self.assertEqual(self.get_dbus_dev_property(bat0_up, 'State'), UP_DEVICE_STATE_PENDING_CHARGE)
|
||||||
|
+ self.stop_daemon()
|
||||||
|
+
|
||||||
|
def test_battery_charge(self):
|
||||||
|
'''battery which reports charge instead of energy
|
||||||
|
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
@ -0,0 +1,314 @@
|
|||||||
|
Summary: Power Management Service
|
||||||
|
Name: upower
|
||||||
|
Version: 0.99.7
|
||||||
|
Release: 4%{?dist}
|
||||||
|
License: GPLv2+
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
URL: http://upower.freedesktop.org/
|
||||||
|
Source0: http://upower.freedesktop.org/releases/upower-%{version}.tar.xz
|
||||||
|
|
||||||
|
BuildRequires: sqlite-devel
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: intltool
|
||||||
|
BuildRequires: gettext
|
||||||
|
BuildRequires: libgudev1-devel
|
||||||
|
%ifnarch s390 s390x
|
||||||
|
BuildRequires: libusbx-devel
|
||||||
|
BuildRequires: libimobiledevice-devel
|
||||||
|
%endif
|
||||||
|
BuildRequires: glib2-devel >= 2.6.0
|
||||||
|
BuildRequires: gobject-introspection-devel
|
||||||
|
BuildRequires: gtk-doc
|
||||||
|
BuildRequires: systemd
|
||||||
|
Requires: udev
|
||||||
|
Requires: gobject-introspection
|
||||||
|
|
||||||
|
# 0.99.10 backport
|
||||||
|
Patch0: pending-charge.patch
|
||||||
|
|
||||||
|
%if 0%{?fedora}
|
||||||
|
# From rhughes-f20-gnome-3-12 copr
|
||||||
|
Obsoletes: compat-upower09 < 0.99
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description
|
||||||
|
UPower (formerly DeviceKit-power) provides a daemon, API and command
|
||||||
|
line tools for managing power devices attached to the system.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Headers and libraries for UPower
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Headers and libraries for UPower.
|
||||||
|
|
||||||
|
%package devel-docs
|
||||||
|
Summary: Developer documentation for for libupower-glib
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description devel-docs
|
||||||
|
Developer documentation for for libupower-glib.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure \
|
||||||
|
--enable-gtk-doc \
|
||||||
|
--disable-static \
|
||||||
|
--enable-introspection \
|
||||||
|
%ifarch s390 s390x
|
||||||
|
--with-backend=dummy
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# Disable SMP build, fails to build docs
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||||
|
|
||||||
|
%find_lang upower
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files -f upower.lang
|
||||||
|
%{!?_licensedir:%global license %%doc}
|
||||||
|
%license COPYING
|
||||||
|
%doc NEWS AUTHORS HACKING README
|
||||||
|
%{_libdir}/libupower-glib.so.*
|
||||||
|
%{_sysconfdir}/dbus-1/system.d/*.conf
|
||||||
|
%ifnarch s390 s390x
|
||||||
|
/usr/lib/udev/rules.d/*.rules
|
||||||
|
%endif
|
||||||
|
%dir %{_localstatedir}/lib/upower
|
||||||
|
%dir %{_sysconfdir}/UPower
|
||||||
|
%config %{_sysconfdir}/UPower/UPower.conf
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_libexecdir}/*
|
||||||
|
%{_libdir}/girepository-1.0/*.typelib
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
%{_mandir}/man7/*
|
||||||
|
%{_mandir}/man8/*
|
||||||
|
%{_datadir}/dbus-1/system-services/*.service
|
||||||
|
/usr/lib/systemd/system/*.service
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_datadir}/dbus-1/interfaces/*.xml
|
||||||
|
%{_libdir}/libupower-glib.so
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
%{_datadir}/gir-1.0/*.gir
|
||||||
|
%dir %{_includedir}/libupower-glib
|
||||||
|
%{_includedir}/libupower-glib/up-*.h
|
||||||
|
%{_includedir}/libupower-glib/upower.h
|
||||||
|
|
||||||
|
%files devel-docs
|
||||||
|
%{_datadir}/gtk-doc
|
||||||
|
%dir %{_datadir}/gtk-doc/html/UPower
|
||||||
|
%{_datadir}/gtk-doc/html/UPower/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Dec 19 2022 Bastien Nocera <bnocera@redhat.com> - 0.99.7-4
|
||||||
|
- Fix pending-charge state on some laptops
|
||||||
|
Resolves: rhbz#2130664
|
||||||
|
|
||||||
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.7-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.99.7-2
|
||||||
|
- Switch to %%ldconfig_scriptlets
|
||||||
|
|
||||||
|
* Tue Nov 28 2017 Bastien Nocera <bnocera@redhat.com> - 0.99.7-1
|
||||||
|
+ upower-0.99.7-1
|
||||||
|
- Update to 0.99.7
|
||||||
|
- Add Bluetooth LE battery support
|
||||||
|
- Fix critical action after resume from hibernate
|
||||||
|
|
||||||
|
* Mon Sep 11 2017 Richard Hughes <rhughes@redhat.com> - 0.99.6-1
|
||||||
|
- New upstream release
|
||||||
|
- Detect joysticks as gaming input devices
|
||||||
|
- Fix crash when '@' is present in the device name
|
||||||
|
- Grab the model name from device if unavailable from battery
|
||||||
|
|
||||||
|
* Thu Aug 24 2017 Benjamin Berg <bberg@redhat.com> - 0.99.5-4
|
||||||
|
- Add patch to not correctly close the inhibitor FD
|
||||||
|
|
||||||
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 24 2017 Richard Hughes <rhughes@redhat.com> - 0.99.5-1
|
||||||
|
- New upstream release
|
||||||
|
- Add BatteryLevel property for devices with a finite number of power levels
|
||||||
|
- Add support for pausing and resuming of the daemon poll
|
||||||
|
- Do not spin in a loop when /proc/timer_stats cannot be written
|
||||||
|
- Fix reading and writing the keyboard brightness level
|
||||||
|
- Get a serial number for device batteries
|
||||||
|
- Refresh devices after waking up from sleep
|
||||||
|
- Lower initial power usage when iDevice isn't accessible
|
||||||
|
|
||||||
|
* Tue Feb 14 2017 Dan Horák <dan[at]danny.cz> - 0.99.4-4
|
||||||
|
- Add explicit BR:systemd to fix s390(x) build
|
||||||
|
|
||||||
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.4-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Mar 14 2016 Bastien Nocera <bnocera@redhat.com> 0.99.4-2
|
||||||
|
- Fix getting the critical action
|
||||||
|
|
||||||
|
* Tue Feb 16 2016 Richard Hughes <rhughes@redhat.com> - 0.99.4-1
|
||||||
|
- New upstream release
|
||||||
|
- Add support for Logitech G700s/G700 Gaming Mouse
|
||||||
|
- Change the default low battery policy to percentage
|
||||||
|
|
||||||
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.3-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.3-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 28 2015 Richard Hughes <rhughes@redhat.com> - 0.99.3-1
|
||||||
|
- New upstream release
|
||||||
|
- Fix several crashes
|
||||||
|
- Properly detect bluetooth mice and keyboards that are HID devices
|
||||||
|
- Support Logitech Unifying in Linux 3.19
|
||||||
|
- Work-around broken battery on the Onda v975w
|
||||||
|
|
||||||
|
* Wed Mar 18 2015 Rex Dieter <rdieter@fedoraproject.org> - 0.99.2-4
|
||||||
|
- pull in upstream crash fix (#1128390)
|
||||||
|
- use %%autosetup
|
||||||
|
- -devel: tighten subpkg dep via %%_isa
|
||||||
|
- -devel-docs: fix Summary
|
||||||
|
|
||||||
|
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.99.2-3
|
||||||
|
- Rebuilt for Fedora 23 Change
|
||||||
|
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
||||||
|
|
||||||
|
* Wed Feb 11 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.2-2
|
||||||
|
- Rebuild (libimobiledevice)
|
||||||
|
- Use %%license
|
||||||
|
|
||||||
|
* Thu Dec 18 2014 Richard Hughes <rhughes@redhat.com> - 0.99.2-1
|
||||||
|
- New upstream release
|
||||||
|
- Fix various memory and reference leaks
|
||||||
|
- Respect the CriticalPowerAction config option
|
||||||
|
- Set update-time on the aggregate device
|
||||||
|
- Update display device when battery is removed
|
||||||
|
|
||||||
|
* Sun Nov 16 2014 Kalev Lember <kalevlember@gmail.com> - 0.99.1-3
|
||||||
|
- Obsolete compat-upower09 from rhughes-f20-gnome-3-12 copr
|
||||||
|
|
||||||
|
* Wed Oct 15 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.1-2
|
||||||
|
- Rebuild for libimobiledevice 1.1.7
|
||||||
|
|
||||||
|
* Mon Aug 18 2014 Richard Hughes <rhughes@redhat.com> - 0.99.1-1
|
||||||
|
- New upstream release
|
||||||
|
- Create the history directory at runtime
|
||||||
|
- Do not log a critical warning when using _set_object_path_sync()
|
||||||
|
- Fix API doc for up_client_get_on_battery()
|
||||||
|
- Fix possible UpHistoryItem leak on failure
|
||||||
|
- Fix segfault on getting property when daemon is not running
|
||||||
|
- Fix shutdown on boot on some machines
|
||||||
|
- Fix small memleak on startup with Logitech devices
|
||||||
|
- Free the obtained device list array after use
|
||||||
|
- Remove IsDocked property
|
||||||
|
- Remove unused polkit dependency
|
||||||
|
|
||||||
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.0-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.99.0-6
|
||||||
|
- Rebuilt for gobject-introspection 1.41.4
|
||||||
|
|
||||||
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.0-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon May 5 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.0-4
|
||||||
|
- Rebuild for libimobiledevice 1.1.6
|
||||||
|
|
||||||
|
* Mon Mar 17 2014 Richard Hughes <rhughes@redhat.com> - 0.99.0-3
|
||||||
|
- Split out a new devel-docs subpackage to fix multilib_policy=all installs.
|
||||||
|
- Resolves: #1070661
|
||||||
|
|
||||||
|
* Fri Nov 08 2013 Bastien Nocera <bnocera@redhat.com> 0.99.0-2
|
||||||
|
- Fix crash when D-Bus isn't available
|
||||||
|
|
||||||
|
* Tue Oct 29 2013 Richard Hughes <rhughes@redhat.com> - 0.99.0-1
|
||||||
|
- New upstream release
|
||||||
|
- This version contains major API changes and bumps library soname.
|
||||||
|
- Add DisplayDevice composite battery
|
||||||
|
- Add WarningLevel and IconName properties to all devices
|
||||||
|
- Clamp percentage for overfull batteries
|
||||||
|
- Emit PropertiesChanged signals
|
||||||
|
- Enforce critical battery policy on the daemon side
|
||||||
|
- Reduce client-side and daemon-side wake-ups
|
||||||
|
- Register objects on the bus once they've been setup
|
||||||
|
- Remove DeviceChanged and Changed signals
|
||||||
|
- Remove OnLowBattery property (use WarningLevel instead)
|
||||||
|
- Remove QoS support
|
||||||
|
- Remove battery recall support
|
||||||
|
|
||||||
|
* Fri Oct 18 2013 Richard Hughes <rhughes@redhat.com> - 0.9.23-1
|
||||||
|
- New upstream release
|
||||||
|
- Add missing dbus-glib-1 to private requires
|
||||||
|
- Avoid trying to close fd that wasn't opened
|
||||||
|
- Disable Watts-Up devices by default
|
||||||
|
- Don't guess discharging state for devices
|
||||||
|
- Fix crasher calling _about_to_sleep_sync()
|
||||||
|
- Really don't overwrite retval with prop values
|
||||||
|
- Update and correct Toshiba recall list
|
||||||
|
|
||||||
|
* Wed Oct 09 2013 Bastien Nocera <bnocera@redhat.com> 0.9.22-1
|
||||||
|
- Update to 0.9.22
|
||||||
|
- Fixes incorrect reporting of some properties
|
||||||
|
- Fixes battery values for Logitech unifying devices
|
||||||
|
- Bluetooth input devices support
|
||||||
|
- Device name fixes
|
||||||
|
|
||||||
|
* Fri Jul 26 2013 Richard Hughes <rhughes@redhat.com> - 0.9.21-1
|
||||||
|
- New upstream release
|
||||||
|
- Add support for Logitech Wireless (NonUnifying) devices
|
||||||
|
- Allow clients to call org.freedesktop.DBus.Peer
|
||||||
|
- Update the upower man page with all the current options
|
||||||
|
- Use PIE to better secure installed tools and also use full RELRO in the daemon
|
||||||
|
|
||||||
|
* Thu Apr 25 2013 Matthias Clasen <mclasen@redhat.com> - 0.9.20-3
|
||||||
|
- Enabled hardened build
|
||||||
|
- Don't use /lib/udev in file paths
|
||||||
|
|
||||||
|
* Tue Mar 19 2013 Matthias Clasen <mclasen@redhat.com> - 0.9.20-2
|
||||||
|
- Rebuild
|
||||||
|
|
||||||
|
* Mon Mar 11 2013 Richard Hughes <rhughes@redhat.com> - 0.9.20-1
|
||||||
|
- New upstream release
|
||||||
|
- Add a --enable-deprecated configure argument to remove pm-utils support
|
||||||
|
- Deprecate running the powersave scripts
|
||||||
|
- Factor out the Logitech Unifying support to support other devices
|
||||||
|
- Require unfixed applications to define UPOWER_ENABLE_DEPRECATED
|
||||||
|
- Fix batteries which report current energy but full charge
|
||||||
|
- Fix several small memory leaks
|
||||||
|
|
||||||
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.19-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 02 2013 Richard Hughes <rhughes@redhat.com> - 0.9.19-1
|
||||||
|
- New upstream release
|
||||||
|
- Add a Documentation tag to the service file
|
||||||
|
- Add support for Logitech Unifying devices
|
||||||
|
- Do not continue to poll if /proc/timer_stats is not readable
|
||||||
|
- Fix device matching for recent kernels
|
||||||
|
- Resolves: #848521
|
||||||
|
|
||||||
|
* Wed Oct 24 2012 Dan Horák <dan[at]danny.cz> - 0.9.18-2
|
||||||
|
- the notify-upower script is not installed with dummy backend on s390(x)
|
||||||
|
|
||||||
|
* Wed Aug 08 2012 Richard Hughes <rhughes@redhat.com> - 0.9.18-1
|
||||||
|
- New upstream release
|
||||||
|
- Use systemd for suspend and hibernate
|
||||||
|
|
||||||
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.17-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
Loading…
Reference in new issue