On 03/03/11 13:09, Andrea Musuruane wrote:
On Thu, Mar 3, 2011 at 1:19 PM, David
Timms<dtimms(a)iinet.net.au> wrote:
[...]
>
/home/davidt/rpmbuild/BUILDROOT/dvbcut-0.6.0-11.svn170.fc14.x86_64/usr/share/man/man1
> mkdir
> /home/davidt/rpmbuild/BUILDROOT/dvbcut-0.6.0-11.svn170.fc14.x86_64/usr/share/man
> mkdir
>
/home/davidt/rpmbuild/BUILDROOT/dvbcut-0.6.0-11.svn170.fc14.x86_64/usr/share/man/man1
> /bin/sh ./mkinstalldirs /usr/share/dvbcut/icons
> mkdir /usr/share/dvbcut
> mkdir: cannot create directory `/usr/share/dvbcut': Permission denied
> mkdir /usr/share/dvbcut/icons
> mkdir: cannot create directory `/usr/share/dvbcut/icons': No such file or
Makefile tries to create /usr/share/dvbcut directory and not
/home/davidt/rpmbuild/BUILDROOT/dvbcut-0.6.0-11.svn170.fc14.x86_64/usr/share/dvbcut/.
Hence the permission is denied. You must patch Makefile to handle
$DESTDIR.
I think the Makefile already supports DESTDIR; try using:
make install \
DESTDIR=%{buildroot} \
bindir=%{_bindir} \
helpdir=%{_datadir}/%{name} \
mandir=%{_mandir}
instead of:
make install \
bindir=%{buildroot}%{_bindir} \
helpdir=%{buildroot}%{_datadir}/%{name} \
mandir=%{buildroot}%{_mandir}
Paul.