Sun 30 Apr 2006 09:14:14 AM UTC, original submission:
Salut,
Hi,
J'utilise le script RPM suivant pour créer le paquetage de la dernière version de mlDonkey.
I use the following rpm script to create the last version package of mldonkey :
#===============================================================================
# spec file for package mldonkey-2.7.5
# run 'rpmbuild -ba -vv mldonkey.spec' to create source & binary rpms
# Note that this is NOT a relocatable package
#===============================================================================
# section entête
# définition des constantes
%define name mldonkey
%define version 2.7.5
%define release lsyl
%define prefix /usr
#-------------------------------------------------------------------------------
# paquetage principal : mldonkey
# champs de la base de données rpm
Name: %{name}
Version: %{version}
Release: %{release}
Group: System/Servers
Packager: Paul Brissaud <paul.brissaud@infonie.fr>
URL: http://www.mldonkey.net/
Vendor: World Wide Web
Distribution: mandrasyl
License: GPL
Summary: Door to the 'donkey' network
Summary(fr): Accès au réseau 'donkey'
# éléments pour la construction du paquetage
# fichiers sources
Source0: %{name}-%{version}.tar.bz2
# pré-requis logiciels
Requires: libgd2 >= 2.0.33
Requires: libdb2 >= 2.4.14
Requires: libbzip2_1 >= 1.0.3
Requires: librsvg2_2 >= 2.9.5
Requires: zlib1 >= 1.2.3
BuildRequires: libgd2-devel >= 2.0.33
BuildRequires: libgd2-static-devel >= 2.0.33
BuildRequires: autoconf2.5 >= 2.59
BuildRequires: automake1.8 >= 1.9.4
BuildRequires: gcc-c++ >= 4.0.1
BuildRequires: perl >= 5.8.7
BuildRequires: m4 >= 1.4.3
BuildRequires: wget >= 1.10
BuildRequires: ocaml >= 3.08.3
BuildRequires: camlp4 >= 3.08.3
BuildRequires: lablgtk >= 2.6.0
BuildRequires: libbzip2_1-devel >= 1.0.3
BuildRequires: librsvg2_2-devel >= 2.9.5
BuildRequires: zlib1-devel >= 1.2.3
BuildRequires: libgtk+2.0_0-devel >= 2.8.3
# Architecture
BuildArchitectures: i586
# espace de travail
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
# description littérale
%description
MLdonkey (mlnet) is a generic peer-to-peer file-sharing client, written in Objective-Caml, that can access the eDonkey2000, Overnet, Gnutella, BitTorrent and Soulseek networks. Gnutella2, Direct-Connect and Open-Napster networks also have alpha support.
MLdonkey can be controlled via telnet (telnet 127.0.0.1 4000) and WEB (http://127.0.0.1:4080/) interfaces. It can also be controlled using various external GUI interfaces (mlgui).
#-------------------------------------------------------------------------------
# Paquetage secondaire : mldonkey-gui
%package gui
# champs de la base de données rpm
Group: Networking/Other
Summary: Graphical frontend for mldonkey based on GTK
# pré-requis logiciels
Requires: %{name} = %{version}
Requires: libgtk+2.0_0 >= 2.8.3
# description littérale
%description gui
The GTK interface for mldonkey provides a convenient way of managing all mldonkey operations. It gives details about conected servers, downloaded files, friends and lets one search for files in a pleasing way.
#-------------------------------------------------------------------------------
# Paquetage secondaire : mldonkey-tools
%package tools
# champs de la base de données rpm
Group: Graphical desktop/KDE
Summary: Tools for mldonkey
# pré-requis logiciels
Requires: %{name} = %{version}
Requires: kdebase >= 3.4.2
Requires: perl-libwww-perl >= 5.803
# description littérale
%description tools
ed2k_submit gives you an easy way to add a ed2k-link
(like ed2k://|file|filename.exe|21352658|72b0b287cab7d875ccc1d89ebe910b9g|)
with a single click to your mldonkey download queue.
You need to edit /etc/sysconfig/mldonkey_submit
ed2k_mozilla is a protocol handler for Mozilla and Firefox (see http://www.mozilla.org) that forwards some link types to a running MLdonkey (see http://www.mldonkey.net) or eMule (see http://www.emule-project.net) client. Supported protocols are ed2k:, magnet: and sig2dat:. For eMule, only ed2k: is supported, of course.
#===============================================================================
# section préparatoire
%prep
rm -rf ${RPM_BUILD_ROOT}
%setup -q
#===============================================================================
# section construction
%build
export WANT_AUTOCONF_2_5=1
%make maintainerclean
%configure2_5x --prefix=%prefix --enable-gui=newgui2 CXX=CXX+"-msse2" --enable-gnutella --enable-gnutella2 --enable-fasttrack --enable-bittorrent --enable-filetp --enable-donkey
%make all
%make utils
#===============================================================================
# section installation
%install
rm -rf $RPM_BUILD_ROOT
# core
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 mlnet %{buildroot}%{_bindir}/mlnet
install -m 755 copysources %{buildroot}%{_bindir}/copysources
install -m 755 dp500 %{buildroot}%{_bindir}/dp500
install -m 755 get_range %{buildroot}%{_bindir}/get_range
install -m 755 make_torrent %{buildroot}%{_bindir}/make_torrent
install -m 755 mld_hash %{buildroot}%{_bindir}/mld_hash
install -m 755 mlim %{buildroot}%{_bindir}/mlim
install -m 755 subconv %{buildroot}%{_bindir}/subconv
install -m 755 distrib/mldonkey_command %{buildroot}%{_bindir}/mldonkey_command
install -m 755 distrib/kill_mldonkey %{buildroot}%{_bindir}/kill_mldonkey
# gui
install -m 755 mlgui %{buildroot}%{_bindir}/mlgui
install -m 755 mlnet+gui %{buildroot}%{_bindir}/mlnet+gui
install -m 755 mlguistarter %{buildroot}%{_bindir}/mlguistarter
install -m 755 mlchat %{buildroot}%{_bindir}/mlchat
install -m 755 distrib/mldonkey_previewer %{buildroot}%{_bindir}/mldonkey_previewer
# tools
install -d -m 755 %{buildroot}%{_datadir}/ed2k_mozilla
install -m 755 distrib/ed2k_mozilla/mldonkey_protocol_handler-1.7.xpi %{buildroot}%{_datadir}/ed2k_mozilla/mldonkey_protocol_handler-1.7.xpi
install -m 755 distrib/ed2k_submit/mldonkey_submit %{buildroot}%{_bindir}/mldonkey_submit
install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 distrib/ed2k_submit/mldonkey %{buildroot}%{_sysconfdir}/sysconfig/mldonkey_submit
install -d -m 755 %{buildroot}%{_datadir}/services/
install -m 644 distrib/ed2k_submit/ed2k.protocol %{buildroot}%{_datadir}/services/ed2k.protocol
%clean
rm -rf $RPM_BUILD_ROOT
#===============================================================================
# section fichiers
#-------------------------------------------------------------------------------
# paquetage principal : mldonkey
%files
%defattr(-,root,root)
%doc Copying.txt docs/* distrib/ChangeLog distrib/ed2k_links.txt distrib/FAQ.html
%{_bindir}/checkMLDonkey.sh
%{_bindir}/mlnet
%{_bindir}/copysources
%{_bindir}/dp500
%{_bindir}/get_range
%{_bindir}/make_torrent
%{_bindir}/mld_hash
%{_bindir}/mlim
%{_bindir}/subconv
%{_bindir}/mldonkey_command
%{_bindir}/kill_mldonkey
#-------------------------------------------------------------------------------
# Paquetage secondaire : mldonkey-gui
%files gui
%defattr(-,root,root)
%doc Copying.txt
%{_bindir}/mlchat
%{_bindir}/mlgui
%{_bindir}/mlnet+gui
%{_bindir}/mlguistarter
%{_bindir}/mldonkey_previewer
#-------------------------------------------------------------------------------
# Paquetage secondaire : mldonkey-tools
%files tools
%defattr(-,root,root)
%doc Copying.txt distrib/ed2k_submit/README.MLdonkeySubmit
%config(noreplace) %{_sysconfdir}/sysconfig/mldonkey_submit
%{_bindir}/mldonkey_submit
%{_datadir}/services/ed2k.protocol
%{_datadir}/ed2k_mozilla/mldonkey_protocol_handler-1.7.xpi
#===============================================================================
# section modifications
%changelog
- Fri Apr 14 2006 Paul Brissaud <paul.brissaud@infonie.fr> 2.7.5-lsyl
- upgrade
- make utils is temporary out of work
- Wed Mar 08 2006 Paul Brissaud <paul.brissaud@infonie.fr> 2.7.4-lsyl
- upgrade
- Sat Feb 25 2006 Paul Brissaud <paul.brissaud@infonie.fr> 2.7.3-lsyl
- first attempt at a spec file
#===============================================================================
# end of file
La première cible de la commande make fonctionne parfaitement
The first target of the make command is fully operationnal
La seconde cible ('make utils') se plante à l'édition de lien avec le message suivant :
module CommonUserDb inconnu pour CommonUser.cmx
The second target ('make utils') crashes at the linking step with the following comment :
unknown module CommonUserDb for CommonUser.cmx
Merci pour votre écoute et votre compréhension
Thanks for your kindly understanding
Paul Brissaud
|