File xfce4-panel-plugin-clipman.spec of Package xfce4-panel-plugin-clipman
#
# spec file for package xfce4-panel-plugin-clipman
#
# Copyright (c) 2012 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
Version: 1.2.3
Release: 0
Summary: Clipboard Manager Plugin for the Xfce Panel
License: GPL-2.0+
Group: System/GUI/XFCE
Url: http://goodies.xfce.org/projects/panel-plugins/xfce4-clipman-plugin
Source0: http://archive.xfce.org/src/panel-plugins/%{plugin_name}/1.2/%{plugin_name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(exo-1)
BuildRequires: pkgconfig(gdk-x11-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxfce4panel-1.0)
BuildRequires: pkgconfig(libxfce4ui-1)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xtst)
Requires: xfce4-panel >= %{panel_version}
# uses exo-open
Requires: exo-tools
Recommends: %{name}-lang = %{version}
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
Summary: Documentation for %{name}
Group: Documentation/HTML
Requires: xfce4-panel >= %{panel_version}
%description doc
This package contains the user documentation for xfce4-panel-plugin-clipman.
%lang_package
%prep
%setup -q -n %{plugin_name}-%{version}
%build
%configure \
--disable-static \
--docdir=%{_datadir}/xfce4/%{plugin_name}
make %{_smp_mflags} V=1
%install
%make_install
rm -f %{buildroot}%{_libdir}/xfce4/panel/plugins/libclipman.la
%suse_update_desktop_file xfce4-clipman
%suse_update_desktop_file %{plugin_name}-autostart
rm -rf %{buildroot}%{_datadir}/locale/{ast,kk,tl_PH,ur_PK}
%find_lang %{plugin_name} %{name}.lang %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}
%clean
rm -rf %{buildroot}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_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
%{_libdir}/xfce4/panel/plugins/libclipman.so
%{_bindir}/xfce4-clipman
%{_bindir}/xfce4-clipman-settings
%{_bindir}/xfce4-popup-clipman
%{_datadir}/applications/xfce4-clipman.desktop
%{_datadir}/icons/hicolor/*/apps/*
%files doc
%defattr(-,root,root)
%dir %{_datadir}/xfce4
%dir %{_datadir}/xfce4/%{plugin_name}
%doc %{_datadir}/xfce4/%{plugin_name}/html
%files lang -f %{name}.lang
%changelog