File xfce4-screenshooter.spec of Package xfce4-screenshooter

# spec file for package xfce4-screenshooter
# Copyright (c) 2012 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

%define panel_version 4.7.0

Name:           xfce4-screenshooter
Version:        1.8.1
Release:        0
Summary:        Screenshot Tool for the Xfce Desktop
License:        GPL-2.0+
Group:          Productivity/Graphics/Other
# PATCH-FIX-UPSTREAM xfce4-screenshooter-use-docdir.patch -- Allow installation of documentation under docdir
Patch0:         xfce4-screenshooter-use-docdir.patch
# PATCH-FIX-UPSTREAM xfce4-screenshooter-fix-plugin-linking.patch -- Link the plugin module correctly
Patch1:         xfce4-screenshooter-fix-plugin-linking.patch
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}-doc = %{version}
Recommends:     %{name}-lang = %{version}
# needs xfhelp4
Requires:       libxfce4ui-tools
Suggests:       xfce4-panel-plugin-screenshooter
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

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.

%package doc
Summary:        Documentation for xfce4-screenshooter
Group:          Documentation/HTML

%description doc
This package contains the HTML documentation for xfce4-screenshooter.


%setup -q
%patch0 -p1
%patch1 -p1

%configure --docdir=%{_datadir}/xfce4/xfce4-screenshooter
make %{?_smp_mflags} V=1


rm -f %{buildroot}%{_libdir}/xfce4/panel/plugins/

%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}

rm -rf %{buildroot}



%doc %{_mandir}/man1/xfce4-screenshooter.1*

%files -n xfce4-panel-plugin-screenshooter

%files doc
%dir %{_datadir}/xfce4
%dir %{_datadir}/xfce4/xfce4-screenshooter
%doc %{_datadir}/xfce4/xfce4-screenshooter/html/

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by