2019-09-30 11:19:00 -04:00
|
|
|
Name: upower
|
2024-01-25 10:55:52 +08:00
|
|
|
Version: 1.90.2
|
2022-04-13 11:13:57 +08:00
|
|
|
Release: 1
|
2019-09-30 11:19:00 -04:00
|
|
|
Summary: Power Management Service
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: http://upower.freedesktop.org/
|
2022-04-13 11:13:57 +08:00
|
|
|
Source0: https://gitlab.freedesktop.org/upower/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
|
2019-09-30 11:19:00 -04:00
|
|
|
|
2022-04-13 11:13:57 +08:00
|
|
|
BuildRequires: libtool intltool gettext libgudev1-devel gobject-introspection-devel gtk-doc systemd libxslt
|
|
|
|
|
BuildRequires: libusbx-devel libimobiledevice-devel glib2-devel >= 2.34.0 libplist-devel
|
|
|
|
|
BuildRequires: meson
|
2019-12-13 16:13:22 +08:00
|
|
|
Requires: gobject-introspection udev
|
2022-04-13 11:13:57 +08:00
|
|
|
%{?systemd_requires}
|
2019-09-30 11:19:00 -04:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
UPower is an abstraction for enumerating power devices, listening to
|
|
|
|
|
device events and querying history and statistics. Any application or
|
|
|
|
|
service on the system can access the org.freedesktop.UPower service
|
|
|
|
|
via the system message bus. Some operations (such as suspending the
|
|
|
|
|
system) are restricted using PolicyKit.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Headers and libraries for UPower
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Headers and libraries for %{name}.
|
|
|
|
|
|
|
|
|
|
%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
|
2022-04-13 11:13:57 +08:00
|
|
|
%autosetup -n %{name}-v%{version} -p1
|
2019-09-30 11:19:00 -04:00
|
|
|
|
|
|
|
|
%build
|
2022-04-13 11:13:57 +08:00
|
|
|
%meson \
|
|
|
|
|
-Dman=true \
|
|
|
|
|
-Dgtk-doc=true \
|
|
|
|
|
-Dintrospection=enabled \
|
2019-09-30 11:19:00 -04:00
|
|
|
|
2022-04-13 11:13:57 +08:00
|
|
|
%meson_build
|
2019-09-30 11:19:00 -04:00
|
|
|
|
|
|
|
|
%install
|
2022-04-13 11:13:57 +08:00
|
|
|
%meson_install
|
2019-09-30 11:19:00 -04:00
|
|
|
|
|
|
|
|
%find_lang upower
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
2022-04-13 11:13:57 +08:00
|
|
|
%post
|
|
|
|
|
%systemd_post upower.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun upower.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart upower.service
|
|
|
|
|
|
2019-09-30 11:19:00 -04:00
|
|
|
%files -f upower.lang
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc NEWS AUTHORS HACKING README
|
|
|
|
|
%{_libdir}/libupower-glib.so.*
|
2022-04-13 11:13:57 +08:00
|
|
|
%{_datadir}/dbus-1/system.d/*.conf
|
|
|
|
|
%{_udevrulesdir}/*.rules
|
2024-01-25 10:55:52 +08:00
|
|
|
%{_udevhwdbdir}/*hwdb
|
2019-09-30 11:19:00 -04:00
|
|
|
%dir %{_localstatedir}/lib/upower
|
|
|
|
|
%dir %{_sysconfdir}/UPower
|
|
|
|
|
%config %{_sysconfdir}/UPower/UPower.conf
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%{_libexecdir}/*
|
|
|
|
|
%{_libdir}/girepository-1.0/*.typelib
|
|
|
|
|
%{_mandir}/man*
|
|
|
|
|
%{_datadir}/dbus-1/system-services/*.service
|
2022-04-13 11:13:57 +08:00
|
|
|
%{_unitdir}/*.service
|
2024-01-25 10:55:52 +08:00
|
|
|
%{_datadir}/installed-tests/upower/upower-integration.test
|
2019-09-30 11:19:00 -04:00
|
|
|
|
|
|
|
|
%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
|
2022-04-13 11:13:57 +08:00
|
|
|
%dir %{_datadir}/gtk-doc
|
2019-09-30 11:19:00 -04:00
|
|
|
%dir %{_datadir}/gtk-doc/html/UPower
|
|
|
|
|
%{_datadir}/gtk-doc/html/UPower/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-01-25 10:55:52 +08:00
|
|
|
* Thu Jan 25 2024 liuchao <liuchao173@huawei.com> - 1.90.2-1
|
|
|
|
|
- Update to 1.90.2:
|
|
|
|
|
- Fix wireless devices not disappearing from Settings when disconnected
|
|
|
|
|
- Require a newer libgudev to avoid bugs related to newline stripping when reading sysfs attributes
|
|
|
|
|
- Add installed-tests files for use with gnome-desktop-testing
|
|
|
|
|
- Fix integration test to work with system installed upower binary and under jhbuild
|
|
|
|
|
- Detect headsets with kernel batteries such as Logitech and Steelseries headsets, and make them automatically disappear if the headset is turned off (if the kernel driver supports the wireless_status attribute)
|
|
|
|
|
- Hide duplicate Logitech Bluetooth devices (Bolt-compatible devices connected through Bluetooth would show as 2 batteries)
|
|
|
|
|
- Hide duplicate Logitech wireless devices when they get connected through USB as well
|
|
|
|
|
- Fix Bluetooth device names not synchronising, and use user-chosen names when available
|
|
|
|
|
- Handle the "present" sysfs attribute changing
|
|
|
|
|
- Fix iDevices not appearing
|
|
|
|
|
- Fix reading capacity_level with newer libgudev
|
|
|
|
|
- Fix OpenBSD backend
|
|
|
|
|
- Refactor internal battery handling into separate classes
|
|
|
|
|
- Guess charging/discharging state based on energy rate (#196)
|
|
|
|
|
- Fix polling after resume (#198)
|
|
|
|
|
- Fix battery state guessing (#146)
|
|
|
|
|
- Reload history when battery ID changes
|
|
|
|
|
- Test fixes
|
|
|
|
|
- Move state guessing into DisplayDevice
|
|
|
|
|
- Always use 90% threshold to consider a battery full
|
|
|
|
|
- Various test improvements
|
|
|
|
|
- Fix mice showing up as keyboards (#189)
|
|
|
|
|
- Allow unit test inspector to fail (#187)
|
|
|
|
|
- Fix test cases when daemon shuts down too slowly (#188)
|
|
|
|
|
- Remove broken wakeup DBus API
|
|
|
|
|
- Tag UPS hid devices using hwdb and update list from upstream
|
|
|
|
|
- Only permit Refresh method when in debug mode
|
|
|
|
|
- Refactor device polling
|
|
|
|
|
- Refactor udev device discovery and sibling detection
|
|
|
|
|
- Improved testing and CI
|
|
|
|
|
- Handle SIGTERM to trigger a clean shutdown
|
|
|
|
|
- Improve polling of batteries after line-power "online" status change
|
|
|
|
|
- Multiple wacom tablet detection fixes
|
|
|
|
|
- Fix updates after a BT hid power supply moves in sysfs
|
|
|
|
|
- Fix enumeration of "Whats Up!" devices on startup
|
|
|
|
|
- Accept USB power supplies without warning
|
|
|
|
|
- Allow building without gtk-doc
|
|
|
|
|
|
2022-04-13 11:13:57 +08:00
|
|
|
* Mon Mar 28 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.99.17-1
|
|
|
|
|
- Update to 0.99.17
|
|
|
|
|
|
2019-12-13 16:13:22 +08:00
|
|
|
* Wed Nov 20 2019 mengxian <mengxian@huawei.com> - 0.99.8-5
|
|
|
|
|
- Fix compilation problem in x86_64
|
|
|
|
|
|
2019-09-30 11:19:00 -04:00
|
|
|
* Fri Aug 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.99.8-4
|
|
|
|
|
- Package init
|