+- On Friday (2/19/1999 12:39) Mate Wierdl <[EMAIL PROTECTED]> Wrote-
   | Not really, because what if I chose dirs during config which are not under
   | prefix?  Say, I have the binaries in $(prefix)/bin, but config files in
   | /etc/nmh.  Now, I would like to install all the compiled stuff under
   | /tmp/nmh-root, say?
   | -- 
   | ---
   | Mate Wierdl | Dept. of Math. Sciences | University of Memphis  
   | 
   
   
      %build
        ./configure --prefix=/usr/local --sysconfdir="\${prefix}/share/nmh"
        make
   
      %install
        make prefix=${RPM_BUILD_ROOT}/usr/local install
   
   
   If you wanted sysconfdir to be somewhere else, you just set it:
   
      %install
        make prefix=${RPM_BUILD_ROOT}/usr/local \
          sysconfdir=${RPM_BUILD_ROOT}/etc/nmh install
   
   I don't believe that there are any permutations of chasing and
   installing in differnt places that the GNU coding standards won't
   allow.  nmh does a fine job of adhering to them too.
   

My point is that DESTDIR just makes life easier.  Presently, the
RedHat Linux spec file would look 

make    --prefix=${RPM_BUILD_ROOT}/usr \
        --exec-prefix=${RPM_BUILD_ROOT}/usr \
        --bindir=${RPM_BUILD_ROOT}/usr/bin \
        --libdir=${RPM_BUILD_ROOT}/usr/lib/nmh \
        --sysconfdir=${RPM_BUILD_ROOT}/etc/nmh \
        --with-editor=${RPM_BUILD_ROOT}/bin/vi \
        install

; with DESTDIR support

DESTDIR=$RPM_BUILD_ROOT make install

Mate
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  

Reply via email to