-#
-# Conditional build:
-%bcond_without core # use it if you will have own edonkey2000 core
-#
Summary: eDonkey2000 P2P Network Client
Summary(pl): Klient sieci eDonkey2000
Name: ed2k-gtk-gui
-Version: 0.6.2
+Version: 0.6.4
Release: 1
License: GPL
Group: Applications/Communications
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 4e4644a77d97e88a9e474efef52fbd8b
+# Source0-md5: c51ddfc64ba39e2bb5383a95afe72c53
Patch0: %{name}-home_etc.patch
Patch1: %{name}-enable-deprecated.patch
+Patch2: %{name}-desktop.patch
URL: http://ed2k-gtk-gui.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
+BuildRequires: gettext-devel
BuildRequires: gnet-devel >= 2.0.0
BuildRequires: gtk+2-devel
BuildRequires: libxml2-devel
+BuildRequires: pkgconfig
BuildRequires: zlib-devel
-%{?with_core:Requires: eDonkey-core}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
rm -f missing
+cp -f /usr/share/automake/config.sub .
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm -f docs/{de,en,es}/Makefile*
+rm -f docs/{de,en,es,pl}/Makefile*
%find_lang ed2k_gui
%clean
rm -rf $RPM_BUILD_ROOT
-%post
-echo""
-echo "Please type edonkey-conf, when you'll be logged as user"
-echo "It will prepare your donkey to use with ed2k :)"
-echo ""
-echo "You may also type overnet-conf, it will prepare overnet-core"
-echo "to use with ed2k, more info at http://www.overnet.com/"
-echo ""
-
%files -f ed2k_gui.lang
%defattr(644,root,root,755)
%doc README ChangeLog TODO AUTHORS docs/en
%lang(de) %doc docs/de
%lang(es) %doc docs/es
+%lang(pl) %doc docs/pl
%{_mandir}/man1/*
%attr(755,root,root) %{_bindir}/*
%{_datadir}/ed2k_gui
-%{_desktopdir}/*
+%{_desktopdir}/*.desktop