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