4b7c54
Summary:        Power Management Service
4b7c54
Name:           upower
4b7c54
Version:        0.99.7
ee309e
Release:        4%{?dist}
4b7c54
License:        GPLv2+
4b7c54
Group:          System Environment/Libraries
4b7c54
URL:            http://upower.freedesktop.org/
4b7c54
Source0:        http://upower.freedesktop.org/releases/upower-%{version}.tar.xz
4b7c54
4b7c54
BuildRequires:  sqlite-devel
4b7c54
BuildRequires:  libtool
4b7c54
BuildRequires:  intltool
4b7c54
BuildRequires:  gettext
4b7c54
BuildRequires:  libgudev1-devel
4b7c54
%ifnarch s390 s390x
4b7c54
BuildRequires:  libusbx-devel
4b7c54
BuildRequires:  libimobiledevice-devel
4b7c54
%endif
4b7c54
BuildRequires:  glib2-devel >= 2.6.0
4b7c54
BuildRequires:  gobject-introspection-devel
4b7c54
BuildRequires:  gtk-doc
4b7c54
BuildRequires:  systemd
4b7c54
Requires:       udev
4b7c54
Requires:       gobject-introspection
4b7c54
ee309e
# 0.99.10 backport
ee309e
Patch0: pending-charge.patch
ee309e
4b7c54
%if 0%{?fedora}
4b7c54
# From rhughes-f20-gnome-3-12 copr
4b7c54
Obsoletes:      compat-upower09 < 0.99
4b7c54
%endif
4b7c54
4b7c54
%description
4b7c54
UPower (formerly DeviceKit-power) provides a daemon, API and command
4b7c54
line tools for managing power devices attached to the system.
4b7c54
4b7c54
%package devel
4b7c54
Summary: Headers and libraries for UPower
4b7c54
Group: Development/Libraries
4b7c54
Requires: %{name}%{?_isa} = %{version}-%{release}
4b7c54
4b7c54
%description devel
4b7c54
Headers and libraries for UPower.
4b7c54
4b7c54
%package devel-docs
4b7c54
Summary: Developer documentation for for libupower-glib
4b7c54
Requires: %{name} = %{version}-%{release}
4b7c54
BuildArch: noarch
4b7c54
4b7c54
%description devel-docs
4b7c54
Developer documentation for for libupower-glib.
4b7c54
4b7c54
%prep
4b7c54
%autosetup -p1
4b7c54
4b7c54
%build
4b7c54
%configure \
4b7c54
        --enable-gtk-doc \
4b7c54
        --disable-static \
4b7c54
        --enable-introspection \
4b7c54
%ifarch s390 s390x
4b7c54
	--with-backend=dummy
