Summary: Unix port of eMule client
-Summary(pl): Uniksowy port klienta eMule
+Summary(pl.UTF-8): Uniksowy port klienta eMule
Name: aMule
-Version: 2.0.0
-Release: 1
+Version: 2.2.5
+Release: 3
License: GPL
Group: X11/Applications
-Source0: http://download.berlios.de/amule/%{name}-%{version}.tar.gz
-# Source0-md5: e6680641e171ddf4236c955168947ba0
-Patch0: %{name}-configure_in.patch
-Patch1: %{name}-desktop.patch
-Patch2: %{name}-cas-datadir.patch
+Source0: http://download.berlios.de/amule/%{name}-%{version}.tar.bz2
+# Source0-md5: d26048f8e00a1ca801b3b41156b4268d
+Patch0: %{name}-desktop.patch
+Patch1: %{name}-cas-datadir.patch
URL: http://www.amule.org/
+BuildRequires: GeoIP-devel
BuildRequires: autoconf
-BuildRequires: automake >= 1:1.7.3
+BuildRequires: automake < 1:1.11
+BuildRequires: automake > 1:1.9
+BuildRequires: binutils-devel
BuildRequires: bison
-#BuildRequires: cryptopp-devel >= 5.1
+BuildRequires: cryptopp-devel >= 5.1
BuildRequires: curl-devel >= 7.9.7
BuildRequires: expat-devel
BuildRequires: gd-devel
+BuildRequires: gettext-autopoint
BuildRequires: gettext-devel >= 0.11.5
BuildRequires: gtk+2-devel >= 2:2.2.0
BuildRequires: libpng-devel
BuildRequires: libstdc++-devel
-BuildRequires: wxBase-devel >= 2.6.0
-BuildRequires: wxGTK2-devel >= 2.6.0
+BuildRequires: wxGTK2-unicode-devel
+BuildRequires: xorg-lib-libXpm-devel
Requires: wget
Obsoletes: lmule
Obsoletes: xmule
%description
aMule is a Linux port of eMule client.
-%description -l pl
+%description -l pl.UTF-8
aMule to linuksowy port klienta eMule.
+%package plugin-xchat
+Summary: Xchat plugin
+Summary(pl.UTF-8): Wtyczka dla xchat
+Group: X11/Applications
+Requires: %{name} = %{version}-%{release}
+Provides: %{name}-plugin-xchat
+
+%description plugin-xchat
+Plugin for Xchat IRC client.
+
+%description plugin-xchat -l pl.UTF-8
+Wtczka dla klienta IRC xchat.
+
+%package alc
+Summary: Ed2k link creator for aMule
+Summary(pl.UTF-8): Kreator linków ed2k dla aMule
+Group: X11/Applications
+Requires: %{name} = %{version}-%{release}
+Provides: alc
+
+%description alc
+Tool for creating ed2k links.
+
+%description alc -l pl.UTF-8
+Narzędzie do tworzenia linków ed2k.
+
+%package cas
+Summary: aMule online stats
+Summary(pl.UTF-8): Statystyki online aMule
+Group: X11/Applications
+Requires: %{name} = %{version}-%{release}
+Provides: cas
+
+%description cas
+Tool for generating aMule online stats.
+
+%description cas -l pl.UTF-8
+Narzędzie do generownia statystyk aMule.
+
%prep
%setup -q
%patch0 -p1
%patch1 -p1
-%patch2 -p1
%build
-%{__gettextize}
%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
- --with-wx-config=%{_bindir}/wx-gtk2-ansi-config \
+ --with-wx-config=wx-gtk2-unicode-config \
--%{?debug:en}%{!?debug:dis}able-debug \
- --enable-optimise \
+ --%{?debug:dis}%{!?debug:en}able-optimize \
--enable-amule-daemon \
+ --enable-amule-gui \
--enable-amulecmd \
- --enable-amulecmdgui \
--enable-webserver \
- --enable-webservergui \
--enable-cas \
--enable-wxcas \
--enable-alc \
- --enable-alcc
-
+ --enable-alcc \
+ --enable-geoip
%{__make}
%install
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+install src/utils/xas/xas.pl $RPM_BUILD_ROOT%{_libdir}/xchat/plugins
+install {amule.desktop,amulegui.desktop,src/utils/aLinkCreator/alc.desktop,src/utils/wxCas/wxcas.desktop} $RPM_BUILD_ROOT%{_desktopdir}
+install {amule.xpm,amulegui.xpm,src/utils/aLinkCreator/alc.xpm,src/utils/wxCas/wxcas.xpm} $RPM_BUILD_ROOT%{_pixmapsdir}
+
+mv -f $RPM_BUILD_ROOT%{_datadir}/locale/et{_EE,}
+mv -f $RPM_BUILD_ROOT%{_datadir}/locale/ko{_KR,}
+mv -f $RPM_BUILD_ROOT%{_datadir}/locale/pt{_PT,}
+rm -fr $RPM_BUILD_ROOT%{_docdir}/amule
+rm -fr $RPM_BUILD_ROOT%{_mandir}/eu
%find_lang amule
%clean
%files -f amule.lang
%defattr(644,root,root,755)
-%doc docs/AUTHORS docs/README docs/Changelog docs/ED2K-Links.HOWTO docs/TODO docs/amulesig.txt
-%attr(755,root,root) %{_bindir}/*
-%lang(de) %{_mandir}/de/man1/*
-%lang(es) %{_mandir}/es/man1/*
-%lang(fr) %{_mandir}/fr/man1/*
-%lang(hu) %{_mandir}/hu/man1/*
-%{_mandir}/man1/*
-%{_desktopdir}/*
-%{_pixmapsdir}/*
-%{_datadir}/amule/cas
+%doc docs/AUTHORS docs/EC_Protocol.txt docs/README docs/Changelog docs/ED2K-Links.HOWTO docs/TODO docs/amulesig.txt
+%attr(755,root,root) %{_bindir}/autostart-xas
+%attr(755,root,root) %{_bindir}/amule*
+%attr(755,root,root) %{_bindir}/ed2k
+%dir %{_datadir}/amule
%{_datadir}/amule/webserver
+%{_datadir}/amule/skins
+%{_desktopdir}/amule.desktop
+%{_desktopdir}/amulegui.desktop
+%{_pixmapsdir}/amule.xpm
+%{_pixmapsdir}/amulegui.xpm
+%{_mandir}/man1/amule*
+%{_mandir}/man1/ed2k*
+%{_mandir}/man1/xas*
+%lang(de) %{_mandir}/de/man1/amule*
+%lang(de) %{_mandir}/de/man1/ed2k*
+%lang(de) %{_mandir}/de/man1/xas*
+%lang(es) %{_mandir}/es/man1/amule*
+%lang(es) %{_mandir}/es/man1/ed2k*
+%lang(es) %{_mandir}/es/man1/xas*
+%lang(fr) %{_mandir}/fr/man1/amule*
+%lang(fr) %{_mandir}/fr/man1/ed2k*
+%lang(hu) %{_mandir}/hu/man1/amule*
+%lang(hu) %{_mandir}/hu/man1/ed2k*
+%lang(hu) %{_mandir}/hu/man1/xas*
+
+%files plugin-xchat
+%defattr(644,root,root,755)
+%{_libdir}/xchat/plugins/xas.pl
+
+%files alc
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/alc*
+%{_desktopdir}/alc.desktop
+%{_pixmapsdir}/alc.xpm
+%{_mandir}/man1/alc*
+%lang(de) %{_mandir}/de/man1/alc*
+%lang(es) %{_mandir}/es/man1/alc*
+%lang(fr) %{_mandir}/fr/man1/alc*
+%lang(hu) %{_mandir}/hu/man1/alc*
+
+%files cas
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/*cas
+%{_datadir}/amule/cas
+%{_desktopdir}/*cas.desktop
+%{_pixmapsdir}/wxcas.xpm
+%{_mandir}/man1/*cas*
+%lang(de) %{_mandir}/de/man1/*cas*
+%lang(es) %{_mandir}/es/man1/*cas*
+%lang(hu) %{_mandir}/hu/man1/*cas*