bonjour,

voila, je dÃsire construire un RPM depuis une arborescence dÃjà compilÃe. En l'occurence ce serait de prendre la derniÃre version de `Mozilla' (firebird) sous forme d'exÃcutables, d'y rajouter des `plugins' (macroMedia plazer, mouseGesture,..) et d'emballer tout ca dans un RPM pour pouvoir profiter d'une installation/maintenance plus aisÃe sur un parc de machine.

Pour ca, j'ai repris/modifier un fichier .spec

et je me bute au probleme suivant :

rpm -bb unsaved/download/firebird/MozillaFirebird_xft/MozillaFirebird.spec
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.44603
+ umask 022
+ cd /home/system/briner/RPM/BUILD
+ /bin/rm -rf /home/system/briner/unsaved/rpmbuild
+ /bin/cat
+ /bin/cat
+ /usr/bin/install -d -m0755 /home/system/briner/unsaved/rpmbuild/usr/bin /home/system/briner/unsaved/rpmbuild/usr/lib
+ cp -r /home/system/briner/unsaved/download/firebird/MozillaFirebird_xft/chrome /home/system/briner/unsaved/download/
.....(il y a pas mal de fichier mais ils semblent tous appartenir à Mozilla`firebird')..
+ /usr/bin/install -m0755 mozilla-firebird.sh /home/system/briner/unsaved/rpmbuild/usr/bin/mozilla-firebird
+ /usr/bin/install -d -m0755 /home/system/briner/unsaved/rpmbuild/usr/share/gnome/apps/Internet/
+ /usr/bin/install -m0644 mozilla-firebird.desktop /home/system/briner/unsaved/rpmbuild/usr/share/gnome/apps/Internet/mozilla-firebird.desktop


+ /usr/lib/rpm/brp-mandrake
Cleaning files...done
Compressing files...done
Stripping files...done
Relativisation of symlinks...done
Clean perl...done
Building libraries symlinks...done
Processing files: mozilla-firebird-0.7-1mdk
Finding Provides: /usr/lib/rpm/find-provides (<-- il passe monstre temps ici)
Finding Provides: /usr/lib/rpm/find-provides
Finding Requires: /usr/lib/rpm/find-requires /home/system/briner/unsaved/rpmbuild i586
Using BuildRoot: /home/system/briner/unsaved/rpmbuild to search libs
error: line 60: Dependency tokens must begin with alpha-numeric, '_' or '/': /usr/lib
/*


error: Failed to find Requires:
Provides: aa.so ANSI_X3.110.so APItest.so appletproxy.so applix.so ARMSCII-8.so array
fns.so array.so artnet.so art.so ASMO_449.so attrs.so audioop.so avi.so avs.so Base64.... (et lÃ, il y a une floppÃe de librairie, qui ne semblent pas etre rattachÃe à l'installation propre de mozilla.. )
...
..
puis des autres erreurs


j'ai l'impression que rpm cherche a trouver des dependances... mais comment lui dire que tout est deja dans l'arborescence?


une idÃe? naon...me trompÃ-je dans mon interprÃtation... alors peut-Ãtre deux idÃes?


merci d'avance

CÃdric BRINER

---------------    .spec  --------------
# %define dfi %(which desktop-file-install &>/dev/null; echo $?)

%define name  mozilla-firebird
#rname stand for real name
%define rname MozillaFirebird
%define version 0.7
%define release 1mdk
%define buildroot /home/system/briner/unsaved/rpmbuild

Name: %{name}
Summary:  Mozilla Firebird web browser
Version: %{version}
Release: %{release}
License: MPL/LGPL
Group: Applications/Internet
URL: http://www.mozilla.org/projects/firebird/

Packager: Cedric BRINER <[EMAIL PROTECTED]>

Source: http://ftp.mozilla.org/pub/firebird/releases/%{version}/%{rname}-%{version}-i686-linux-gtk2+xft.tar.gz


#Requires: XFree86, zlib, zip, perl #Requires: gtk+, libpng, libjpeg, ORBit #PreReq: #Requires: #Conflicts: #Obsoletes: %description Mozilla Firebird is an open-source web browser, designed for standards compliance, performance and portability.


%install %{__rm} -rf %{buildroot}

#####-------create the mozilla-firebird desktop icon and the bin wrapper
%{__cat} <<EOF > %{name}.desktop
[Desktop Entry]
Name=Firebird Web Browser
Comment=Lightweight Mozilla-based web browser
Exec=%{name}
Icon=mozilla-firebird.png
Terminal=false
Type=Application
EOF
%{__cat} << EOF >%{name}.sh
!/bin/sh
exec %{_libdir}/mozilla-firebird/MozillaFirebird $@
EOF
#####-------

%{__install} -d -m0755 %{buildroot}%{_bindir} \
%{buildroot}%{_libdir}
cp -r /home/system/briner/unsaved/download/firebird/MozillaFirebird_xft/* %{buildroot}%{_libdir}/


%{__install} -m0755 %{name}.sh %{buildroot}%{_bindir}/%{name}
%{__install} -d -m0755 %{buildroot}%{_datadir}/gnome/apps/Internet/
%{__install} -m0644 %{name}.desktop %{buildroot}%{_datadir}/gnome/apps/Internet/%{name}.desktop


%clean
#%{__rm} -rf %{buildroot}


%files %defattr(-,root,root,0755) %{_libdir}/*

--
+41(o)\ at 76/\ -o762 briner/ \infomaniak
577/ \ / \
. . . . . . . -=Cedric Briner=- . . .ch - dot /
46b rue Jacques-Dalphin,CH-1227 Geneva \



_______________________________________________ gull mailing list [EMAIL PROTECTED] http://lists.alphanet.ch/mailman/listinfo/gull

Répondre à