File xfce4-panel-plugin-clipman.spec of Package xfce4-panel-plugin-clipman

#
# spec file for package xfce4-panel-plugin-clipman
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.8.0
%define plugin_name xfce4-clipman-plugin

Name:           xfce4-panel-plugin-clipman
License:        GPLv2+
Version:        1.1.3
Release:        19
Summary:        Clipboard manager plugin for the Xfce panel
Url:            http://goodies.xfce.org/projects/panel-plugins/xfce4-clipman-plugin
Source0:        xfce4-clipman-plugin-1.1.3.tar.bz2
# PATCH-FIX-UPSTREAM xfce4-panel-plugin-clipman-1.1.3-fix-exo-version.patch gber@opensuse.org -- Fixes build with exo >= 0.5.0
Patch0:         xfce4-panel-plugin-clipman-1.1.3-fix-exo-version.patch
# PATCH-FIX-UPSTREAM xfce4-panel-plugin-clipman-1.1.3-fix-missing-return-value.patch gber@opensuse.org -- Fixes missing return value
Patch1:         xfce4-panel-plugin-clipman-1.1.3-fix-missing-return-value.patch
# PATCH-FIX-UPSTREAM xfce4-panel-plugin-clipman-1.1.3-catch-null-value.patch gber@opensuse.org -- Fix a crash due to dereferencing a NULL pointer (backported from upstream git)
Patch2:         xfce4-panel-plugin-clipman-1.1.3-catch-null-value.patch
# PATCH-FIX-UPSTREAM xfce4-panel-plugin-clipman-1.1.3-fix-memory-leak.patch gber@opensuse.org -- Fix a memory leak (backported from upstream git)
Patch3:         xfce4-panel-plugin-clipman-1.1.3-fix-memory-leak.patch
# PATCH-FIX-UPSTREAM xfce4-panel-plugin-clipman-1.1.3-use-docdir.patch gber@opensuse.org -- Use docdir correctly
Patch4:         xfce4-panel-plugin-clipman-1.1.3-use-docdir.patch
Group:          System/GUI/XFCE
BuildRequires:  intltool
BuildRequires:  fdupes
BuildRequires:  pkgconfig(libxfce4panel-1.0)
BuildRequires:  pkgconfig(exo-1)
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  pkgconfig(libxfconf-0)
BuildRequires:  pkgconfig(unique-1.0)
BuildRequires:  update-desktop-files
BuildRequires:  xfce4-dev-tools
Requires:       xfce4-panel >= 4.8.0
Recommends:     %{name}-doc = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a clipboard manager which comes with a plugin for the Xfce Panel. It
stores the X selection (primary and clipboard) contents even after an
application has quit and is able to handle text and image data. Furthermore, it
can be configured to execute arbitrary actions when the selection content
matches specific regular expressions.


%package doc
License:        GPLv2+
Summary:        Documentation for xfce4-panel-plugin-clipman
Group:          Documentation/HTML
Requires:       xfce4-panel-plugin-clipman = 1.1.3

%description doc
This is a clipboard manager which comes with a plugin for the Xfce Panel. It
stores the X selection (primary and clipboard) contents even after an
application has quit and is able to handle text and image data. Furthermore, it
can be configured to execute arbitrary actions when the selection content
matches specific regular expressions.

This package contains the user documentation for xfce4-panel-plugin-clipman.


%prep
%setup -q -n %{plugin_name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
xdt-autogen
%configure \
    --docdir=%{_datadir}/xfce4/xfce4-clipman-plugin \
    --disable-static
make %{_smp_mflags} V=1

%install
%make_install
%suse_update_desktop_file %{plugin_name}
%suse_update_desktop_file %{plugin_name}-autostart
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{plugin_name} %{name}.lang
%fdupes %{buildroot}%{_datadir}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} >= 1140

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_datadir}/xfce4/panel-plugins/xfce4-clipman-plugin.desktop
%{_sysconfdir}/xdg/autostart/xfce4-clipman-plugin-autostart.desktop
%config %{_sysconfdir}/xdg/xfce4/panel/xfce4-clipman-actions.xml
%dir %{_sysconfdir}/xdg/xfce4/panel
%{_libexecdir}/xfce4/panel-plugins/xfce4-clipman-plugin
%{_bindir}/xfce4-clipman
%{_bindir}/xfce4-clipman-settings
%{_bindir}/xfce4-popup-clipman
%{_datadir}/applications/xfce4-clipman-plugin.desktop
%{_datadir}/icons/hicolor/16x16/apps/xfce4-clipman-plugin.png
%{_datadir}/icons/hicolor/22x22/apps/xfce4-clipman-plugin.png
%{_datadir}/icons/hicolor/24x24/apps/xfce4-clipman-plugin.png
%{_datadir}/icons/hicolor/32x32/apps/xfce4-clipman-plugin.png
%{_datadir}/icons/hicolor/scalable/apps/xfce4-clipman-plugin.svg

%files doc
%defattr(-,root,root)
%dir %{_datadir}/xfce4
%dir %{_datadir}/xfce4/xfce4-clipman-plugin
%doc %{_datadir}/xfce4/xfce4-clipman-plugin/html/

%changelog
openSUSE Build Service is sponsored by