4b7c54
%endif
4b7c54
4b7c54
# Disable SMP build, fails to build docs
4b7c54
make
4b7c54
4b7c54
%install
4b7c54
make install DESTDIR=$RPM_BUILD_ROOT
4b7c54
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
4b7c54
4b7c54
%find_lang upower
4b7c54
4b7c54
%ldconfig_scriptlets
4b7c54
4b7c54
%files -f upower.lang
4b7c54
%{!?_licensedir:%global license %%doc}
4b7c54
%license COPYING
4b7c54
%doc NEWS AUTHORS HACKING README
4b7c54
%{_libdir}/libupower-glib.so.*
4b7c54
%{_sysconfdir}/dbus-1/system.d/*.conf
4b7c54
%ifnarch s390 s390x
4b7c54
/usr/lib/udev/rules.d/*.rules
4b7c54
%endif
4b7c54
%dir %{_localstatedir}/lib/upower
4b7c54
%dir %{_sysconfdir}/UPower
4b7c54
%config %{_sysconfdir}/UPower/UPower.conf
4b7c54
%{_bindir}/*
4b7c54
%{_libexecdir}/*
4b7c54
%{_libdir}/girepository-1.0/*.typelib
4b7c54
%{_mandir}/man1/*
4b7c54
%{_mandir}/man7/*
4b7c54
%{_mandir}/man8/*
4b7c54
%{_datadir}/dbus-1/system-services/*.service
4b7c54
/usr/lib/systemd/system/*.service
4b7c54
4b7c54
%files devel
4b7c54
%{_datadir}/dbus-1/interfaces/*.xml
4b7c54
%{_libdir}/libupower-glib.so
4b7c54
%{_libdir}/pkgconfig/*.pc
4b7c54
%{_datadir}/gir-1.0/*.gir
4b7c54
%dir %{_includedir}/libupower-glib
4b7c54
%{_includedir}/libupower-glib/up-*.h
4b7c54
%{_includedir}/libupower-glib/upower.h
4b7c54
4b7c54
%files devel-docs
4b7c54
%{_datadir}/gtk-doc
4b7c54
%dir %{_datadir}/gtk-doc/html/UPower
4b7c54
%{_datadir}/gtk-doc/html/UPower/*
4b7c54
4b7c54
%changelog
ee309e
* Mon Dec 19 2022 Bastien Nocera <bnocera@redhat.com> - 0.99.7-4
ee309e
- Fix pending-charge state on some laptops
ee309e
Resolves: rhbz#2130664
ee309e
4b7c54
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.7-3
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4b7c54
4b7c54
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.99.7-2
4b7c54
- Switch to %%ldconfig_scriptlets
4b7c54
4b7c54
* Tue Nov 28 2017 Bastien Nocera <bnocera@redhat.com> - 0.99.7-1
4b7c54
+ upower-0.99.7-1
4b7c54
- Update to 0.99.7
4b7c54
- Add Bluetooth LE battery support
4b7c54
- Fix critical action after resume from hibernate
4b7c54
4b7c54
* Mon Sep 11 2017 Richard Hughes <rhughes@redhat.com> - 0.99.6-1
4b7c54
- New upstream release
4b7c54
- Detect joysticks as gaming input devices
4b7c54
- Fix crash when '@' is present in the device name
4b7c54
- Grab the model name from device if unavailable from battery
4b7c54
4b7c54
* Thu Aug 24 2017 Benjamin Berg <bberg@redhat.com> - 0.99.5-4
4b7c54
- Add patch to not correctly close the inhibitor FD
4b7c54
4b7c54
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-3
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
4b7c54
4b7c54
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.5-2
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4b7c54
4b7c54
* Mon Jul 24 2017 Richard Hughes <rhughes@redhat.com> - 0.99.5-1
4b7c54
- New upstream release
4b7c54
- Add BatteryLevel property for devices with a finite number of power levels
4b7c54
- Add support for pausing and resuming of the daemon poll
4b7c54
- Do not spin in a loop when /proc/timer_stats cannot be written
4b7c54
- Fix reading and writing the keyboard brightness level
4b7c54
- Get a serial number for device batteries
4b7c54
- Refresh devices after waking up from sleep
4b7c54
- Lower initial power usage when iDevice isn't accessible
4b7c54
4b7c54
* Tue Feb 14 2017 Dan HorĂ¡k <dan[at]danny.cz> - 0.99.4-4
4b7c54
- Add explicit BR:systemd to fix s390(x) build
4b7c54
4b7c54
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.4-3
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4b7c54
4b7c54
* Mon Mar 14 2016 Bastien Nocera <bnocera@redhat.com> 0.99.4-2
4b7c54
- Fix getting the critical action
4b7c54
4b7c54
* Tue Feb 16 2016 Richard Hughes <rhughes@redhat.com> - 0.99.4-1
4b7c54
- New upstream release
4b7c54
- Add support for Logitech G700s/G700 Gaming Mouse
4b7c54
- Change the default low battery policy to percentage
4b7c54
4b7c54
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.99.3-3
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4b7c54
4b7c54
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.3-2
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4b7c54
4b7c54
* Thu May 28 2015 Richard Hughes <rhughes@redhat.com> - 0.99.3-1
4b7c54
- New upstream release
4b7c54
- Fix several crashes
4b7c54
- Properly detect bluetooth mice and keyboards that are HID devices
4b7c54
- Support Logitech Unifying in Linux 3.19
4b7c54
- Work-around broken battery on the Onda v975w
4b7c54
4b7c54
* Wed Mar 18 2015 Rex Dieter <rdieter@fedoraproject.org> - 0.99.2-4
4b7c54
- pull in upstream crash fix (#1128390)
4b7c54
- use %%autosetup
4b7c54
- -devel: tighten subpkg dep via %%_isa
4b7c54
- -devel-docs: fix Summary
4b7c54
4b7c54
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.99.2-3
4b7c54
- Rebuilt for Fedora 23 Change
4b7c54
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
4b7c54
4b7c54
* Wed Feb 11 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.2-2
4b7c54
- Rebuild (libimobiledevice)
4b7c54
- Use %%license
4b7c54
4b7c54
* Thu Dec 18 2014 Richard Hughes <rhughes@redhat.com> - 0.99.2-1
4b7c54
- New upstream release
4b7c54
- Fix various memory and reference leaks
4b7c54
- Respect the CriticalPowerAction config option
4b7c54
- Set update-time on the aggregate device
4b7c54
- Update display device when battery is removed
4b7c54
4b7c54
* Sun Nov 16 2014 Kalev Lember <kalevlember@gmail.com> - 0.99.1-3
4b7c54
- Obsolete compat-upower09 from rhughes-f20-gnome-3-12 copr
4b7c54
4b7c54
* Wed Oct 15 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.1-2
4b7c54
- Rebuild for libimobiledevice 1.1.7
4b7c54
4b7c54
* Mon Aug 18 2014 Richard Hughes <rhughes@redhat.com> - 0.99.1-1
4b7c54
- New upstream release
4b7c54
- Create the history directory at runtime
4b7c54
- Do not log a critical warning when using _set_object_path_sync()
4b7c54
- Fix API doc for up_client_get_on_battery()
4b7c54
- Fix possible UpHistoryItem leak on failure
4b7c54
- Fix segfault on getting property when daemon is not running
4b7c54
- Fix shutdown on boot on some machines
4b7c54
- Fix small memleak on startup with Logitech devices
4b7c54
- Free the obtained device list array after use
4b7c54
- Remove IsDocked property
4b7c54
- Remove unused polkit dependency
4b7c54
4b7c54
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.0-7
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4b7c54
4b7c54
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.99.0-6
4b7c54
- Rebuilt for gobject-introspection 1.41.4
4b7c54
4b7c54
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.99.0-5
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4b7c54
4b7c54
* Mon May  5 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.99.0-4
4b7c54
- Rebuild for libimobiledevice 1.1.6
4b7c54
4b7c54
* Mon Mar 17 2014 Richard Hughes <rhughes@redhat.com> - 0.99.0-3
4b7c54
- Split out a new devel-docs subpackage to fix multilib_policy=all installs.
4b7c54
- Resolves: #1070661
4b7c54
4b7c54
* Fri Nov 08 2013 Bastien Nocera <bnocera@redhat.com> 0.99.0-2
4b7c54
- Fix crash when D-Bus isn't available
4b7c54
4b7c54
* Tue Oct 29 2013 Richard Hughes <rhughes@redhat.com> - 0.99.0-1
4b7c54
- New upstream release
4b7c54
- This version contains major API changes and bumps library soname.
4b7c54
- Add DisplayDevice composite battery
4b7c54
- Add WarningLevel and IconName properties to all devices
4b7c54
- Clamp percentage for overfull batteries
4b7c54
- Emit PropertiesChanged signals
4b7c54
- Enforce critical battery policy on the daemon side
4b7c54
- Reduce client-side and daemon-side wake-ups
4b7c54
- Register objects on the bus once they've been setup
4b7c54
- Remove DeviceChanged and Changed signals
4b7c54
- Remove OnLowBattery property (use WarningLevel instead)
4b7c54
- Remove QoS support
4b7c54
- Remove battery recall support
4b7c54
4b7c54
* Fri Oct 18 2013 Richard Hughes <rhughes@redhat.com> - 0.9.23-1
4b7c54
- New upstream release
4b7c54
- Add missing dbus-glib-1 to private requires
4b7c54
- Avoid trying to close fd that wasn't opened
4b7c54
- Disable Watts-Up devices by default
4b7c54
- Don't guess discharging state for devices
4b7c54
- Fix crasher calling _about_to_sleep_sync()
4b7c54
- Really don't overwrite retval with prop values
4b7c54
- Update and correct Toshiba recall list
4b7c54
4b7c54
* Wed Oct 09 2013 Bastien Nocera <bnocera@redhat.com> 0.9.22-1
4b7c54
- Update to 0.9.22
4b7c54
- Fixes incorrect reporting of some properties
4b7c54
- Fixes battery values for Logitech unifying devices
4b7c54
- Bluetooth input devices support
4b7c54
- Device name fixes
4b7c54
4b7c54
* Fri Jul 26 2013 Richard Hughes <rhughes@redhat.com> - 0.9.21-1
4b7c54
- New upstream release
4b7c54
- Add support for Logitech Wireless (NonUnifying) devices
4b7c54
- Allow clients to call org.freedesktop.DBus.Peer
4b7c54
- Update the upower man page with all the current options
4b7c54
- Use PIE to better secure installed tools and also use full RELRO in the daemon
4b7c54
4b7c54
* Thu Apr 25 2013 Matthias Clasen <mclasen@redhat.com> - 0.9.20-3
4b7c54
- Enabled hardened build
4b7c54
- Don't use /lib/udev in file paths
4b7c54
4b7c54
* Tue Mar 19 2013 Matthias Clasen <mclasen@redhat.com> - 0.9.20-2
4b7c54
- Rebuild
4b7c54
4b7c54
* Mon Mar 11 2013 Richard Hughes <rhughes@redhat.com> - 0.9.20-1
4b7c54
- New upstream release
4b7c54
- Add a --enable-deprecated configure argument to remove pm-utils support
4b7c54
- Deprecate running the powersave scripts
4b7c54
- Factor out the Logitech Unifying support to support other devices
4b7c54
- Require unfixed applications to define UPOWER_ENABLE_DEPRECATED
4b7c54
- Fix batteries which report current energy but full charge
4b7c54
- Fix several small memory leaks
4b7c54
4b7c54
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.19-2
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4b7c54
4b7c54
* Wed Jan 02 2013 Richard Hughes <rhughes@redhat.com> - 0.9.19-1
4b7c54
- New upstream release
4b7c54
- Add a Documentation tag to the service file
4b7c54
- Add support for Logitech Unifying devices
4b7c54
- Do not continue to poll if /proc/timer_stats is not readable
4b7c54
- Fix device matching for recent kernels
4b7c54
- Resolves: #848521
4b7c54
4b7c54
* Wed Oct 24 2012 Dan HorĂ¡k <dan[at]danny.cz> - 0.9.18-2
4b7c54
- the notify-upower script is not installed with dummy backend on s390(x)
4b7c54
4b7c54
* Wed Aug 08 2012 Richard Hughes <rhughes@redhat.com> - 0.9.18-1
4b7c54
- New upstream release
4b7c54
- Use systemd for suspend and hibernate
4b7c54
4b7c54
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.17-2
4b7c54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild