File xfce4-screenshooter.spec of Package xfce4-screenshooter
#
# spec file for package xfce4-screenshooter
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define panel_version 4.7.0
Name: xfce4-screenshooter
Version: 1.8.2
Release: 0
Summary: Screenshot Tool for the Xfce Desktop
License: GPL-2.0+
Group: Productivity/Graphics/Other
Url: http://goodies.xfce.org/projects/applications/xfce4-screenshooter
Source: http://archive.xfce.org/src/apps/xfce4-screenshooter/1.8/%{name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: xfce4-dev-tools
BuildRequires: pkgconfig(exo-1)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libxfce4panel-1.0)
BuildRequires: pkgconfig(libxfce4ui-1)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
Recommends: %{name}-lang = %{version}
# needs xfhelp4
Requires: libxfce4ui-tools
Suggests: xfce4-panel-plugin-screenshooter
Obsoletes: xfce4-screenshooter-doc <= 1.8.1
Provides: xfce4-screenshooter-doc = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Xfce4 Screenshooter is a tool for taking screenshots, it can capture the entire
screen, the active window or a selected region. Screenshots may be taken with a
user-specified delay and the resulting images can be saved to a PNG file,
copied it to the clipboard, opened with another application, or uploaded to
ZimageZ, a free online image hosting service.
%package -n xfce4-panel-plugin-screenshooter
Summary: Screenshot Plugin for the Xfce Panel
Group: System/GUI/XFCE
Requires: xfce4-panel >= %{panel_version}
Requires: xfce4-screenshooter = %{version}
%description -n xfce4-panel-plugin-screenshooter
This package contains the xfce4-screenshooter Xfce panel plugin.
%lang_package
%prep
%setup -q
%build
%configure
make %{?_smp_mflags} V=1
%install
%make_install
rm -f %{buildroot}%{_libdir}/xfce4/panel/plugins/libscreenshooterplugin.la
%find_lang xfce4-screenshooter %{?no_lang_C}
%suse_update_desktop_file -r xfce4-screenshooter -G 'Screenshot Tool' Utility X-SuSE-DesktopUtility GTK
%fdupes %{buildroot}%{_datadir}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc COPYING NEWS README TODO
%{_bindir}/xfce4-screenshooter
%{_datadir}/icons/hicolor/*/apps/applets-screenshooter.*
%{_datadir}/applications/xfce4-screenshooter.desktop
%dir %{_datadir}/appdata
%{_datadir}/appdata/xfce4-screenshooter.appdata.xml
%{_mandir}/man1/xfce4-screenshooter.1*
%files -n xfce4-panel-plugin-screenshooter
%defattr(-,root,root,-)
%{_libdir}/xfce4/panel/plugins/libscreenshooterplugin.so
%{_datadir}/xfce4/panel/plugins/screenshooter.desktop
%files lang -f %{name}.lang
%changelog