~ubuntu-branches/ubuntu/trusty/slurm-llnl/trusty

« back to all changes in this revision

Viewing changes to slurm.spec

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2010-09-03 18:03:29 UTC
  • mfrom: (3.3.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100903180329-t0t8mtvk2eoctoso
Tags: 2.1.14-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: slurm.spec 19976 2010-04-07 15:55:58Z jette $
 
1
# $Id: slurm.spec 20919 2010-08-06 21:13:59Z da $
2
2
#
3
3
# Note that this package is not relocatable
4
4
 
83
83
%endif
84
84
 
85
85
Name:    slurm
86
 
Version: 2.1.9
 
86
Version: 2.1.14
87
87
Release: 1%{?dist}
88
88
 
89
89
Summary: Simple Linux Utility for Resource Management
90
90
 
91
91
License: GPL
92
92
Group: System Environment/Base
93
 
Source: slurm-2.1.9.tar.bz2
 
93
Source: slurm-2.1.14.tar.bz2
94
94
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
95
95
URL: https://computing.llnl.gov/linux/slurm/
96
96
 
352
352
#############################################################################
353
353
 
354
354
%prep
355
 
%setup -n slurm-2.1.9
 
355
%setup -n slurm-2.1.14
356
356
 
357
357
%build
358
358
%configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \
434
434
mkdir -p ${RPM_BUILD_ROOT}/etc/ld.so.conf.d
435
435
echo "%{_libdir}/slurm" > ${RPM_BUILD_ROOT}/etc/ld.so.conf.d/slurm.conf
436
436
chmod 644 ${RPM_BUILD_ROOT}/etc/ld.so.conf.d/slurm.conf
 
437
 
 
438
LIST=./bluegene.files
 
439
touch $LIST
 
440
test -f $RPM_BUILD_ROOT/%{_libdir}/slurm/libsched_if.so &&
 
441
   echo %{_libdir}/slurm/libsched_if.so >> $LIST
 
442
test -f $RPM_BUILD_ROOT/%{_libdir}/slurm/libsched_if64.so &&
 
443
   echo %{_libdir}/slurm/libsched_if64.so >> $LIST
 
444
 
437
445
%endif
438
446
 
439
447
LIST=./aix.files
552
560
#############################################################################
553
561
 
554
562
%if %{slurm_with bluegene}
555
 
%files bluegene
 
563
%files -f bluegene.files bluegene
556
564
%defattr(-,root,root)
557
565
%{_libdir}/slurm/select_bluegene.so
558
 
%{_libdir}/slurm/libsched_if64.so
559
566
%dir /etc/ld.so.conf.d
560
567
/etc/ld.so.conf.d/slurm.conf
561
568
%{_mandir}/man5/bluegene.*
723
730
    echo "Build a new one using http://www.llnl.gov/linux/slurm/configurator.html"
724
731
fi
725
732
 
 
733
%if %{slurm_with bluegene}
 
734
%post bluegene
 
735
if [ -x /sbin/ldconfig ]; then
 
736
    /sbin/ldconfig %{_libdir}/slurm
 
737
fi
 
738
if [ ! -f %{_sysconfdir}/bluegene.conf ]; then
 
739
    echo "You need to build and install a bluegene.conf file"
 
740
    echo "Edit %{_sysconfdir}/bluegene.conf.example and copy it to bluegene.conf"
 
741
fi
 
742
%endif
726
743
 
727
744
%preun
728
745
if [ "$1" = 0 ]; then