Hello community,

here is the log from the commit of package xfce4-panel-plugin-cpufreq for 
openSUSE:Factory checked in at 2012-04-19 12:38:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xfce4-panel-plugin-cpufreq (Old)
 and      /work/SRC/openSUSE:Factory/.xfce4-panel-plugin-cpufreq.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xfce4-panel-plugin-cpufreq", Maintainer is 
"[email protected]"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/xfce4-panel-plugin-cpufreq/xfce4-panel-plugin-cpufreq.changes
    2011-09-23 12:51:18.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.xfce4-panel-plugin-cpufreq.new/xfce4-panel-plugin-cpufreq.changes
       2012-04-19 12:38:48.000000000 +0200
@@ -1,0 +2,19 @@
+Tue Apr 17 19:34:43 UTC 2012 - [email protected]
+
+- corrected source URL
+
+-------------------------------------------------------------------
+Tue Apr  3 16:55:05 UTC 2012 - [email protected]
+
+- added xfce4-panel-plugin-cpufreq-correctly-refresh-core.patch in
+  order to correctly refresh the selected core rather than always
+  the last one (bxo#7179)
+
+-------------------------------------------------------------------
+Tue Apr  3 15:14:24 UTC 2012 - [email protected]
+
+- specfile cleanup
+- correct dependencies
+- split off -lang subpackage
+
+-------------------------------------------------------------------

New:
----
  xfce4-panel-plugin-cpufreq-correctly-refresh-core.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xfce4-panel-plugin-cpufreq.spec ++++++
--- /var/tmp/diff_new_pack.nXbD6s/_old  2012-04-19 12:38:49.000000000 +0200
+++ /var/tmp/diff_new_pack.nXbD6s/_new  2012-04-19 12:38:49.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package xfce4-panel-plugin-cpufreq
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,26 +20,35 @@
 %define plugin_name xfce4-cpufreq-plugin
 
 Name:           xfce4-panel-plugin-cpufreq
-License:        GPL-2.0+
 Version:        1.0.0
-Release:        4
-Summary:        CPU frequency scaling monitor plugin for the Xfce panel
-Url:            
http://goodies.xfce.org/projects/panel-plugins/xfce4-cpufreq-plugin
-Source0:        xfce4-cpufreq-plugin-1.0.0.tar.bz2
+Release:        0
+Summary:        CPU Frequency Scaling Monitor Plugin for the Xfce Panel
+License:        GPL-2.0+
 Group:          System/GUI/XFCE
-BuildRequires:  intltool
+Url:            
http://goodies.xfce.org/projects/panel-plugins/xfce4-cpufreq-plugin
+Source0:        
http://archive.xfce.org/src/panel-plugins/%{plugin_name}/1.0/%{plugin_name}-%{version}.tar.bz2
+# PATCH-FIX-UPSTREAM xfce4-panel-plugin-cpufreq-correctly-refresh-core.patch 
bxo#7179 [email protected] -- Correctly refresh the selected core rather than 
always the last one
+Patch0:         xfce4-panel-plugin-cpufreq-correctly-refresh-core.patch
 BuildRequires:  fdupes
+BuildRequires:  intltool
+BuildRequires:  pkgconfig(gthread-2.0)
+BuildRequires:  pkgconfig(gtk+-2.0)
 BuildRequires:  pkgconfig(libxfce4panel-1.0)
-Requires:       xfce4-panel >= 4.8.0
+BuildRequires:  pkgconfig(libxfce4util-1.0)
+BuildRequires:  pkgconfig(libxfcegui4-1.0)
+Requires:       xfce4-panel >= %{panel_version}
+Recommends:     %{name}-lang = %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 The CpuFreq scaling monitor plugin can be used to monitor the current CPU
 frequency and currently active governor.
 
+%lang_package
 
 %prep
 %setup -q -n %{plugin_name}-%{version}
+%patch0 -p1
 
 %build
 %configure --disable-static
@@ -47,26 +56,28 @@
 
 %install
 %make_install
+
 rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
-%find_lang %{plugin_name} %{name}.lang
+
+%find_lang %{plugin_name} %{name}.lang %{?no_lang_C}
+
 %fdupes %{buildroot}%{_datadir}
 
 %clean
 rm -rf %{buildroot}
 
-%if 0%{?suse_version} >= 1140
-
 %post
 %icon_theme_cache_post
 
 %postun
 %icon_theme_cache_postun
-%endif
 
-%files -f %{name}.lang
+%files
 %defattr(-,root,root)
 %{_libexecdir}/xfce4/panel-plugins/xfce4-cpufreq-plugin
 %{_datadir}/icons/hicolor/*/apps/xfce4-cpufreq-plugin.*
 %{_datadir}/xfce4/panel-plugins/xfce4-cpufreq-plugin.desktop
 
+%files lang -f %{name}.lang
+
 %changelog

++++++ xfce4-panel-plugin-cpufreq-correctly-refresh-core.patch ++++++
--- xfce4-cpufreq-plugin-1.0.0.orig/panel-plugin/xfce4-cpufreq-plugin.c
+++ xfce4-cpufreq-plugin-1.0.0/panel-plugin/xfce4-cpufreq-plugin.c
@@ -118,15 +118,16 @@ cpufreq_update_tooltip (CpuInfo *cpu)
 gboolean
 cpufreq_update_plugin (void)
 {
-       gint i;
-       for (i = 0; i < cpuFreq->cpus->len; i++)
-       {
-               CpuInfo *cpu = g_ptr_array_index (cpuFreq->cpus, i);
-               if (cpufreq_update_label (cpu)   == FALSE)
-                       return FALSE;
-               if (cpufreq_update_tooltip (cpu) == FALSE)
-                       return FALSE;
-       }
+       CpuInfo *cpu;
+
+       g_return_val_if_fail (cpuFreq->options->show_cpu < cpuFreq->cpus->len, 
FALSE);
+
+       cpu = g_ptr_array_index (cpuFreq->cpus, cpuFreq->options->show_cpu);
+       if (cpufreq_update_label (cpu)   == FALSE)
+               return FALSE;
+       if (cpufreq_update_tooltip (cpu) == FALSE)
+               return FALSE;
+
        return TRUE;
 }
 
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to