Package xfce4-calculator-plugin: Specfile

%define _unpackaged_files_terminate_build 1

Name: xfce4-calculator-plugin
Version: 0.7.2
Release: alt1

Summary: A calculator plugin for the Xfce panel
License: GPLv2+
Group: Graphical desktop/XFce
Url: https://docs.xfce.org/panel-plugins/xfce4-calculator-plugin
Packager: Xfce Team <xfce@packages.altlinux.org>

Vcs: https://gitlab.xfce.org/panel-plugins/xfce4-calculator-plugin.git
Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildPreReq: rpm-build-xfce4 xfce4-dev-tools
BuildPreReq: libxfce4panel-gtk3-devel libxfce4ui-gtk3-devel libxfce4util-devel

Requires: xfce4-panel >= 4.12

%description
Simple command line based calculator for the Xfce panel

%prep
%setup
%patch -p1
# Don't use git tag in version.
%xfce4_drop_gitvtag calculator_version_tag configure.ac.in

%build
%xfce4reconf
%configure \
	--enable-debug=minimum
%make_build

%install
%makeinstall_std
%find_lang %name

%check
make check

%files -f %name.lang
%doc README.md AUTHORS NEWS
%_libdir/xfce4/panel/plugins/*.so
%_datadir/xfce4/panel/plugins/*.desktop
%_iconsdir/hicolor/*/apps/*

%exclude %_libdir/xfce4/panel/plugins/*.la

%changelog
* Thu Apr 20 2023 Mikhail Efremov <sem@altlinux.org> 0.7.2-alt1
- Updated to 0.7.2.

* Wed Dec 23 2020 Mikhail Efremov <sem@altlinux.org> 0.7.1-alt1
- Updated Url tag.
- Updated to 0.7.1.

* Sun Sep 13 2020 Mikhail Efremov <sem@altlinux.org> 0.7.0-alt2.g44a68de
- Added Vcs tag.
- Don't use rpm-build-licenses.
- Upstream git snapshot.

* Mon Feb 25 2019 Mikhail Efremov <sem@altlinux.org> 0.7.0-alt1
- Updated to 0.7.0.

* Mon Jan 14 2019 Mikhail Efremov <sem@altlinux.org> 0.6.90-alt1
- Enable debug (minimum level).
- Update url.
- Drop obsoleted path.
- Updated to 0.6.90.

* Tue Jun 21 2016 Mikhail Efremov <sem@altlinux.org> 0.6.0-alt1
- Enabled tests.
- Updated to 0.6.0.

* Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 0.5.1-alt1
- Initial build.