Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: adding a toplevel zsh.spec.in file



Chmouel Boudjnah (chmouel@xxxxxxxxxxxxxxxx) wrote:
> Be careful you'll have by the way need to fight with the
> RPM_BUILD_ROOT in the %install :
> 
> --- zsh-3.1.9/Src/zsh.mdd.chmou Tue Jul  4 10:06:32 2000
> +++ zsh-3.1.9/Src/zsh.mdd       Tue Jul  4 10:54:11 2000
> @@ -53,8 +53,10 @@
>             rm -f zshpaths.h.tmp; \
>             echo "\`zshpaths.h' is up to date." ; \
>         else \
> +           if [ ! -f .in_rpm_install ]; then \
>             mv -f zshpaths.h.tmp zshpaths.h; \
>             echo "Updated \`zshpaths.h'." ; \
> +           fi; \
>         fi
>  
>  bltinmods.list: modules.stamp modules-bltin xmods.conf mkbltnmlst.sh
> 
> and this in %install :
> 
> # Zsh hardcode the prefix in binary even at install.
> pushd Src/ && {
>     touch .in_rpm_install
>     %makeinstall
> } && popd

Are you sure?  I've built many rpms of zsh in the past, and if you're
talking about the problem I think you are, I got around them by using
DESTDIR:

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/info $RPM_BUILD_ROOT/bin $RPM_BUILD_ROOT/etc $RPM_B
UILD_ROOT/etc/zprofile.d $RPM_BUILD_ROOT/usr/bin $RPM_BUILD_ROOT/usr/lib $RPM_BU
ILD_ROOT/usr/doc/zsh-%{version}

make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install.modules
make DESTDIR=$RPM_BUILD_ROOT install.info



Messages sorted by: Reverse Date, Date, Thread, Author