%global _hardened_build 1 Name: xfce4-calculator-plugin Version: 0.7.0 Release: 2 Summary: A calculator plugin for the Xfce4 panel #Group: Development/Libraries License: GPLv2+ URL: http://goodies.xfce.org/projects/panel-plugins/%{name} Source0: http://archive.xfce.org/src/panel-plugins/%{name}/0.7/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) #BuildArch: noarch BuildRequires: gcc-c++ BuildRequires: automake BuildRequires: libxfce4ui-devel BuildRequires: xfce4-panel-devel BuildRequires: gtk2-devel BuildRequires: intltool Requires: xfce4-panel %description xfce4-calculator-plugin is a calculator plugin for the Xfce4 panel. Place the plugin in your panel, enter your calculation into the text field and press Enter to calculate the result. The plugin supports common mathematical operators (+, -, *, /, ^) with usual precedence rules and some basic functions (e.g., trigonometric functions) and constants. %prep %autosetup # remove empty file rm -f NEWS %build %configure %make_build %install %make_install # remove la file find %{buildroot} -name '*.la' -exec rm -f {} ';' # make sure debuginfo is generated properly chmod -c +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so %find_lang %{name} %files -f %{name}.lang %license COPYING %doc README TODO ChangeLog AUTHORS %{_libdir}/xfce4/panel/plugins/libcalculator.so %{_datadir}/xfce4/panel/plugins/calculator.desktop %{_datadir}/icons/hicolor/*/*/* %changelog * Thu Nov 26 2020 Wenlong Ding -0.7.0-2 * Tue Jul 14 2020 Dillon Chen - 0.7.0-1 - Init package