%define desktop_vendor atrpms Summary: A client for peer-to-peer networks Name: mldonkey Version: 2.9.4 %define pkgversion %{version} Release: 76%{?dist} URL: http://mldonkey.sourceforge.net/ Source0: http://prdownloads.sourceforge.net/mldonkey/%{name}-%{pkgversion}.tar.bz2 Source1: mldonkey.init.in Source2: mldonkey.sysconfig Source3: mldonkey.desktop Source4: mldw-header3_03.xpm License: GPL Group: Applications/Internet BuildRoot: %{_tmppath}/%{name}-root BuildRequires: ocaml >= 1:3.09.0, lablgtk >= 2.10.0, gtk2-devel, autoconf >= 2.57, gcc-c++ BuildRequires: desktop-file-utils, zlib-devel, wget BuildRequires: ncurses-devel, librsvg2-devel BuildRequires: bzip2-devel, gd-devel Requires: mldonkey-frontend, mldonkey-backend %description mldonkey is a new client to access the eDonkey network, a peer-to-peer network particularly efficient for big files thanks to a multi-sources download protocol. It is written in Objective-Caml, and comes with its own GTK GUI, an HTTP interface and a telnet interface. It works on most UNIX platforms. %package backend Summary: MLdonkey backend Group: Applications/Internet Requires: nc Requires: file %description backend mldonkey is a new client to access the eDonkey network, a peer-to-peer network particularly efficient for big files thanks to a multi-sources download protocol. It is written in Objective-Caml, and comes with its own GTK GUI, an HTTP interface and a telnet interface. It works on most UNIX platforms. This package contains the mldonkey daemon. %package frontend Summary: MLdonkey graphical user interfaces Group: Applications/Internet %description frontend mldonkey is a new client to access the eDonkey network, a peer-to-peer network particularly efficient for big files thanks to a multi-sources download protocol. It is written in Objective-Caml, and comes with its own GTK GUI, an HTTP interface and a telnet interface. It works on most UNIX platforms. This package contains frontends for mldonkey. %prep %setup -q %build %configure --enable-pthread --enable-gui --disable-rpath \ --enable-ocamlver=3.10.2 make depend make opt make utils %install rm -rf %{buildroot} #mkdir -p %{buildroot}%{_bindir} #install -p mlnet %{buildroot}%{_libdir}/mldonkey #install -p mlgui mlim mlchat %{buildroot}%{_bindir}/ make install DESTDIR=%{buildroot} mkdir -p %{buildroot}%{_libdir}/mldonkey mv %{buildroot}%{_bindir}/mlnet %{buildroot}%{_libdir}/mldonkey mkdir -p %{buildroot}%{_localstatedir}/lib/mldonkey/chroot/bin mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d sed -e's,@lib@,%{_lib},g' \ -e's,@_x_libraries@,%{_x_libraries},' \ < %{SOURCE1} > %{buildroot}%{_sysconfdir}/rc.d/init.d/mldonkey chmod 0755 %{buildroot}%{_sysconfdir}/rc.d/init.d/mldonkey mkdir -p %{buildroot}%{_sysconfdir}/sysconfig install -p -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/mldonkey mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/pixmaps cp %{SOURCE4} %{buildroot}%{_datadir}/pixmaps desktop-file-install --vendor %{desktop_vendor} \ --dir %{buildroot}%{_datadir}/applications \ --add-category X-Red-Hat-Extra \ --add-category Application \ --add-category Network \ %{SOURCE3} # for %doc find . -type f | xargs chmod a-x %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %files backend %defattr(-,root,root,-) %doc Install.txt Copying.txt ChangeLog Developers.txt distrib docs %{_libdir}/mldonkey %{_sysconfdir}/rc.d/init.d/* %config(noreplace) %{_sysconfdir}/sysconfig/mldonkey /var/lib/mldonkey %files frontend %defattr(-,root,root,-) %{_bindir}/* %{_datadir}/applications/*%{name}.desktop %{_datadir}/pixmaps/mldw-header3_03.xpm %pre backend # Add the "mldonkey" user /usr/sbin/useradd -c "mldonkey User" \ -s /sbin/nologin -r -d /var/lib/mldonkey/home mldonkey 2> /dev/null || : %post backend /sbin/chkconfig --add mldonkey %preun backend if [ $1 = 0 ]; then /sbin/service mldonkey stop > /dev/null 2>&1 /sbin/chkconfig --del mldonkey fi %changelog * Sun Mar 9 2008 Axel Thimm - 2.9.4-76 - Update to 2.9.4. * Thu Jan 31 2008 Axel Thimm - 2.9.3-74 - Update to 2.9.3. * Fri Dec 28 2007 Axel Thimm - 2.9.2-73 - Allow any character in files (#1346, fix by Stanislav Sukholet ). * Thu Oct 25 2007 Paulo Cavalcanti - 2.9.2-71 - Updated to 2.9.2 - Requires lablgtk >= 2.10.0 * Fri Oct 21 2007 Paulo Cavalcanti - 2.9.1-70_1 - Lowered dependency on ocaml so 3.09 can be used, which seems to fix segfault on FC6. * Fri Oct 12 2007 Paulo Cavalcanti - 2.9.1-70 - Updated to 2.9.1. * Mon Jul 30 2007 Paulo Cavalcanti - 2.9.0-69 - Added desktop icon. * Sun Jul 29 2007 Axel Thimm - 2.9.0-68 - Update to 2.9.0. * Sun Jun 3 2007 Axel Thimm - 2.8.7-67 - Update to 2.8.7. * Fri Jun 1 2007 Axel Thimm - 2.8.6-64 - Update to 2.8.6. * Mon Apr 23 2007 Axel Thimm - 2.8.5-63 - Update to 2.8.5. * Sun Apr 1 2007 Axel Thimm - 2.8.4-62 - Update to 2.8.4. * Mon Feb 12 2007 Axel Thimm - 2.8.3-61 - Remove compartment (fails on x86_64, #1079). - Make chroot work on ppc, too. * Sun Feb 11 2007 Axel Thimm - 2.8.3-60 - Update to 2.8.3. * Wed Nov 29 2006 Axel Thimm - 2.8.2-58 - Update to 2.8.2. * Fri Nov 3 2006 Axel Thimm - 2.8.1-57 - Update to 2.8.1. * Mon Jul 24 2006 Axel Thimm - 2.7.7-56 - Move home/chroot to /var/lib/mldonkey/{home,chroot}. * Thu Jun 22 2006 Axel Thimm - Update to 2.7.7. * Sun May 21 2006 Axel Thimm - Update to 2.7.6. * Fri Apr 14 2006 Axel Thimm - Update to 2.7.5. * Sun Mar 12 2006 Axel Thimm - Update to 2.7.4. * Sat Jan 21 2006 Axel Thimm - Update to 2.7.3. * Fri Dec 23 2005 Axel Thimm - Update to 2.7.1. * Sun Oct 30 2005 Axel Thimm - Update to 2.6.7. * Mon Oct 3 2005 Axel Thimm - Update to 2.6.4. * Mon Aug 22 2005 Axel Thimm - Update to 2.6.3. * Thu Jul 21 2005 Axel Thimm - Update to 2.6.0. * Wed Jul 13 2005 Axel Thimm - Update to 2.5.30.17. * Mon May 30 2005 Arjen Heidinga - Update to 2.5.30.15. * Mon May 30 2005 Arjen Heidinga - Update to 2.5.30.9. * Sat Apr 2 2005 Axel Thimm - Update to 2.5.28.1. * Fri Aug 20 2004 Axel Thimm - Update to 2.5.28. * Fri Aug 6 2004 Axel Thimm - Update to 2.5.22. * Thu May 6 2004 Axel Thimm - Update to 2.5.21. * Mon May 3 2004 Axel Thimm - Update to 2.5.19. * Sat Apr 17 2004 Axel Thimm - Update to 2.5.18. * Mon Mar 8 2004 Axel Thimm - Update to 2.5.16. * Sun Mar 7 2004 Axel Thimm - Update to 2.5.14. * Fri Feb 6 2004 Axel Thimm - Update to 2.5.6. * Mon Oct 13 2003 Axel Thimm - Update to 2.5-4. * Sun Sep 14 2003 Axel Thimm - Split package into frontend, backend and meta package. * Thu Jun 5 2003 Axel Thimm - Update to 2.5-3. * Sat May 24 2003 Axel Thimm - Fixes reported by Cornelius Rossmanith . - Make pid variable whitespace safe in init file. - Add /tmp to chroot environment. * Mon May 12 2003 Axel Thimm - Update to 2.4. * Sun May 11 2003 Axel Thimm - Update to 2.04rc12. - Added desktop entry. - Remove explicit uid (was 92). * Wed Mar 5 2003 Axel Thimm - Update to cvs 2.02-27. * Thu Dec 26 2002 Axel Thimm - Update to 2.02. * Wed Dec 18 2002 Axel Thimm - Update to 2.01. * Wed Nov 27 2002 Axel Thimm - Initial build.