|
|
|
|
@ -32,10 +32,7 @@ Class: EVAL
|
|
|
|
|
Group: P2P |
|
|
|
|
License: MLdonkey/GPL |
|
|
|
|
Version: 3.0.2 |
|
|
|
|
Release: 20100426 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_gui no |
|
|
|
|
Release: 20100521 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://switch.dl.sourceforge.net/mldonkey/mldonkey-%{version}.tar.bz2 |
|
|
|
|
@ -47,10 +44,6 @@ BuildPreReq: OpenPKG, openpkg >= 20100101, make
|
|
|
|
|
PreReq: OpenPKG, openpkg >= 20100101 |
|
|
|
|
BuildPreReq: ocaml, gd, png, jpeg |
|
|
|
|
PreReq: ocaml, gd, png, jpeg |
|
|
|
|
%if "%{with_gui}" == "yes" |
|
|
|
|
BuildPreReq: X11, ocaml-gtk, ocaml-gtk::with_gtk2 = yes |
|
|
|
|
PreReq: X11, ocaml-gtk, ocaml-gtk::with_gtk2 = yes |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
%description |
|
|
|
|
MLdonkey is a multi-platform multi-networks Peer-to-Peer (P2P) |
|
|
|
|
@ -78,20 +71,14 @@ PreReq: X11, ocaml-gtk, ocaml-gtk::with_gtk2 = yes
|
|
|
|
|
CPPFLAGS="%{l_cppflags}" \ |
|
|
|
|
LDFLAGS="%{l_ldflags}" \ |
|
|
|
|
OCAMLC="%{l_prefix}/bin/ocamlc" \ |
|
|
|
|
%if "%{with_gui}" != "yes" |
|
|
|
|
GTK_CONFIG="no" \ |
|
|
|
|
%endif |
|
|
|
|
WGET="no" \ |
|
|
|
|
./configure \ |
|
|
|
|
--prefix=%{l_prefix} \ |
|
|
|
|
--enable-batch \ |
|
|
|
|
--enable-multinet \ |
|
|
|
|
--enable-ocamlver=3 \ |
|
|
|
|
%if "%{with_gui}" == "yes" |
|
|
|
|
--enable-gui=newgui2 |
|
|
|
|
%else |
|
|
|
|
--disable-gui |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
# build main program and addons |
|
|
|
|
%{l_make} %{l_mflags} |
|
|
|
|
@ -105,11 +92,6 @@ PreReq: X11, ocaml-gtk, ocaml-gtk::with_gtk2 = yes
|
|
|
|
|
%{l_shtool} install -c -s -m 755 \ |
|
|
|
|
mlnet mld_hash get_range make_torrent subconv \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
|
|
|
%if "%{with_gui}" == "yes" |
|
|
|
|
%{l_shtool} install -c -s -m 755 \ |
|
|
|
|
mlgui mlguistarter mlnet+gui \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
|
|
|
%endif |
|
|
|
|
|
|
|
|
|
# install user wrapper script and configuration |
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
|
|
|
|