File xfce4-panel-plugin-notes.spec of Package xfce4-panel-plugin-notes
#
# spec file for package xfce4-panel-plugin-notes
#
# 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-notes-plugin
Name: xfce4-panel-plugin-notes
License: GPLv2+
Version: 1.7.7
Release: 8
Summary: Note-taking plugin for the Xfce panel
Url: http://goodies.xfce.org/projects/panel-plugins/xfce4-notes-plugin
Source0: xfce4-notes-plugin-1.7.7.tar.bz2
# PATCH-FIX-UPSTREAM xfce4-panel-plugin-notes-1.7.7-add-missing-vapi-files.patch gber@opensuse.org -- Adds VAPI files for libxfcegui4 missing from xfce4-vala 4.7 (backported from upstream git)
Patch0: xfce4-panel-plugin-notes-1.7.7-add-missing-vapi-files.patch
# PATCH-FIX-UPSTREAM xfce4-panel-plugin-notes-1.7.7-fix-desktop-file.patch gber@opensuse.org -- Adds missing X-XFCE-Module-Path to .desktop files so the plugin can be loaded (backported from upstream git)
Patch1: xfce4-panel-plugin-notes-1.7.7-fix-desktop-file.patch
Group: System/GUI/XFCE
BuildRequires: intltool
BuildRequires: fdupes
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(libxfce4panel-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(unique-1.0)
Requires: xfce4-panel >= 4.8.0
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.
%prep
%setup -q -n %{plugin_name}-%{version}
%patch0 -p1
%patch1 -p1
%build
%configure --disable-static
make %{_smp_mflags} V=1
%install
%make_install
rm -rf %{buildroot}%{_libdir}/xfce4/panel-plugins/libnotes.la
# fix missing substitution
sed 's|@INTERNAL_PLUGIN_PATH@|%{_libdir}/xfce4/panel-plugins|' \
src/xfce4-notes-plugin-47.desktop \
>%{buildroot}%{_datadir}/xfce4/panel-plugins/xfce4-notes-plugin-47.desktop
%suse_update_desktop_file xfce4-notes
%suse_update_desktop_file xfce4-notes-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)
%{_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-47.desktop
%{_datadir}/applications/xfce4-notes.desktop
%{_libdir}/xfce4/panel-plugins/libnotes.so.0.0.0
%{_libdir}/xfce4/panel-plugins/libnotes.so
%{_libdir}/xfce4/panel-plugins/libnotes.so.0
%{_sysconfdir}/xdg/autostart/xfce4-notes-autostart.desktop
%changelog