File xfce4-panel-plugin-notes.spec of Package xfce4-panel-plugin-notes
#
# spec file for package xfce4-panel-plugin-notes
#
# Copyright (c) 2013 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
Version: 1.7.7
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.7/%{plugin_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM xfce4-panel-plugin-notes-create-unversioned-lib.patch gber@opensuse.org -- Do not create a versioned library
Patch0: xfce4-panel-plugin-notes-create-unversioned-lib.patch
# PATCH-FIX-UPSTREAM xfce4-panel-plugin-notes-automake-1.13.patch pgajdos@suse.cz
Patch1: xfce4-panel-plugin-notes-automake-1.13.patch
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(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfcegui4-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(unique-1.0)
Requires: xfce4-panel >= %{panel_version}
# uses exo-open
Requires: exo-tools
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}
%patch0 -p1
%patch1 -p1
%build
XDT_CONFIGURE_FLAGS=--disable-maintainer-mode xdt-autogen
%configure --disable-static
make %{_smp_mflags} V=1
%install
%make_install
# correct the name of the desktop file in order to prevent migration issues
# (bxo#6993)
mv %{buildroot}%{_datadir}/xfce4/panel-plugins/xfce4-notes-plugin-47.desktop \
%{buildroot}%{_datadir}/xfce4/panel-plugins/xfce4-notes-plugin.desktop
rm %{buildroot}%{_libdir}/xfce4/panel/plugins/libnotes.la
%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 %{?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 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
%changelog