|
|
9f3a7a |
%global _hardened_build 1
|
|
|
9f3a7a |
|
|
|
9f3a7a |
Summary: Power Management Service
|
|
|
9f3a7a |
Name: upower
|
|
|
9f3a7a |
Version: 0.99.7
|
|
|
9f3a7a |
Release: 1%{?dist}
|
|
|
9f3a7a |
License: GPLv2+
|
|
|
9f3a7a |
Group: System Environment/Libraries
|
|
|
9f3a7a |
URL: http://upower.freedesktop.org/
|
|
|
9f3a7a |
Source0: http://upower.freedesktop.org/releases/upower-%{version}.tar.xz
|
|
|
9f3a7a |
|
|
|
9f3a7a |
BuildRequires: sqlite-devel
|
|
|
9f3a7a |
BuildRequires: libtool
|
|
|
9f3a7a |
BuildRequires: intltool
|
|
|
9f3a7a |
BuildRequires: gettext
|
|
|
9f3a7a |
BuildRequires: libgudev1-devel
|
|
|
9f3a7a |
%ifnarch s390 s390x
|
|
|
9f3a7a |
BuildRequires: libusbx-devel
|
|
|
9f3a7a |
BuildRequires: libimobiledevice-devel
|
|
|
9f3a7a |
%endif
|
|
|
9f3a7a |
BuildRequires: glib2-devel >= 2.6.0
|
|
|
9f3a7a |
BuildRequires: gobject-introspection-devel
|
|
|
9f3a7a |
BuildRequires: gtk-doc
|
|
|
9f3a7a |
BuildRequires: systemd
|
|
|
9f3a7a |
Requires: udev
|
|
|
9f3a7a |
Requires: gobject-introspection
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%if 0%{?fedora}
|
|
|
9f3a7a |
# From rhughes-f20-gnome-3-12 copr
|
|
|
9f3a7a |
Obsoletes: compat-upower09 < 0.99
|
|
|
9f3a7a |
%endif
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%description
|
|
|
9f3a7a |
UPower (formerly DeviceKit-power) provides a daemon, API and command
|
|
|
9f3a7a |
line tools for managing power devices attached to the system.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%package devel
|
|
|
9f3a7a |
Summary: Headers and libraries for UPower
|
|
|
9f3a7a |
Group: Development/Libraries
|
|
|
9f3a7a |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%description devel
|
|
|
9f3a7a |
Headers and libraries for UPower.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%package devel-docs
|
|
|
9f3a7a |
Summary: Developer documentation for for libupower-glib
|
|
|
9f3a7a |
Requires: %{name} = %{version}-%{release}
|
|
|
9f3a7a |
BuildArch: noarch
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%description devel-docs
|
|
|
9f3a7a |
Developer documentation for for libupower-glib.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%prep
|
|
|
9f3a7a |
%autosetup -p1
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%build
|
|
|
9f3a7a |
%configure \
|
|
|
9f3a7a |
--enable-gtk-doc \
|
|
|
9f3a7a |
--disable-static \
|
|
|
9f3a7a |
--enable-introspection \
|
|
|
9f3a7a |
%ifarch s390 s390x
|
|
|
9f3a7a |
--with-backend=dummy
|
|
|
9f3a7a |
%endif
|
|
|
9f3a7a |
|
|
|
9f3a7a |
# Disable SMP build, fails to build docs
|
|
|
9f3a7a |
make
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%install
|
|
|
9f3a7a |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
9f3a7a |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%find_lang upower
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%post -p /sbin/ldconfig
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%postun -p /sbin/ldconfig
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%files -f upower.lang
|
|
|
9f3a7a |
%{!?_licensedir:%global license %%doc}
|
|
|
9f3a7a |
%license COPYING
|
|
|
9f3a7a |
%doc NEWS AUTHORS HACKING README
|
|
|
9f3a7a |
%{_libdir}/libupower-glib.so.*
|
|
|
9f3a7a |
%{_sysconfdir}/dbus-1/system.d/*.conf
|
|
|
9f3a7a |
%ifnarch s390 s390x
|
|
|
9f3a7a |
/usr/lib/udev/rules.d/*.rules
|
|
|
9f3a7a |
%endif
|
|
|
9f3a7a |
%dir %{_localstatedir}/lib/upower
|
|
|
9f3a7a |
%dir %{_sysconfdir}/UPower
|
|
|
9f3a7a |
%config %{_sysconfdir}/UPower/UPower.conf
|
|
|
9f3a7a |
%{_bindir}/*
|
|
|
9f3a7a |
%{_libexecdir}/*
|
|
|
9f3a7a |
%{_libdir}/girepository-1.0/*.typelib
|
|
|
9f3a7a |
%{_mandir}/man1/*
|
|
|
9f3a7a |
%{_mandir}/man7/*
|
|
|
9f3a7a |
%{_mandir}/man8/*
|
|
|
9f3a7a |
%{_datadir}/dbus-1/system-services/*.service
|
|
|
9f3a7a |
/usr/lib/systemd/system/*.service
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%files devel
|
|
|
9f3a7a |
%{_datadir}/dbus-1/interfaces/*.xml
|
|
|
9f3a7a |
%{_libdir}/libupower-glib.so
|
|
|
9f3a7a |
%{_libdir}/pkgconfig/*.pc
|
|
|
9f3a7a |
%{_datadir}/gir-1.0/*.gir
|
|
|
9f3a7a |
%dir %{_includedir}/libupower-glib
|
|
|
9f3a7a |
%{_includedir}/libupower-glib/up-*.h
|
|
|
9f3a7a |
%{_includedir}/libupower-glib/upower.h
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%files devel-docs
|
|
|
9f3a7a |
%{_datadir}/gtk-doc
|
|
|
9f3a7a |
%dir %{_datadir}/gtk-doc/html/UPower
|
|
|
9f3a7a |
%{_datadir}/gtk-doc/html/UPower/*
|
|
|
9f3a7a |
|
|
|
9f3a7a |
%changelog
|
|
|
9f3a7a |
* Tue Nov 28 2017 Bastien Nocera <bnocera@redhat.com> - 0.99.7-1
|
|
|
9f3a7a |
- Update to 0.99.7
|
|
|
9f3a7a |
- Add Bluetooth LE battery support
|
|
|
9f3a7a |
- Fix critical action after resume from hibernate
|
|
|
9f3a7a |
Resolves: #1584245
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Fri Mar 10 2017 Kalev Lember <klember@redhat.com> - 0.99.4-2
|
|
|
9f3a7a |
- Rebuilt for libplist 1.2
|
|
|
9f3a7a |
- Resolves: #1387051
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed Oct 19 2016 Kalev Lember <klember@redhat.com> - 0.99.4-1
|
|
|
9f3a7a |
- New upstream release
|
|
|
9f3a7a |
- Resolves: #1387051
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Thu Dec 18 2014 Richard Hughes <rhughes@redhat.com> - 0.99.2-1
|
|
|
9f3a7a |
- New upstream release
|
|
|
9f3a7a |
- Resolves: #1174421
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Mar 17 2014 Richard Hughes <rhughes@redhat.com> - 0.9.20-7
|
|
|
9f3a7a |
- Mark the devel-docs subpackage as noarch to silence a rpmdiff false positive.
|
|
|
9f3a7a |
- Resolves: #1070661
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Mar 17 2014 Richard Hughes <rhughes@redhat.com> - 0.9.20-6
|
|
|
9f3a7a |
- Split out a new devel-docs subpackage to fix multilib_policy=all installs.
|
|
|
9f3a7a |
- Resolves: #1070661
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.9.20-5
|
|
|
9f3a7a |
- Mass rebuild 2014-01-24
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.9.20-4
|
|
|
9f3a7a |
- Mass rebuild 2013-12-27
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed Oct 9 2013 Matthias Clasen <mclasen@redhat.com> - 0.9.20-3
|
|
|
9f3a7a |
- Install udev rules in /usr/lib/udev (#884202)
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Tue Oct 8 2013 Matthias Clasen <mclasen@redhat.com> - 0.9.20-2
|
|
|
9f3a7a |
Fixes for #884202
|
|
|
9f3a7a |
- Enabled hardened build
|
|
|
9f3a7a |
- Don't use /lib/udev in file paths
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Mar 20 2013 Richard Hughes <rhughes@redhat.com> - 0.9.20-1
|
|
|
9f3a7a |
- New upstream release
|
|
|
9f3a7a |
- Factor out the Logitech Unifying support to support other devices
|
|
|
9f3a7a |
- Fix batteries which report current energy but full charge
|
|
|
9f3a7a |
- Fix several small memory leaks
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.19-2
|
|
|
9f3a7a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed Jan 02 2013 Richard Hughes <rhughes@redhat.com> - 0.9.19-1
|
|
|
9f3a7a |
- New upstream release
|
|
|
9f3a7a |
- Add a Documentation tag to the service file
|
|
|
9f3a7a |
- Add support for Logitech Unifying devices
|
|
|
9f3a7a |
- Do not continue to poll if /proc/timer_stats is not readable
|
|
|
9f3a7a |
- Fix device matching for recent kernels
|
|
|
9f3a7a |
- Resolves: #848521
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed Oct 24 2012 Dan HorĂ¡k <dan[at]danny.cz> - 0.9.18-2
|
|
|
9f3a7a |
- the notify-upower script is not installed with dummy backend on s390(x)
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed Aug 08 2012 Richard Hughes <rhughes@redhat.com> - 0.9.18-1
|
|
|
9f3a7a |
- New upstream release
|
|
|
9f3a7a |
- Use systemd for suspend and hibernate
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.17-2
|
|
|
9f3a7a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Jun 25 2012 Richard Hughes <rhughes@redhat.com> - 0.9.17-1
|
|
|
9f3a7a |
- New upstream release
|
|
|
9f3a7a |
- Don't allow non-power-supply devices to set the OnBattery property
|
|
|
9f3a7a |
- Fix the LatencyChanged signal
|
|
|
9f3a7a |
- Fix wrong PowerSupply property for devices without a scope sysfs attribute
|
|
|
9f3a7a |
- Treat the battery state 'not charging' as PENDING_CHARGE
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Apr 30 2012 Richard Hughes <rhughes@redhat.com> - 0.9.16-1
|
|
|
9f3a7a |
- New upstream release
|
|
|
9f3a7a |
- Install a systemd service file
|
|
|
9f3a7a |
- Clamp the UPS percentage from 0 to 100 to fix syslog spam
|
|
|
9f3a7a |
- Correct the cap on the energy rate
|
|
|
9f3a7a |
- Fix crash in up_device_csr_finalize
|
|
|
9f3a7a |
- Never detect HID devices with batteries as power supplies
|
|
|
9f3a7a |
- Re-coldplug dock status when resuming from sleep
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed Apr 11 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.9.15-3
|
|
|
9f3a7a |
- Rebuild for new libimobiledevice and usbmuxd
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.15-2
|
|
|
9f3a7a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Dec 05 2011 Richard Hughes <rhughes@redhat.com> - 0.9.15-1
|
|
|
9f3a7a |
- Use linear regression to get better predicted battery times.
|
|
|
9f3a7a |
- Don't spam the log when we're saving history when on low power.
|
|
|
9f3a7a |
- Don't assert when the power_supply device type is usb.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Oct 03 2011 Richard Hughes <rhughes@redhat.com> - 0.9.14-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
- Fix a bug when detecting if suspend and hibernate are supported.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Sep 05 2011 Richard Hughes <rhughes@redhat.com> - 0.9.13-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
- Blacklist wacom battery devices as not power-supply devices.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Jul 04 2011 Richard Hughes <rhughes@redhat.com> - 0.9.12-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
- Fix how we estimate the device rate for batteries that do not provide
|
|
|
9f3a7a |
this data.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed May 25 2011 Richard Hughes <rhughes@redhat.com> - 0.9.11-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
- Only include glib-unix.h if the GLib version is >= 2.29.4
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Tue May 03 2011 Richard Hughes <rhughes@redhat.com> - 0.9.10-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
- Add a config option 'IgnoreLid' for users with broken lid switches
|
|
|
9f3a7a |
- Consider a discharging UPS as "on battery"
|
|
|
9f3a7a |
- Support batteries that report both energy and charge
|
|
|
9f3a7a |
- Use the new threadsafe signal handling support in GLib
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Tue Mar 23 2011 Colin Walters <walters@verbum.org> - 0.9.9-2
|
|
|
9f3a7a |
- Move typelib file to main package; it should go along with the .so;
|
|
|
9f3a7a |
i.e. gnome-shell shouldn't require upower-devel.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Mar 21 2011 Richard Hughes <rhughes@redhat.com> - 0.9.9-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-2
|
|
|
9f3a7a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Fri Jan 07 2011 Richard Hughes <rhughes@redhat.com> - 0.9.8-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Sun Dec 26 2010 Bastien Nocera <bnocera@redhat.com> 0.9.7-2
|
|
|
9f3a7a |
- Rebuild for new libimobiledevice
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Nov 01 2010 Richard Hughes <rhughes@redhat.com> - 0.9.7-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
- Add support for controlling leds keyboard backlight
|
|
|
9f3a7a |
- Fix building with gobject-introspection 0.9.10
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Oct 04 2010 Richard Hughes <rhughes@redhat.com> - 0.9.6-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
- Fix compile with the latest PolicyKit release.
|
|
|
9f3a7a |
- Only save by default 7 days data to stop the log files becoming huge.
|
|
|
9f3a7a |
- Do not continue to poll the serial port if there is no Watts Up Pro adaptor.
|
|
|
9f3a7a |
- Fix the build with new versions of gobject-introspection.
|
|
|
9f3a7a |
- Resolves #634228
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed Sep 29 2010 jkeating - 0.9.5-10
|
|
|
9f3a7a |
- Rebuilt for gcc bug 634757
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Tue Sep 21 2010 Matthias Clasen <mclasen@redhat.com> - 0.9.5-9
|
|
|
9f3a7a |
- Rebuild against newer gobject-introspection
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Aug 23 2010 Matthias Clasen <mclasen@redhat.com> - 0.9.5-8
|
|
|
9f3a7a |
- Co-own /usr/share/gtk-doc
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Tue Aug 17 2010 Matthias Clasen <mclasen@redhat.com> - 0.9.5-7
|
|
|
9f3a7a |
- Some fixes for dbus error handling
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Tue Aug 10 2010 Richard Hughes <rhughes@redhat.com> - 0.9.5-5
|
|
|
9f3a7a |
- Ensure we've initialized errors when calling into PolicyKit.
|
|
|
9f3a7a |
- Resolves: #622830
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Jul 26 2010 Bastien Nocera <bnocera@redhat.com> 0.9.5-4
|
|
|
9f3a7a |
- Add support for iDevice battery checking
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Sat Jul 17 2010 Dan HorĂ¡k <dan[at]danny.cz> - 0.9.5-3
|
|
|
9f3a7a |
- use dummy backend on s390(x) because the Linux backend requires USB
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Jul 12 2010 Colin Walters <walters@verbum.org> - 0.9.5-2
|
|
|
9f3a7a |
- Rebuild against new gobject-introspection
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Jul 12 2010 Richard Hughes <rhughes@redhat.com> - 0.9.5-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon May 17 2010 Matthias Clasen <mclasen@redhat.com> - 0.9.4-1
|
|
|
9f3a7a |
- Make my laptop suspend again when I close the lid
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Thu May 06 2010 Richard Hughes <rhughes@redhat.com> - 0.9.3-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Tue Apr 06 2010 Richard Hughes <rhughes@redhat.com> - 0.9.2-1
|
|
|
9f3a7a |
- New upstream release.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed Mar 17 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-4
|
|
|
9f3a7a |
- It seems people don't like pain.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-3
|
|
|
9f3a7a |
- Obsolete DeviceKit-power.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Mon Mar 15 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-2
|
|
|
9f3a7a |
- Actually enable the introspection support.
|
|
|
9f3a7a |
|
|
|
9f3a7a |
* Wed Mar 03 2010 Richard Hughes <rhughes@redhat.com> - 0.9.1-1
|
|
|
9f3a7a |
- Initial release of 0.9.1
|
|
|
9f3a7a |
|