Changeset 1764


Ignore:
Timestamp:
16/11/11 19:27:56 (6 months ago)
Author:
Freddie Akeroyd
Message:

Alternative fix for --prefix refs #303

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/build_rpm.in

    r1763 r1764  
    3434fi 
    3535# buildroot is actually where we install to 
    36 # need to make sure either there is no --prefix in $build_args or it is /usr 
    37 env NEXUS_CONFIG_OPTIONS="$build_args --prefix=/usr" rpmbuild -ba --buildroot $nxtop/installroot --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5" nexus.spec 
     36env NEXUS_CONFIG_OPTIONS="$build_args" rpmbuild -ba --buildroot $nxtop/installroot --define "_source_filedigest_algorithm md5" --define "_binary_filedigest_algorithm md5" nexus.spec 
  • trunk/nexus_spec.in

    r1753 r1764  
    8787%build 
    8888# RPM_INSTALL_PREFIX - where to install software 
     89# do --prefix last in case also present in passed config options 
    8990if ! test -z "$RPM_INSTALL_PREFIX"; then 
    90     ./configure --prefix="$RPM_INSTALL_PREFIX" $NEXUS_CONFIG_OPTIONS 
     91    ./configure $NEXUS_CONFIG_OPTIONS --prefix="$RPM_INSTALL_PREFIX" 
    9192else 
    92     ./configure --prefix=%{_prefix} --libdir=%{_libdir} $NEXUS_CONFIG_OPTIONS 
     93    ./configure $NEXUS_CONFIG_OPTIONS --prefix=%{_prefix} --libdir=%{_libdir} 
    9394fi 
    9495make 
Note: See TracChangeset for help on using the changeset viewer.