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