]> git.pld-linux.org Git - packages/ed2k-gtk-gui.git/blobdiff - ed2k-gtk-gui.spec
- updated to 0.6.2
[packages/ed2k-gtk-gui.git] / ed2k-gtk-gui.spec
index 4ad372438e98907780dd4d7dc7bef986e65d98c4..de6ac2cc3591446458c74a122502a93214cd9853 100644 (file)
@@ -1,58 +1,76 @@
-%define                ed2k_rel        1
+#
+# Conditional build:
+# _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.4.0
+Version:       0.6.2
 Release:       1
 License:       GPL
 Group:         Applications/Communications
-Source0:       http://download.sourceforge.net/%{name}/%{name}_%{version}-%{ed2k_rel}.tar.gz
+Source0:       http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: 4e4644a77d97e88a9e474efef52fbd8b
+Patch0:                %{name}-home_etc.patch
+Patch1:                %{name}-enable-deprecated.patch
 URL:           http://ed2k-gtk-gui.sourceforge.net/
-BuildRequires: gtk+-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gnet-devel >= 2.0.0
+BuildRequires: gtk+2-devel
 BuildRequires: libxml2-devel
 BuildRequires: zlib-devel
-BuildRequires: gnet-devel
+%{!?_without_core:Requires: eDonkey-core}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         _prefix         /usr/X11R6
-%define                _docdir         /usr/X11R6/share
-
 %description
-eDonkey2000 P2P Network Client.
+GTK+ GUI for eDonkey2000 or overnet core client.
 
 %description -l pl
-Klient sieci eDonkey2000.
+Nak³adka na rdzeñ klienta sieci eDonkey2000 lub sieci Overnet.
 
 %prep
-%setup -q -n ed2k_gui-%{version}
+%setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-%configure2_13
+rm -f missing
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-rm -f ed2k_gui/docs/en/Makefile*
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+rm -f docs/{de,en,es}/Makefile*
+
 %find_lang ed2k_gui
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-echo "You must download the \"core\" of eDonkey from" 
-echo "http://ed2k-gtk-gui.sourceforge.net/core.shtml"
-echo "----------------------------------------------"
-echo "It is highly recommended that you place the eDonkey2000 core/command line"
-echo "client in a directory of its own somewhere in your home directory"
-echo "(e.g. /home/joe/ed2k/), because otherwise your home directory will"
-echo "be cluttered with ed2k core configuration files. Also, always do "
-echo "a cd /home/joe/ed2k before you start the core, because the core will look"
-echo "for its configuration files in the current working directory!"
+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 BUGS AUTHORS ed2k_gui/docs/en/
+%doc README ChangeLog TODO AUTHORS docs/en
+%lang(de) %doc docs/de
+%lang(es) %doc docs/es
+%{_mandir}/man1/*
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/ed2k_gui/*
+%{_datadir}/ed2k_gui
+%{_desktopdir}/*
This page took 0.074352 seconds and 4 git commands to generate.