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