|
@@ -1,12 +1,32 @@
|
|
|
Summary: A Power Manager for MATE
|
|
|
Name: mate-power-manager
|
|
|
Version: 1.8.0
|
|
|
-Release: 1%{?_dist_release}
|
|
|
-Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
|
|
|
+Release: 2%{?_dist_release}
|
|
|
License: GPLv2
|
|
|
Group: Applications/System
|
|
|
URL: http://mate-desktop.org/
|
|
|
|
|
|
+Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
|
|
|
+
|
|
|
+# from fedora
|
|
|
+# upstream patch
|
|
|
+# https://github.com/mate-desktop/mate-power-manager/pull/60
|
|
|
+# Add DBUS interface to kbdbacklight control
|
|
|
+Patch0: mate-power-manager_dbus_interface_keyboard_backlight_controls.patch
|
|
|
+# https://github.com/mate-desktop/mate-power-manager/commit/2b3cf01
|
|
|
+Patch1: mate-power-manager_avoid-levels-is-0-warning.patch
|
|
|
+
|
|
|
+# upstream fixes for upower-1.0, the order of the series is important
|
|
|
+# https://github.com/mate-desktop/mate-power-manager/commit/220a4e0
|
|
|
+Patch2: mate-power-manager_remove-battery-recall-logic.patch
|
|
|
+# https://github.com/mate-desktop/mate-power-manager/commit/d59f4b8
|
|
|
+Patch3: mate-power-manager_port-to-upower-0.99-API.patch
|
|
|
+# https://github.com/mate-desktop/mate-power-manager/commit/1fb2870
|
|
|
+Patch4: mate-power-manager_improve-UPower1-support.patch
|
|
|
+# https://github.com/mate-desktop/mate-power-manager/commit/8f734c6
|
|
|
+Patch5: mate-power-manager_other-round-of-fixes-for-UPower-0.99-API-changes.patch
|
|
|
+
|
|
|
+
|
|
|
BuildRequires: mate-common
|
|
|
BuildRequires: mate-doc-utils
|
|
|
BuildRequires: libmatekeyring-devel
|
|
@@ -17,10 +37,10 @@ BuildRequires: dbus-glib-devel
|
|
|
BuildRequires: libcanberra-devel
|
|
|
BuildRequires: libwnck-devel
|
|
|
BuildRequires: unique-devel
|
|
|
-BuildRequires: libupower09-devel
|
|
|
+BuildRequires: upower-devel
|
|
|
BuildRequires: popt-devel
|
|
|
BuildRequires: libgnome-keyring-devel
|
|
|
-BuildRequires: itstool
|
|
|
+BuildRequires: yelp-tools
|
|
|
BuildRequires: gtk-doc
|
|
|
BuildRequires: autoconf
|
|
|
BuildRequires: automake
|
|
@@ -49,10 +69,15 @@ MATE Power Manager comes in three main parts:
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
-
|
|
|
+%patch0 -p1 -b .dbus
|
|
|
+%patch1 -p1 -b .avoid-levels-is-0-warning
|
|
|
+%patch2 -p1 -b .remove-battery-recall-logic
|
|
|
+%patch3 -p1 -b .port-to-upower-0.99-API
|
|
|
+%patch4 -p1 -b .improve-UPower1-support
|
|
|
+%patch5 -p1 -b .other-round-of-fixes-for-UPower-0.99
|
|
|
|
|
|
%build
|
|
|
-(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi)
|
|
|
+NOCONFIGURE=1 ./autogen.sh
|
|
|
%configure \
|
|
|
--libexecdir=%{_libexecdir}/mate \
|
|
|
--disable-static
|
|
@@ -97,7 +122,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc COPYING ChangeLog NEWS README
|
|
|
%{_sysconfdir}/xdg/autostart/mate-power-manager.desktop
|
|
|
-%{_bindir}/mate-power-bugreport.sh
|
|
|
+%exclude %{_bindir}/mate-power-bugreport.sh
|
|
|
%{_bindir}/mate-power-manager
|
|
|
%{_bindir}/mate-power-preferences
|
|
|
%{_bindir}/mate-power-statistics
|
|
@@ -122,6 +147,11 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2
|
|
|
+- change BuildRequires: upower-devel instead of libupower09-devel
|
|
|
+- add BuildRequires: yelp-tools
|
|
|
+- add Patch0-5 from fedora
|
|
|
+
|
|
|
* Wed Apr 16 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
|
|
|
- new upstream release
|
|
|
- add BuildRequires: libgnome-keyring-devel, libupower09-devel, itstool
|