Hi,
I try to do a RPM from a nice little project (cdplay).
here the spec file :
=========================================================
%define name cdplay
%define
version 0.8
%define release 0mdk
Summary: command line CD player
Name: %{name}
Version: %{version}
Release:
%{release}
Group: Sound
License: GPL
Source: %{name}-%{version}.tar.bz2
URL: http://www.x-paste.de/projects/index.php?cont=cdplay
BuildRoot: %_tmppath/%name-buildroot
Prefix: %{_prefix}
BuildRequires: gcc
%description
Nice command line CD Player
%prep
rm -rf $RPM_BUILD_ROOT
%setup -q
%build
%make
%install
install cdplay %{_bindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-,root,root)
%doc COPYING README
%{_bindir}/cdplay
%changelog
* Tue Jun 25 2002 Florent BERANGER
<[EMAIL PROTECTED]> 0.8-0mdk
- initial Mandrake package
=========================================================
Here the output at command line :
bash-2.05a$ rpm -ba cdplay-0.8.spec
Executing(%prep): /bin/sh -e
/home/cosmicflo/rpm/tmp/rpm-tmp.3541
+ umask 022
+ cd /home/cosmicflo/rpm/BUILD
+ rm -rf /home/cosmicflo/rpm/tmp/cdplay-buildroot
+ cd /home/cosmicflo/rpm/BUILD
+ rm -rf cdplay-0.8
+ /usr/bin/bzip2 -dc
/home/cosmicflo/rpm/SOURCES/cdplay-0.8.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd cdplay-0.8
+ exit 0
Executing(%build): /bin/sh -e
/home/cosmicflo/rpm/tmp/rpm-tmp.3541
+ umask 022
+ cd /home/cosmicflo/rpm/BUILD
+ cd cdplay-0.8
+ make
gcc -O3 -W -Wall -g -c -o cdplay.o cdplay.c
gcc -O3 -W -Wall -g -c -o utils.o utils.c
utils.c: In function `strip_spaces':
utils.c:29: warning: implicit declaration of function `strlen'
gcc -O3 cdplay.o utils.o -o cdplay
+ exit 0
Executing(%install): /bin/sh -e
/home/cosmicflo/rpm/tmp/rpm-tmp.62416
+ umask 022
+ cd /home/cosmicflo/rpm/BUILD
+ cd cdplay-0.8
+ install cdplay /usr/bin
install: Ne peut cr�er un fichier de type r�gulier
`/usr/bin/cdplay': Permission non accord�e
error: Bad exit status from
/home/cosmicflo/rpm/tmp/rpm-tmp.62416 (%install)
RPM build errors:
Bad exit status from
/home/cosmicflo/rpm/tmp/rpm-tmp.62416 (%install)
bash-2.05a$
What's wrong (it seem to be at install) ?
Thanks
--------------
Profitez de l'offre exceptionnelle Tiscali !
"Internet Gratuit le Jour"
Cliquez ici, http://register.tiscali.fr/forfaits_ls/
Offre soumise � conditions.