diff --git a/xfce4-cpufreq-plugin-1.2.1-gcc10-common.patch b/xfce4-cpufreq-plugin-1.2.1-gcc10-common.patch new file mode 100644 index 0000000..231975f --- /dev/null +++ b/xfce4-cpufreq-plugin-1.2.1-gcc10-common.patch @@ -0,0 +1,22 @@ +--- xfce4-cpufreq-plugin-1.2.1/panel-plugin/xfce4-cpufreq-plugin.c ++++ xfce4-cpufreq-plugin-1.2.1/panel-plugin/xfce4-cpufreq-plugin.c +@@ -37,7 +37,7 @@ + #include "xfce4-cpufreq-linux.h" + #endif /* __linux__ */ + +- ++CpuFreqPlugin *cpuFreq; + + void + cpufreq_label_set_font (void) +--- xfce4-cpufreq-plugin-1.2.1/panel-plugin/xfce4-cpufreq-plugin.h ++++ xfce4-cpufreq-plugin-1.2.1/panel-plugin/xfce4-cpufreq-plugin.h +@@ -93,7 +93,7 @@ + gint timeoutHandle; + } CpuFreqPlugin; + +-CpuFreqPlugin *cpuFreq; ++extern CpuFreqPlugin *cpuFreq; + + G_BEGIN_DECLS + diff --git a/xfce4-cpufreq-plugin-1.2.1.tar.bz2 b/xfce4-cpufreq-plugin-1.2.1.tar.bz2 new file mode 100644 index 0000000..168f470 Binary files /dev/null and b/xfce4-cpufreq-plugin-1.2.1.tar.bz2 differ diff --git a/xfce4-cpufreq-plugin.spec b/xfce4-cpufreq-plugin.spec new file mode 100644 index 0000000..4527723 --- /dev/null +++ b/xfce4-cpufreq-plugin.spec @@ -0,0 +1,55 @@ +%global _hardened_build 1 + +Name: xfce4-cpufreq-plugin +Version: 1.2.1 +Release: 1 +Summary: CPU frequency scaling plugin for the Xfce4 panel +License: GPLv2+ +#Group: Development/Libraries +URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-cpufreq-plugin +Source0: http://archive.xfce.org/src/panel-plugins/%{name}/1.2/%{name}-%{version}.tar.bz2 +Patch0: xfce4-cpufreq-plugin-1.2.1-gcc10-common.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +#BuildArch: noarch +BuildRequires: gcc-c++ +BuildRequires: libxfce4ui-devel +BuildRequires: xfce4-panel-devel +BuildRequires: intltool +Requires: xfce4-panel + +%description +This plugin shows in the Xfce Panel the following information: + current CPU frequency + current used governor + +In a separate dialog it provides you following information: + all available CPU frequencies + all available governors + used driver for the CPU + +%prep +%autosetup -p1 + +%build +%configure +%make_build + +%install +%make_install + +%find_lang %{name} + +find %{buildroot} -name \*.la -exec rm {} \; + +chmod -c +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so + +%files -f %{name}.lang +%doc AUTHORS ChangeLog NEWS README +%license COPYING +%{_libdir}/xfce4/panel/plugins/libcpufreq.so +%{_datadir}/icons/hicolor/*/apps/%{name}.png +%{_datadir}/xfce4/panel/plugins/cpufreq.desktop + +%changelog +* Tue Jul 14 2020 Dillon Chen - 1.2.1-1 +- Init package