63 lines
1.6 KiB
RPMSpec
63 lines
1.6 KiB
RPMSpec
%global _hardened_build 1
|
|
%global minorversion 0.7
|
|
|
|
Name: xfce4-calculator-plugin
|
|
Version: 0.7.1
|
|
Release: 2
|
|
Summary: A calculator plugin for the Xfce4 panel
|
|
License: GPLv2+
|
|
URL: http://goodies.xfce.org/projects/panel-plugins/%{name}
|
|
Source0: http://archive.xfce.org/src/panel-plugins/%{name}/%{minorversion}/%{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
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
|
|
|
|
%find_lang %{name}
|
|
|
|
%files -f %{name}.lang
|
|
%license COPYING
|
|
%doc TODO ChangeLog AUTHORS
|
|
%{_libdir}/xfce4/panel/plugins/libcalculator.so
|
|
%{_libdir}/xfce4/panel/plugins/libcalculator.la
|
|
%{_datadir}/xfce4/panel/plugins/calculator.desktop
|
|
%{_datadir}/icons/hicolor/*/*/*calculator*
|
|
|
|
%changelog
|
|
* Fri Jun 18 2021 zhanglin <lin.zhang@turbolinux.com.cn> - 0.7.1-1
|
|
- Update to 0.7.1
|
|
|
|
* Thu Nov 26 2020 Wenlong Ding <wenlong.ding@turbolinux.com.cn> -0.7.0-2
|
|
|
|
* Tue Jul 14 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.7.0-1
|
|
- Init package
|