Is there an easier way to do this?
Paul Howarth
paul at city-fan.org
Tue Feb 21 10:07:44 UTC 2006
Paul wrote:
> Hi,
>
> I'm compiling up anjuta-gdl which installs a pile of stuff
> into /usr/share/gdl (and it's quite a lot).
>
> Currently, I have in my specfile
>
> %install
> rm -rf ${RPM_BUILD_ROOT}
> %makeinstall
> %find_lang gdl
> find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ";"
> find ${RPM_BUILD_ROOT} -type f -name "*.a" -exec rm -f {} ";"
>
> The make part works fine, but the makeinstall fails, but I'm not clear
> as to why. The first item it tries to install
>
> /usr/bin/install -c -m
> 644 ./layout.glade /var/tmp/anjuta-gdl-0.6.0-2-root-paul /usr/share/gdl/glade/layout.glade
>
> goes in fine
>
> However, when it comes to installing images into /usr/share/gdl/images
> it fails.
>
> Any ideas?
Try instead of %makeinstall:
make DESTDIR=${RPM_BUILD_ROOT} install
Some packages require one or the other. In cases where both appear to
work, the latter is preferred anyway.
Paul.
More information about the fedora-extras-list
mailing list