File xfce4-panel-plugin-notes.spec of Package xfce4-panel-plugin-notes
#
# spec file for package xfce4-panel-plugin-notes
#
# Copyright (c) 2015 SUSE LINUX 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.10.0
%define plugin_name xfce4-notes-plugin
Name: xfce4-panel-plugin-notes
Version: 1.8.1
Release: 0
Summary: Note-taking Plugin for the Xfce Panel
License: GPL-2.0+
Group: System/GUI/XFCE
Url: http://goodies.xfce.org/projects/panel-plugins/xfce4-notes-plugin
Source0: http://archive.xfce.org/src/panel-plugins/%{plugin_name}/1.8/%{plugin_name}-%{version}.tar.bz2
BuildRequires: fdupes
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: xfce4-dev-tools
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libxfce4panel-1.0)
BuildRequires: pkgconfig(libxfce4ui-2)
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: pkgconfig(xfce4-vala)
# uses exo-open
Requires: exo-tools
Requires: xfce4-panel >= %{panel_version}
Recommends: %{name}-lang = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Notes plugin provides the equivalent to post-it notes on the Xfce desktop
and allows to quickly take and store small notes.
%lang_package
%prep
%setup -q -n %{plugin_name}-%{version}
%build
%configure \
--disable-static
make %{?_smp_mflags} V=1
%install
%make_install
rm %{buildroot}%{_libdir}/xfce4/panel/plugins/libnotes.la
%suse_update_desktop_file xfce4-notes
%suse_update_desktop_file xfce4-notes-autostart
%find_lang %{plugin_name} %{name}.lang %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%{_bindir}/xfce4-notes
%{_bindir}/xfce4-notes-settings
%{_bindir}/xfce4-popup-notes
%{_datadir}/xfce4-notes-plugin
%{_datadir}/icons/hicolor/*/apps/xfce4-notes-plugin.*
%{_datadir}/xfce4/panel-plugins/xfce4-notes-plugin.desktop
%{_datadir}/applications/xfce4-notes.desktop
%{_libdir}/xfce4/panel/plugins/libnotes.so
%{_sysconfdir}/xdg/autostart/xfce4-notes-autostart.desktop
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog