-Summary: Notes plugin for the XFce4 panel
-Summary(pl): Notatki dla XFce4
+Summary: Notes plugin for the Xfce panel
+Summary(pl.UTF-8): Notatki dla panelu Xfce
Name: xfce4-notes-plugin
-Version: 0.10.0
-Release: 0.1
+Version: 1.7.2
+Release: 3
License: GPL
-Group: X11/Applications
-Source0: http://download.berlios.de/xfce-goodies/%{name}-%{version}.tar.gz
-# Source0-md5: 3fe2a4ce0bf208138b8056dd1ca6ab74
-URL: http://xfce-goodies.berlios.de/
-BuildRequires: xfce4-panel >= 4.1.90
-Requires: xfce4-panel >= 4.1.90
+Group: X11/Applications
+Source0: http://archive.xfce.org/src/panel-plugins/xfce4-notes-plugin/1.7/%{name}-%{version}.tar.bz2
+# Source0-md5: 054742ecc4bb83de6c1447b023938d3e
+URL: http://goodies.xfce.org/projects/panel-plugins/xfce4-notes-plugin
+BuildRequires: Thunar-devel >= 0.8.0
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.311
+BuildRequires: xfce4-dev-tools >= 4.6.0
+BuildRequires: xfce4-panel-devel >= 4.6.0
+BuildRequires: xfconf-devel >= 4.6.0
+Requires(post,postun): gtk+2
+Requires(post,postun): hicolor-icon-theme
+Requires: xfce4-panel >= 4.6.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-xfce4-notes is a plugin for the XFce 4 panel which provides a simple system
-for managing sticky notes on your desktop.
-%description -l pl
-xfce4-notes jest wtyczk± dla panelu XFce 4 pozwalaj±c± na umieszczanie
+xfce4-notes is a plugin for the Xfce panel which provides a simple
+system for managing sticky notes on your desktop.
+
+%description -l pl.UTF-8
+xfce4-notes jest wtyczką dla panelu Xfce pozwalającą na umieszczanie
notatek na pulpicie.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
%build
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure
+%configure \
+ --disable-static
+
%{__make}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+rm -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK
+
+%find_lang %{name}
+
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%post
+%update_icon_cache hicolor
+
+%postun
+%update_icon_cache hicolor
+
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_libdir}/xfce4/panel-plugins/libnotes.so
-%{_datadir}/xfce4/notes/note.png
+%doc AUTHORS ChangeLog NEWS README TODO
+%{_sysconfdir}/xdg/autostart/xfce4-notes-autostart.desktop
+%attr(755,root,root) %{_bindir}/xfce4-notes
+%attr(755,root,root) %{_bindir}/xfce4-popup-notes
+%attr(755,root,root) %{_bindir}/xfce4-notes-settings
+%attr(755,root,root) %{_libdir}/xfce4/panel-plugins/xfce4-notes-plugin
+%{_datadir}/xfce4/panel-plugins/xfce4-notes-plugin.desktop
+%{_iconsdir}/hicolor/*/apps/*.*
+%{_desktopdir}/xfce4-notes.desktop