-Summary: Mousepad - a text editor for Xfce based on Leafpad
-Summary(pl): Mousepad - edytor dla Xfce oparty na Leafpadzie
+#
+%define xfce_version 4.3.99.1
+#
+Summary: Text editor for Xfce based on Leafpad
+Summary(pl): Edytor textu dla Xfce oparty na Leafpadzie
Name: mousepad
-Version: 0.2.1
+Version: 0.2.8
Release: 1
License: GPL v2
Group: X11/Applications/Editors
-Source0: http://erikharrison.net/software/%{name}-%{version}.tar.gz
-# Source0-md5: 9a5bf90acc6fffd5c09334c7cb4b7054
+Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/%{name}-%{version}.tar.bz2
+# Source0-md5: ad40c3b610123b7347094464a603e337
+Patch0: %{name}-desktop.patch
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake
BuildRequires: gettext-devel
-BuildRequires: gtk+2-devel >= 2:2.4.0
-BuildRequires: libxfcegui4-devel >= 4.2.0
+BuildRequires: gtk+2-devel >= 2:2.10.0
+BuildRequires: intltool >= 0.35.0
+BuildRequires: libtool
+BuildRequires: libxfcegui4-devel >= %{xfce_version}
BuildRequires: pkgconfig >= 1:0.9.0
-Requires: libxfcegui4 >= 4.2.0
-Requires: xfprint >= 4.2
+BuildRequires: xfce4-dev-tools >= %{xfce_version}
+#Requires: xfprint >= 4.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%patch0 -p1
%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoheader}
+%{__automake}
+%{__autoconf}
%configure
%{__make}