-Summary: Mousepad - a text editor for Xfce based on Leafpad
-Summary(pl): Mousepad - edytor dla Xfce oparty na Leafpadzie
+#
+%define xfce_version 4.3.90.2
+#
+Summary: Text editor for Xfce based on Leafpad
+Summary(pl): Edytor textu dla Xfce oparty na Leafpadzie
Name: mousepad
-Version: 0.2.0
-Release: 0.1
+Version: 0.2.6
+Release: 1
License: GPL v2
Group: X11/Applications/Editors
-Source0: http://erikharrison.net/software/%{name}-%{version}.tar.gz
-# Source0-md5: e554145e8fffcd5fd8d3e027575e0765
+Source0: http://www.xfce.org/archive/xfce-%{xfce_version}/src/%{name}-%{version}.tar.bz2
+# Source0-md5: f8c23b1de6d23927729c477689883c38
+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}
+LDFLAGS="%{rpmldflags} -Wl,--as-needed"
%configure
%{__make}