~ubuntu-branches/ubuntu/quantal/slurm-llnl/quantal

« back to all changes in this revision

Viewing changes to slurm.spec

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2011-04-08 11:21:17 UTC
  • mfrom: (3.3.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110408112117-nfnyq9dtm55hqoaw
Tags: 2.2.4-1
* New upstream releases 
* Cleaning spare file and directories, not belonging to the sources
  generated by the building process and not removed by distclean.
  Added debian/clean with spare files and rm -rf inside debian/rules
  for directories.
* Added new packages libslurm-perl, libslurmdb-perl, slurm-llnl-torque
  (Closes: #575822) thanks to Julien Blache

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: slurm.spec 20919 2010-08-06 21:13:59Z da $
 
1
# $Id: slurm.spec 22705 2011-03-08 18:43:27Z jette $
2
2
#
3
3
# Note that this package is not relocatable
4
4
 
16
16
# --with lua         %_with_lua         1    build SLURM lua bindings (proctrack only for now)
17
17
# --without munge    %_without_munge    1    don't build auth-munge RPM
18
18
# --with mysql       %_with_mysql       1    require mysql support
19
 
# --without openssl  %_without_openssl  1    don't require openssl RPM to be installed
 
19
# --with openssl     %_with_openssl     1    require openssl RPM to be installed
20
20
# --without pam      %_without_pam      1    don't require pam-devel RPM to be installed
21
21
# --with postgres    %_with_postgres    1    require postgresql support
22
22
# --without readline %_without_readline 1    don't require readline-devel RPM to be installed
49
49
%slurm_without_opt mysql
50
50
%slurm_without_opt postgres
51
51
%slurm_without_opt blcr
 
52
%slurm_without_opt openssl
52
53
 
53
54
# Build with munge by default on all platforms (disable using --without munge)
54
55
%slurm_with_opt munge
73
74
%if %{?chaos}0
74
75
%slurm_with_opt mysql
75
76
%slurm_with_opt lua
 
77
%slurm_with_opt partial_attach
76
78
%else
77
79
%slurm_without_opt sgijob
78
80
%slurm_without_opt lua
 
81
%slurm_without_opt partial-attach
79
82
%endif
80
83
 
81
84
%if %{?chaos}0 && 0%{?chaos} < 5
83
86
%endif
84
87
 
85
88
Name:    slurm
86
 
Version: 2.1.16
 
89
Version: 2.2.4
87
90
Release: 1%{?dist}
88
91
 
89
92
Summary: Simple Linux Utility for Resource Management
90
93
 
91
94
License: GPL
92
95
Group: System Environment/Base
93
 
Source: slurm-2.1.16.tar.bz2
 
96
Source: slurm-2.2.4.tar.bz2
94
97
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
95
98
URL: https://computing.llnl.gov/linux/slurm/
96
99
 
262
265
%package slurmdbd
263
266
Summary: SLURM database daemon
264
267
Group: System Environment/Base
265
 
Requires: slurm-plugins
 
268
Requires: slurm-plugins slurm-sql
266
269
%description slurmdbd
267
270
SLURM database daemon
268
271
 
 
272
%package sql
 
273
Summary: SLURM SQL support
 
274
Group: System Environment/Base
 
275
%description sql
 
276
SLURM sql support
 
277
 
269
278
%package plugins
270
279
Summary: SLURM plugins (loadable shared objects)
271
280
Group: System Environment/Base
279
288
%description torque
280
289
Torque wrapper scripts used for helping migrate from Torque/PBS to SLURM.
281
290
 
 
291
%package sjobexit
 
292
Summary: SLURM job exit code management tools.
 
293
Group: Development/System
 
294
Requires: slurm-perlapi
 
295
%description sjobexit
 
296
SLURM job exit code management tools.
 
297
 
282
298
%package slurmdb-direct
283
299
Summary: Wrappers to write directly to the slurmdb.
284
300
Group: Development/System
316
332
BuildRequires: lua-devel
317
333
%description lua
318
334
SLURM lua bindings
319
 
Includes the SLURM proctrack/lua plugin
 
335
Includes the SLURM proctrack/lua and job_submit/lua plugin
320
336
%endif
321
337
 
322
338
%package sjstat
352
368
#############################################################################
353
369
 
354
370
%prep
355
 
%setup -n slurm-2.1.16
 
371
%setup -n slurm-2.2.4
356
372
 
357
373
%build
358
374
%configure --program-prefix=%{?_program_prefix:%{_program_prefix}} \
359
375
        %{?slurm_with_cray_xt:--enable-cray-xt} \
360
376
        %{?slurm_with_debug:--enable-debug} \
 
377
        %{?slurm_with_partial_attach:--enable-partial-attach} \
361
378
        %{?slurm_with_sun_const:--enable-sun-const} \
362
379
        %{?with_db2_dir} \
363
380
        %{?with_pam_dir}        \
389
406
      install -D -m755 etc/init.d.slurmdbd $RPM_BUILD_ROOT/etc/init.d/slurmdbd
390
407
   fi
391
408
%endif
 
409
install -D -m644 etc/cgroup.conf.example ${RPM_BUILD_ROOT}%{_sysconfdir}/cgroup.conf.example
 
410
install -D -m755 etc/cgroup.release_agent ${RPM_BUILD_ROOT}%{_sysconfdir}/cgroup.release_agent
392
411
install -D -m644 etc/slurm.conf.example ${RPM_BUILD_ROOT}%{_sysconfdir}/slurm.conf.example
393
412
install -D -m644 etc/slurmdbd.conf.example ${RPM_BUILD_ROOT}%{_sysconfdir}/slurmdbd.conf.example
394
413
install -D -m755 etc/slurm.epilog.clean ${RPM_BUILD_ROOT}%{_sysconfdir}/slurm.epilog.clean
395
414
install -D -m755 contribs/sjstat ${RPM_BUILD_ROOT}%{_bindir}/sjstat
396
415
 
397
416
# Delete unpackaged files:
 
417
rm -f $RPM_BUILD_ROOT/%{_libdir}/libpmi.a
 
418
rm -f $RPM_BUILD_ROOT/%{_libdir}/libslurm.a
 
419
rm -f $RPM_BUILD_ROOT/%{_libdir}/libslurmdb.a
398
420
rm -f $RPM_BUILD_ROOT/%{_libdir}/slurm/*.{a,la}
399
421
rm -f $RPM_BUILD_ROOT/%{_libdir}/security/*.{a,la}
400
422
%if %{?with_pam_dir}0
411
433
%endif
412
434
rm -f $RPM_BUILD_ROOT/%{_perldir}/auto/Slurm/.packlist
413
435
rm -f $RPM_BUILD_ROOT/%{_perlarchlibdir}/perllocal.pod
 
436
rm -f $RPM_BUILD_ROOT/%{_perldir}/perllocal.pod
 
437
rm -f $RPM_BUILD_ROOT/%{_perldir}/auto/Slurmdb/.packlist
414
438
 
415
439
%if ! %{slurm_with blcr}
416
440
# remove these if they exist
417
441
rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/srun_cr* ${RPM_BUILD_ROOT}%{_bindir}/srun_cr ${RPM_BUILD_ROOT}%{_libexecdir}/slurm/cr_*
418
442
%endif
419
443
 
 
444
# Build man pages that are generated directly by the tools
 
445
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/sjobexitmod.1
 
446
${RPM_BUILD_ROOT}%{_bindir}/sjobexitmod --roff > $RPM_BUILD_ROOT/%{_mandir}/man1/sjobexitmod.1
420
447
 
421
448
# Build conditional file list for main package
422
449
LIST=./slurm.files
456
483
test -f $RPM_BUILD_ROOT/etc/init.d/slurm                       &&
457
484
  echo /etc/init.d/slurmdbd                            >> $LIST
458
485
 
459
 
LIST=./plugins.files
 
486
LIST=./sql.files
460
487
touch $LIST
461
488
test -f $RPM_BUILD_ROOT/%{_libdir}/slurm/accounting_storage_mysql.so &&
462
489
   echo %{_libdir}/slurm/accounting_storage_mysql.so >> $LIST
463
490
test -f $RPM_BUILD_ROOT/%{_libdir}/slurm/accounting_storage_pgsql.so &&
464
491
   echo %{_libdir}/slurm/accounting_storage_pgsql.so >> $LIST
465
 
test -f $RPM_BUILD_ROOT/%{_libdir}/slurm/crypto_openssl.so           &&
466
 
   echo %{_libdir}/slurm/crypto_openssl.so           >> $LIST
467
492
test -f $RPM_BUILD_ROOT/%{_libdir}/slurm/jobcomp_mysql.so            &&
468
493
   echo %{_libdir}/slurm/jobcomp_mysql.so            >> $LIST
469
494
test -f $RPM_BUILD_ROOT/%{_libdir}/slurm/jobcomp_pgsql.so            &&
470
495
   echo %{_libdir}/slurm/jobcomp_pgsql.so            >> $LIST
 
496
 
 
497
LIST=./plugins.files
 
498
test -f $RPM_BUILD_ROOT/%{_libdir}/slurm/crypto_openssl.so           &&
 
499
   echo %{_libdir}/slurm/crypto_openssl.so           >> $LIST
471
500
test -f $RPM_BUILD_ROOT/%{_libdir}/slurm/task_affinity.so            &&
472
501
   echo %{_libdir}/slurm/task_affinity.so            >> $LIST
473
502
 
509
538
%{_libdir}/*.so*
510
539
%{_libdir}/slurm/src/*
511
540
%{_mandir}/man1/*
 
541
%{_mandir}/man5/cgroup.*
 
542
%{_mandir}/man5/gres.*
512
543
%{_mandir}/man5/slurm.*
513
544
%{_mandir}/man5/topology.*
514
545
%{_mandir}/man5/wiki.*
518
549
%{_mandir}/man8/spank*
519
550
%dir %{_sysconfdir}
520
551
%dir %{_libdir}/slurm/src
 
552
%config %{_sysconfdir}/cgroup.conf.example
 
553
%config %{_sysconfdir}/cgroup.release_agent
521
554
%config %{_sysconfdir}/slurm.conf.example
522
555
%config %{_sysconfdir}/slurm.epilog.clean
 
556
%exclude %{_mandir}/man1/sjobexit*
523
557
%if %{slurm_with blcr}
524
558
%exclude %{_mandir}/man1/srun_cr*
525
559
%exclude %{_bindir}/srun_cr
530
564
%defattr(-,root,root)
531
565
%dir %attr(0755,root,root) %{_prefix}/include/slurm
532
566
%{_prefix}/include/slurm/*
533
 
%{_libdir}/libpmi.a
534
567
%{_libdir}/libpmi.la
535
 
%{_libdir}/libslurm.a
536
568
%{_libdir}/libslurm.la
 
569
%{_libdir}/libslurmdb.la
537
570
%{_mandir}/man3/slurm_*
 
571
#%{_mandir}/man3/slurmdb_*
538
572
#############################################################################
539
573
 
540
574
%if %{slurm_with auth_none}
562
596
%if %{slurm_with bluegene}
563
597
%files -f bluegene.files bluegene
564
598
%defattr(-,root,root)
565
 
%{_libdir}/slurm/select_bluegene.so
566
599
%dir /etc/ld.so.conf.d
567
600
/etc/ld.so.conf.d/slurm.conf
568
601
%{_mandir}/man5/bluegene.*
569
602
%{_sbindir}/slurm_epilog
570
603
%{_sbindir}/slurm_prolog
571
604
%{_sbindir}/sfree
 
605
%{_libdir}/slurm/job_submit_cnode.so
572
606
%config %{_sysconfdir}/bluegene.conf.example
573
607
%endif
574
608
#############################################################################
576
610
%files perlapi
577
611
%defattr(-,root,root)
578
612
%{_perldir}/Slurm.pm
 
613
%{_perldir}/Slurm/Bitstr.pm
 
614
%{_perldir}/Slurm/Constant.pm
 
615
%{_perldir}/Slurm/Hostlist.pm
 
616
%{_perldir}/Slurm/Stepctx.pm
579
617
%{_perldir}/auto/Slurm/Slurm.so
580
618
%{_perldir}/auto/Slurm/Slurm.bs
581
 
%{_perldir}/auto/Slurm/autosplit.ix
582
 
%{_perlman3dir}/Slurm.*
 
619
%{_perldir}/Slurmdb.pm
 
620
%{_perldir}/auto/Slurmdb/Slurmdb.so
 
621
%{_perldir}/auto/Slurmdb/Slurmdb.bs
 
622
%{_perldir}/auto/Slurmdb/autosplit.ix
 
623
%{_perlman3dir}/Slurm*
583
624
 
584
625
#############################################################################
585
626
 
599
640
%config %{_sysconfdir}/slurmdbd.conf.example
600
641
#############################################################################
601
642
 
 
643
%files -f sql.files sql
 
644
%defattr(-,root,root)
 
645
%dir %{_libdir}/slurm
 
646
#############################################################################
 
647
 
602
648
%files -f plugins.files plugins
603
649
%defattr(-,root,root)
604
650
%dir %{_libdir}/slurm
608
654
%{_libdir}/slurm/checkpoint_none.so
609
655
%{_libdir}/slurm/checkpoint_ompi.so
610
656
%{_libdir}/slurm/checkpoint_xlch.so
 
657
%{_libdir}/slurm/gres_gpu.so
 
658
%{_libdir}/slurm/gres_nic.so
611
659
%{_libdir}/slurm/jobacct_gather_aix.so
612
660
%{_libdir}/slurm/jobacct_gather_linux.so
613
661
%{_libdir}/slurm/jobacct_gather_none.so
614
662
%{_libdir}/slurm/jobcomp_none.so
615
663
%{_libdir}/slurm/jobcomp_filetxt.so
616
664
%{_libdir}/slurm/jobcomp_script.so
 
665
%{_libdir}/slurm/job_submit_defaults.so
 
666
%{_libdir}/slurm/job_submit_logging.so
 
667
%{_libdir}/slurm/job_submit_partition.so
617
668
%{_libdir}/slurm/mpi_lam.so
618
669
%{_libdir}/slurm/mpi_mpich1_p4.so
619
670
%{_libdir}/slurm/mpi_mpich1_shmem.so
627
678
%{_libdir}/slurm/preempt_qos.so
628
679
%{_libdir}/slurm/priority_basic.so
629
680
%{_libdir}/slurm/priority_multifactor.so
 
681
%{_libdir}/slurm/proctrack_cgroup.so
630
682
%{_libdir}/slurm/proctrack_pgid.so
631
683
%{_libdir}/slurm/proctrack_linuxproc.so
632
684
%{_libdir}/slurm/sched_backfill.so
634
686
%{_libdir}/slurm/sched_hold.so
635
687
%{_libdir}/slurm/sched_wiki.so
636
688
%{_libdir}/slurm/sched_wiki2.so
 
689
%{_libdir}/slurm/select_bluegene.so
 
690
%{_libdir}/slurm/select_cray.so
 
691
%{_libdir}/slurm/select_bgq.so
637
692
%{_libdir}/slurm/select_cons_res.so
638
693
%{_libdir}/slurm/select_linear.so
639
694
%{_libdir}/slurm/switch_none.so
640
695
%{_libdir}/slurm/task_none.so
641
696
%{_libdir}/slurm/topology_3d_torus.so
 
697
%{_libdir}/slurm/topology_node_rank.so
642
698
%{_libdir}/slurm/topology_none.so
643
699
%{_libdir}/slurm/topology_tree.so
644
700
#############################################################################
654
710
%{_bindir}/mpiexec
655
711
#############################################################################
656
712
 
 
713
%files sjobexit
 
714
%defattr(-,root,root)
 
715
%{_bindir}/sjobexitmod
 
716
%{_mandir}/man1/sjobexit*
 
717
#############################################################################
 
718
 
657
719
%files slurmdb-direct
658
720
%defattr(-,root,root)
659
721
%config (noreplace) %{_perldir}/config.slurmdb.pl
679
741
%files lua
680
742
%defattr(-,root,root)
681
743
%doc contribs/lua/proctrack.lua
 
744
%{_libdir}/slurm/job_submit_lua.so
682
745
%{_libdir}/slurm/proctrack_lua.so
683
746
%endif
684
747
#############################################################################
719
782
%post
720
783
if [ -x /sbin/ldconfig ]; then
721
784
    /sbin/ldconfig %{_libdir}
722
 
    /sbin/ldconfig %{_libdir}
723
785
    if [ $1 = 1 ]; then
724
786
        [ -x /sbin/chkconfig ] && /sbin/chkconfig --add slurm
725
787
    fi
730
792
    echo "Build a new one using http://www.llnl.gov/linux/slurm/configurator.html"
731
793
fi
732
794
 
 
795
%post slurmdbd
 
796
if [ ! -f %{_sysconfdir}/slurmdbd.conf ]; then
 
797
    echo "You need to build and install a slurmdbd.conf file"
 
798
    echo "Edit %{_sysconfdir}/slurmdbd.conf.example and copy it to slurmdbd.conf"
 
799
fi
 
800
 
733
801
%if %{slurm_with bluegene}
734
802
%post bluegene
735
803
if [ -x /sbin/ldconfig ]; then
749
817
            /etc/init.d/slurm stop
750
818
        fi
751
819
    fi
 
820
fi
 
821
 
 
822
%preun slurmdbd
 
823
if [ "$1" = 0 ]; then
752
824
    if [ -x /etc/init.d/slurmdbd ]; then
753
825
        [ -x /sbin/chkconfig ] && /sbin/chkconfig --del slurmdbd
754
826
        if /etc/init.d/slurmdbd status | grep -q running; then