%define url_ver %(echo %{version} | cut -d. -f1,2) # exclude plugin .so from provides %global __provides_exclude_from %{_libdir}/xfce4/panel/plugins/.*\\.so # fix COPR builds %{!?_metainfodir:%global _metainfodir %{_datadir}/metainfo} Summary: Screen capture tool for Xfce Name: xfce4-screenshooter Version: 1.10.5 Release: %mkrel 1 License: GPLv2+ Group: Graphical desktop/Xfce URL: https://docs.xfce.org/apps/screenshooter/start Source0: https://archive.xfce.org/src/apps/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2 BuildRequires: intltool BuildRequires: xfce4-dev-tools BuildRequires: pkgconfig(exo-2) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(gtk+-3.0) %if %{?mageia} >= 9 BuildRequires: pkgconfig(libsoup-3.0) %else BuildRequires: pkgconfig(libsoup-2.4) %endif BuildRequires: pkgconfig(libxfce4panel-2.0) BuildRequires: pkgconfig(libxfce4ui-2) BuildRequires: pkgconfig(libxfce4util-1.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(xext) BuildRequires: pkgconfig(xfixes) Provides: xfce4-screenshooter-plugin Requires: xfce4-panel %description This application allows you to capture the entire screen, the active window or a selected region. You can set the delay that elapses before the screenshot is taken and the action that will be done with the screenshot: save it to a PNG file, copy it to the clipboard, or open it using another application. A plugin for the Xfce panel is also available. %prep %setup -q %autopatch -p1 %build %configure \ --disable-static %make_build %install %make_install #we don't want these find %{buildroot} -name "*.la" -delete %find_lang %{name} %files -f %{name}.lang %doc AUTHORS README* %{_bindir}/* %dir %{_libexecdir}/xfce4/ %{_libexecdir}/xfce4/screenshooter/ %{_libdir}/xfce4/panel/plugins/libscreenshooterplugin.so %{_datadir}/xfce4/panel/plugins/screenshooter.desktop %{_datadir}/applications/xfce4-screenshooter.desktop %{_iconsdir}/hicolor/*/apps/*.*g %{_mandir}/man1/* %{_metainfodir}/xfce4-screenshooter.appdata.xml