summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-08-31 19:20:16 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-08-31 19:20:16 -0400
commit28fc315252cf3949b97c5adbd9ef34d234c59a68 (patch)
tree38508d6719be3235fc91c07fefcd8c12190c1088
parent0ab4846aba665af613fde8786b6d12e4a1679d24 (diff)
downloadgnome-applets-28fc315252cf3949b97c5adbd9ef34d234c59a68.tar.gz
gnome-applets-28fc315252cf3949b97c5adbd9ef34d234c59a68.tar.xz
gnome-applets-28fc315252cf3949b97c5adbd9ef34d234c59a68.zip
try to fix BRs
-rw-r--r--gnome-applets-cpupower.patch12
-rw-r--r--gnome-applets.spec5
2 files changed, 16 insertions, 1 deletions
diff --git a/gnome-applets-cpupower.patch b/gnome-applets-cpupower.patch
new file mode 100644
index 0000000..134a617
--- /dev/null
+++ b/gnome-applets-cpupower.patch
@@ -0,0 +1,12 @@
+diff -up gnome-applets-3.1.90/configure.in.cpupower gnome-applets-3.1.90/configure.in
+--- gnome-applets-3.1.90/configure.in.cpupower 2011-08-31 18:49:00.628945807 -0400
++++ gnome-applets-3.1.90/configure.in 2011-08-31 18:49:17.397946966 -0400
+@@ -518,7 +518,7 @@ AC_CHECK_HEADER(cpufreq.h, have_libcpufr
+ LIBCPUFREQ_LIBS=
+ if test "x$have_libcpufreq" = "xyes"; then
+ AC_DEFINE([HAVE_LIBCPUFREQ], [1], [Have libcpufreq.])
+- LIBCPUFREQ_LIBS=-lcpufreq
++ LIBCPUFREQ_LIBS=-lcpupower
+ fi
+ AM_CONDITIONAL(HAVE_LIBCPUFREQ, test x$have_libcpufreq = xyes)
+ AC_SUBST(LIBCPUFREQ_LIBS)
diff --git a/gnome-applets.spec b/gnome-applets.spec
index 1952988..bd4f198 100644
--- a/gnome-applets.spec
+++ b/gnome-applets.spec
@@ -42,6 +42,7 @@ URL: http://www.gnome.org/
# VCS: git:git://git.gnome.org/gnome-applets
Source: http://download.gnome.org/sources/%{name}/3.1/%{name}-%{version}.tar.xz
Patch0: 0001-Explicitly-link-against-libm.patch
+Patch1: gnome-applets-cpupower.patch
BuildRequires: glib2-devel >= %{glib2_version}
BuildRequires: gtk3-devel >= %{gtk3_version}
@@ -69,10 +70,11 @@ BuildRequires: libxslt
BuildRequires: NetworkManager-devel
BuildRequires: libgweather-devel >= %{libgweather_version}
# For cpufreq
-BuildRequires: dbus-devel
+BuildRequires: dbus-devel
BuildRequires: polkit-devel >= 0.92
BuildRequires: scrollkeeper
BuildRequires: libSM-devel
+BuildRequires: kernel-tools-devel
BuildRequires: autoconf automake libtool
@@ -102,6 +104,7 @@ and more.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
autoreconf -i -f