Bonjour
J'ai réalisé un petit rpm à partir d'un fichier tar.gz.
tout marche bien sauf que l'installation est faite sous / et non comme je voudrais sous /usr.
Il y a un petit quelque chose à modifier dans le fichier spec mais je ne troube pas après plusieurs essais.
Merci de votre aide
# Initial spec file created by autospec ver. 0.8 with rpm 3 compatibility
Summary: dragon
# The Summary: line should be expanded to about here -----^
#Summary(fr): (translated summary goes here)
Name: dragon
Version: 05pre1
Release: 1fc2
Group: Amusements/Games
Group(fr): Jeux
License: Free
Source: dragon0-05pre1.tar.gz
#NoSource: 0
BuildRoot: %{_tmppath}/%{name}-root
# Following are optional fields
#URL:
http://www.example.net/usr/dragon/
#Distribution: Red Hat Contrib-Net
#Patch: usr/dragon-%{version}.patch
#Prefix: /dragon
#BuildArch: noarch
#Requires:
#Obsoletes:
#BuildRequires:
%description
dragon version 0-05pre1
#%description -l fr
#(translated description goes here)
%prep
%setup -c /dragon
#%patch /usr/dragon
%install
%__cp -a . "${RPM_BUILD_ROOT-/}"
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root)
%dir /dragon/
%dir /dragon/sound/
/dragon/sound/sword.wav
/dragon/sound/music.ogg
/dragon/sound/monster.wav
%dir /dragon/sprites/
/dragon/sprites/2monster_left.bmp
/dragon/sprites/attack_right10.bmp
/dragon/sprites/0monster_back.bmp
/dragon/sprites/0monster_front.bmp
/dragon/sprites/0monster_left.bmp
/dragon/sprites/0monster_right.bmp
/dragon/sprites/1monster_back.bmp
/dragon/sprites/1monster_front.bmp
/dragon/sprites/1monster_left.bmp
/dragon/sprites/1monster_right.bmp
/dragon/sprites/2monster_back.bmp
/dragon/sprites/2monster_front.bmp
/dragon/sprites/2monster_right.bmp
/dragon/sprites/attack_right11.bmp
/dragon/sprites/attack_right12.bmp
/dragon/sprites/attack_right2.bmp
/dragon/sprites/attack_right20.bmp
/dragon/sprites/attack_right21.bmp
/dragon/sprites/attack_right22.bmp
/dragon/sprites/attack_up1.bmp
/dragon/sprites/attack_up10.bmp
/dragon/sprites/attack_up11.bmp
/dragon/sprites/attack_up12.bmp
/dragon/sprites/attack_up2.bmp
/dragon/sprites/attack_up20.bmp
/dragon/sprites/attack_up21.bmp
/dragon/sprites/attack_up22.bmp
/dragon/sprites/top_sand.bmp
/dragon/sprites/attack_down1.bmp
/dragon/sprites/attack_down10.bmp
/dragon/sprites/attack_down11.bmp
/dragon/sprites/attack_down12.bmp
/dragon/sprites/attack_down2.bmp
/dragon/sprites/attack_down20.bmp
/dragon/sprites/attack_down21.bmp
/dragon/sprites/attack_down22.bmp
/dragon/sprites/attack_left1.bmp
/dragon/sprites/attack_left10.bmp
/dragon/sprites/attack_left11.bmp
/dragon/sprites/attack_left12.bmp
/dragon/sprites/attack_left2.bmp
/dragon/sprites/attack_left20.bmp
/dragon/sprites/attack_left21.bmp
/dragon/sprites/attack_left22.bmp
/dragon/sprites/attack_right1.bmp
%dir /dragon/sprites/back/
/dragon/sprites/back/0.bmp
/dragon/sprites/back/1.bmp
/dragon/sprites/back/2.bmp
/dragon/sprites/back/3.bmp
/dragon/sprites/back/4.bmp
/dragon/sprites/back/5.bmp
/dragon/sprites/back/6.bmp
/dragon/sprites/back/7.bmp
/dragon/sprites/back/8.bmp
/dragon/sprites/back/9.bmp
/dragon/sprites/bottom_grass.bmp
/dragon/sprites/bottom_sand.bmp
%dir /dragon/sprites/front/
/dragon/sprites/front/0.bmp
/dragon/sprites/front/1.bmp
/dragon/sprites/front/2.bmp
/dragon/sprites/front/3.bmp
/dragon/sprites/front/4.bmp
/dragon/sprites/front/5.bmp
/dragon/sprites/front/6.bmp
/dragon/sprites/front/7.bmp
/dragon/sprites/front/8.bmp
/dragon/sprites/front/9.bmp
/dragon/sprites/gameover.png
/dragon/sprites/grass.bmp
%dir /dragon/sprites/left/
/dragon/sprites/left/0.bmp
/dragon/sprites/left/1.bmp
/dragon/sprites/left/2.bmp
/dragon/sprites/left/3.bmp
/dragon/sprites/left/4.bmp
/dragon/sprites/left/5.bmp
/dragon/sprites/left/6.bmp
/dragon/sprites/left/7.bmp
/dragon/sprites/left/8.bmp
/dragon/sprites/left/9.bmp
/dragon/sprites/left_grass.bmp
/dragon/sprites/left_sand.bmp
/dragon/sprites/palm.bmp
%dir /dragon/sprites/right/
/dragon/sprites/right/0.bmp
/dragon/sprites/right/1.bmp
/dragon/sprites/right/2.bmp
/dragon/sprites/right/3.bmp
/dragon/sprites/right/4.bmp
/dragon/sprites/right/5.bmp
/dragon/sprites/right/6.bmp
/dragon/sprites/right/7.bmp
/dragon/sprites/right/8.bmp
/dragon/sprites/right/9.bmp
/dragon/sprites/right_grass.bmp
/dragon/sprites/right_sand.bmp
/dragon/sprites/sand.bmp
/dragon/sprites/splash.jpg
/dragon/sprites/story.jpg
/dragon/sprites/top_grass.bmp
/dragon/sprites/black.bmp
/dragon/sprites/tree.bmp
/dragon/sprites/healer_front.bmp
/dragon/sprites/sign.bmp
/dragon/sprites/water.bmp
/dragon/sprites/corner_cliff.bmp
/dragon/sprites/left_cliff.bmp
/dragon/sprites/left_cliff_finish.bmp
/dragon/sprites/top_cliff.bmp
/dragon/sprites/house_middle.bmp
/dragon/sprites/house_right.bmp
/dragon/sprites/house_left.bmp
/dragon/sprites/corner_cliff2.bmp
/dragon/sprites/well.bmp
%readme /dragon/README
/dragon/font.png
/dragon/levels
/dragon/monsters
/dragon/dragon
/dragon/persons
/dragon/dialog
%changelog
* Tue Oct 26 2004 root <
root@localhost.localdomain>
- Initial spec file created by autospec ver. 0.8 with rpm 3 compatibility
A+