HTCondor Project List Archives



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-devel] Condor rpm creation



I am in the process of creating an rpm for condor.  Its not a typical build the software was modified by another company.

 

Here are the two questions I have about creating the rpm.

 

1.)      How do I actually run the condor_configure  

2.)      How do I do the make as the user condor and actually point to their source code in the CoreLib library.

 

Thanks

Allen

 

So here are the instructions I was given:

 

1)      cp //iots2/working/admin/rnd_software/Cluster /dist/condor-7.4.1-linux-x86_64-rhel5-dynamic.tar.gz /opt/condor

2)      cd /opt/condor

3)      tar xvf condor-7.4.1-linux-x86_64-rhel5-dynamic.tar.gz

4)      cd condor-7.4.1

5)      ./condor_configure --install-dir=/opt/condor/condor-7.4.1/condor_root/ --type=submit,execute --local-dir=/opt/condor/condor_local --owner=condor --install

Application compilation (user: condor)

6)      make -C /mnt/condor/src/CoreLib rebuild

7)      make -C /mnt/condor -f MakefileNoMpi rebuild

 

 

Condor-7.4.1.spec

 

 

Name:  condor
Version: 7.4.1
Release: 1
Summary:   R & D condor
License:   ASL 2.0
Group: Applications/System
URL: http://www.cs.wisc.edu/condor/
Source0: /%(name)/condor-7.4.1-linux-x86_64-rhel5-dynamic.tar.gz
prefix:     /opt/condor
BuildRequires: bind-utils
Requires: gcc

%description
IOTS R & D Cluster Condor installation. 
Condor is a workload managment system for
compute intesive jobs.

%pre
getent group condor >/dev/null  || groupadd -r condor
getent passwd condor >/dev/null  ||
      useradd -r -g condor -s /sbin/nologin \
      -c "Owner of Condor Daemons"
exit 0

%prep
mkdir -p $RPM_BUILD_ROOT/mnt/condor
mkdir -p $RPM_BUILD_ROOT/opt/condor
mkdir -p $RPM_BUILD_ROOT/opt/condor/condor_local
mkdir -p $RPM_BUILD_ROOT/opt/condor/condor_local/log

%setup -q -n %(name)-%(version)

%build
#$RPM_BUILD_ROOT/opt/condor/
#cd /opt/condor/condor-7.4.1
#%condor_configure --install-dir=/opt/condor/%(name)/condor_root --type=submit,execute --local-dir=/opt/condor/condor_local --owner=condor -install

#make -C  /Cluster/src/CoreLib/ rebuild
#make -C /Cluster/condor -f MakefileNoMpi rebuild

%install
rm    -rf                 $RPM_BUILD_ROOT

%clean
rm -rf    $RPM_BUILD_ROOT

%post -n condor
/sbin/chkconfig --add condor
chmod -R 744 /opt/condor/


%preun -n condor
if [ $1 = 0 ]; then
   /sbin/service condor stop >/dev/null 2>&1 || :
   /sbin/chkconfig --del condor
fi
     

%files
%defattr(-,condor,condor)
/opt/condor/

%changelog

 


This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.