Changeset 1227


Ignore:
Timestamp:
14/04/09 18:34:02 (3 years ago)
Author:
Freddie Akeroyd
Message:

Change default rpm install to %{_libdir} refs #115.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nexus_spec.in

    r1059 r1227  
    2424# Prefix allows our package to be relocatable i.e. installable in  
    2525# other than just the /usr/local directory 
    26 Prefix: /usr/local 
     26#Prefix: /usr 
    2727# BuildRoot is the root for software installation 
    2828# this value will not usually be used, but something must 
     
    3737access routines, documentation, examples and a basic NeXus file browser. 
    3838 
     39#%package devel 
     40#Summary: Libraries and utilities for using NeXus format data files 
     41#Group: Development/Libraries 
     42# 
     43#%description devel 
     44#NeXus is an international standard for exchanging data files 
     45#among Neutron, Muon and X-ray science facilities. The underlying 
     46#data is stored using the HDF format from NCSA. This package provides 
     47 
    3948%prep 
    4049%setup -q 
     
    4554    ./configure --prefix="$RPM_INSTALL_PREFIX" $NEXUS_CONFIG_OPTIONS 
    4655else 
    47     ./configure --prefix=/usr/local $NEXUS_CONFIG_OPTIONS 
     56    ./configure --prefix=%{_prefix} --libdir=%{_libdir} $NEXUS_CONFIG_OPTIONS 
    4857fi 
    4958make 
     
    5867%doc README NEWS ChangeLog AUTHORS COPYING INSTALL 
    5968# %docdir /usr/local/doc 
    60 /usr/local/lib 
    61 /usr/local/bin 
    62 /usr/local/include 
    63 /usr/local/share 
     69%{_libdir}/* 
     70%{_bindir}/* 
     71%{_datadir}/* 
     72%{_includedir}/* 
     73#%files devel 
     74#%{_libdir}/*.a 
     75#%{_libdir}/*.so* 
    6476 
    6577%clean 
     
    7082    INSTALL_PREFIX=$RPM_INSTALL_PREFIX 
    7183else 
    72     INSTALL_PREFIX=/usr/local 
     84    INSTALL_PREFIX=%{_prefix} 
    7385fi 
    7486( cd $INSTALL_PREFIX/bin; for i in nxbuild; do \ 
Note: See TracChangeset for help on using the changeset viewer.