diff --git a/.upower.metadata b/.upower.metadata new file mode 100644 index 0000000..b58b156 --- /dev/null +++ b/.upower.metadata @@ -0,0 +1 @@ +960ce9b3feaabf743c1070ec260e761176c0411e SOURCES/upower-0.9.20.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/upower-udev.patch b/SOURCES/upower-udev.patch new file mode 100644 index 0000000..7056d93 --- /dev/null +++ b/SOURCES/upower-udev.patch @@ -0,0 +1,23 @@ +diff -up upower-0.9.20/rules/Makefile.am.udev upower-0.9.20/rules/Makefile.am +--- upower-0.9.20/rules/Makefile.am.udev 2013-10-09 18:36:47.423105278 -0400 ++++ upower-0.9.20/rules/Makefile.am 2013-10-09 18:37:10.809252963 -0400 +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-udevrulesdir = $(slashlibdir)/udev/rules.d ++udevrulesdir = $(prefix)/lib/udev/rules.d + udevrules_DATA = \ + 95-upower-battery-recall-dell.rules \ + 95-upower-battery-recall-fujitsu.rules \ +diff -up upower-0.9.20/rules/Makefile.in.udev upower-0.9.20/rules/Makefile.in +--- upower-0.9.20/rules/Makefile.in.udev 2013-10-09 18:37:30.168375214 -0400 ++++ upower-0.9.20/rules/Makefile.in 2013-10-09 18:37:49.334496254 -0400 +@@ -310,7 +310,7 @@ target_alias = @target_alias@ + top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-udevrulesdir = $(slashlibdir)/udev/rules.d ++udevrulesdir = $(prefix)/lib/udev/rules.d + udevrules_DATA = \ + 95-upower-battery-recall-dell.rules \ + 95-upower-battery-recall-fujitsu.rules \ diff --git a/SPECS/upower.spec b/SPECS/upower.spec new file mode 100644 index 0000000..788270b --- /dev/null +++ b/SPECS/upower.spec @@ -0,0 +1,274 @@ +%global _hardened_build 1 + +Summary: Power Management Service +Name: upower +Version: 0.9.20 +Release: 3%{?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: libusb1-devel +BuildRequires: libimobiledevice-devel +%endif +BuildRequires: glib2-devel >= 2.6.0 +BuildRequires: dbus-devel >= 1.2 +BuildRequires: dbus-glib-devel >= 0.82 +BuildRequires: polkit-devel >= 0.92 +BuildRequires: gobject-introspection-devel +BuildRequires: gtk-doc +Requires: polkit >= 0.92 +Requires: udev +Requires: pm-utils >= 1.2.2.1 +Requires: gobject-introspection + +# install udev rules in /usr/lib/udev +Patch0: upower-udev.patch + +%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} = %{version}-%{release} +Obsoletes: DeviceKit-power-devel < 1:0.9.0-2 + +%description devel +Headers and libraries for UPower. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure \ + --enable-gtk-doc \ + --disable-static \ + --enable-deprecated \ + --enable-introspection \ +%ifarch s390 s390x + --with-backend=dummy +%endif + +make %{?_smp_mflags} + +%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 +%defattr(-,root,root,-) +%doc NEWS COPYING 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}/polkit-1/actions/*.policy +%{_datadir}/dbus-1/system-services/*.service +/usr/lib/systemd/system/*.service +%ifnarch s390 s390x +/usr/lib/systemd/system-sleep/notify-upower.sh +%endif + +%files devel +%defattr(-,root,root,-) +%{_datadir}/dbus-1/interfaces/*.xml +%{_datadir}/gtk-doc +%dir %{_datadir}/gtk-doc/html/UPower +%{_datadir}/gtk-doc/html/UPower/* +%{_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 + +%changelog +* Wed Oct 9 2013 Matthias Clasen - 0.9.20-3 +- Install udev rules in /usr/lib/udev (#884202) + +* Tue Oct 8 2013 Matthias Clasen - 0.9.20-2 + Fixes for #884202 +- Enabled hardened build +- Don't use /lib/udev in file paths + +* Mon Mar 20 2013 Richard Hughes - 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 - 0.9.19-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jan 02 2013 Richard Hughes - 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 - 0.9.18-2 +- the notify-upower script is not installed with dummy backend on s390(x) + +* Wed Aug 08 2012 Richard Hughes - 0.9.18-1 +- New upstream release +- Use systemd for suspend and hibernate + +* Sun Jul 22 2012 Fedora Release Engineering - 0.9.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 25 2012 Richard Hughes - 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 - 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 - 0.9.15-3 +- Rebuild for new libimobiledevice and usbmuxd + +* Sat Jan 14 2012 Fedora Release Engineering - 0.9.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Dec 05 2011 Richard Hughes - 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 - 0.9.14-1 +- New upstream release. +- Fix a bug when detecting if suspend and hibernate are supported. + +* Mon Sep 05 2011 Richard Hughes - 0.9.13-1 +- New upstream release. +- Blacklist wacom battery devices as not power-supply devices. + +* Mon Jul 04 2011 Richard Hughes - 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 - 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 - 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 - 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 - 0.9.9-1 +- New upstream release. + +* Mon Feb 07 2011 Fedora Release Engineering - 0.9.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jan 07 2011 Richard Hughes - 0.9.8-1 +- New upstream release. + +* Sun Dec 26 2010 Bastien Nocera 0.9.7-2 +- Rebuild for new libimobiledevice + +* Mon Nov 01 2010 Richard Hughes - 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 - 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 - 0.9.5-9 +- Rebuild against newer gobject-introspection + +* Mon Aug 23 2010 Matthias Clasen - 0.9.5-8 +- Co-own /usr/share/gtk-doc + +* Tue Aug 17 2010 Matthias Clasen - 0.9.5-7 +- Some fixes for dbus error handling + +* Tue Aug 10 2010 Richard Hughes - 0.9.5-5 +- Ensure we've initialized errors when calling into PolicyKit. +- Resolves: #622830 + +* Mon Jul 26 2010 Bastien Nocera 0.9.5-4 +- Add support for iDevice battery checking + +* Sat Jul 17 2010 Dan Horák - 0.9.5-3 +- use dummy backend on s390(x) because the Linux backend requires USB + +* Mon Jul 12 2010 Colin Walters - 0.9.5-2 +- Rebuild against new gobject-introspection + +* Mon Jul 12 2010 Richard Hughes - 0.9.5-1 +- New upstream release. + +* Mon May 17 2010 Matthias Clasen - 0.9.4-1 +- Make my laptop suspend again when I close the lid + +* Thu May 06 2010 Richard Hughes - 0.9.3-1 +- New upstream release. + +* Tue Apr 06 2010 Richard Hughes - 0.9.2-1 +- New upstream release. + +* Wed Mar 17 2010 Richard Hughes - 0.9.1-4 +- It seems people don't like pain. + +* Mon Mar 15 2010 Richard Hughes - 0.9.1-3 +- Obsolete DeviceKit-power. + +* Mon Mar 15 2010 Richard Hughes - 0.9.1-2 +- Actually enable the introspection support. + +* Wed Mar 03 2010 Richard Hughes - 0.9.1-1 +- Initial release of 0.9.1 +