%define Werror_cflags %nil #define uid 43 %define username sgeadmin %define homedir %{_datadir}/gridengine #define gecos Grid Engine Name: gridengine Version: 6.2u3 Release: %mkrel 1 Summary: Grid Engine - Distributed Computing Management software Group: Applications/System # Only the file %{_libexecdir}/gridengine/bin/*/qmake is # under GPLv2+, which is not used or linked by other parts # of gridengine. # The file %{_libexecdir}/gridengine/bin/*/qtcsh is # under BSD with advertising, # which is not used or linked by other parts of gridengine. License: (BSD and LGPLv2+ and MIT and SISSL) and GPLv2+ and BSD with advertising URL: http://gridengine.sunsource.net/ #Source0 is in Source12 Source0: ge-V62u3_TAG-src.tar.xz Source2: my_configuration.conf Source3: sge.csh Source4: sge.sh Source5: sge_execd Source6: sgemaster Source7: bootstrap Source8: Licenses Source9: gridengine.sysconfig Source10: http://gridengine.sunsource.net/nonav/issues/showattachment.cgi/165/libcore.c Source11: README # This time, they packaged everything into this bundle Source12: http://gridengine.sunsource.net/files/documents/7/203/ge-V623_TAG-src-all_modules.tar.xz # Link ssl libraries dynamically so dependencies are pulled in # http://gridengine.sunsource.net/issues/show_bug.cgi?id=2845 Patch1: gridengine-6.2beta-ssl.patch # Make inst_common.sh not look for qmon or sge_execd since they might not be installed Patch2: gridengine-6.2beta-inst.patch # Don't need to make rc files in inst_common.sh # Partially http://gridengine.sunsource.net/issues/show_bug.cgi?id=2780 Patch3: gridengine-6.2u3-rctemplates.patch # Fixup sge_ca to use system openssl and java paths Patch4: gridengine-6.2u2_1-sge_ca.patch # Fixup jni paths Patch5: gridengine-6.2-jni.patch # Use system db_ utils Patch6: gridengine-6.2-db.patch # aimk sets -Werror, but there are lots of warnings # http://gridengine.sunsource.net/issues/show_bug.cgi?id=2112 Patch7: gridengine-6.2u2_1-Werror.patch # Import specific classes to avoid pulling in other ones # http://gridengine.sunsource.net/issues/show_bug.cgi?id=2924 Patch8: gridengine-6.2-import.patch # Rename getline() to sge_getline() # http://gridengine.sunsource.net/issues/show_bug.cgi?id=2980 Patch9: gridengine-6.2u2_1-getline.patch # Support lesstif - http://gridengine.sunsource.net/issues/show_bug.cgi?id=2310 Patch15: gridengine-6.2beta2-lesstif.patch # Make inst_sge exit with status 1 if usage is incorrect # http://gridengine.sunsource.net/issues/show_bug.cgi?id=2586 Patch19: gridengine-6.1u2-auto.patch # Don't use rpaths Patch22: gridengine-6.2u2_1-rpath.patch # Fix linking with proper libs # http://gridengine.sunsource.net/issues/show_bug.cgi?id=2588 Patch25: gridengine-6.2u2_1-libs.patch # Handle ignoring return codes Patch26: gridengine-6.2beta2-error.patch # Workaround for openssl-1.0 API change Patch27: gridengine-6.2u3-openssl.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: tcsh BuildRequires: openssl-devel BuildRequires: db4-devel BuildRequires: ncurses-devel BuildRequires: pam-devel BuildRequires: libxmu-devel BuildRequires: libxpm-devel BuildRequires: lesstif-devel BuildRequires: java-devel >= 1.6.0 BuildRequires: javacc BuildRequires: ant-junit BuildRequires: ant-nodeps BuildRequires: %{_lib}elfutils-devel BuildRequires: net-tools BuildRequires: java-rpmbuild #BuildRequires: fedora-usermgmt-devel Requires: ncurses Requires(posttrans): /usr/sbin/alternatives Requires(preun): /usr/sbin/alternatives %description In a typical network that does not have distributed resource management software, workstations and servers are used from 5% to 20% of the time. Even technical servers are generally less than fully utilized. This means that there are a lot of cycles that can be used productively if only users know where they are, can capture them, and put them to work. Grid Engine finds a pool of idle resources and harnesses it productively, so an organization gets as much as five to ten times the usable power out of systems on the network. That can increase utilization to as much as 98%. Grid Engine software aggregates available compute resources and delivers compute power as a network service. These are the local files shared by both the qmaster and execd daemons. You must install this package in order to use any one of them. %package devel Summary: Gridengine development files Group: Development/Libraries License: BSD and LGPLv2+ and MIT and SISSL Requires: %{name} = %{version}-%{release} %description devel gridengine development headers and libraries. %package qmon Summary: Gridengine qmon monitor Group: Development/Libraries License: BSD and LGPLv2+ and MIT and SISSL Requires: %{name} = %{version}-%{release} %description qmon The qmon graphical grid engine monitor %package execd Summary: Gridengine execd program Group: Development/Libraries License: BSD and LGPLv2+ and MIT and SISSL Requires: %{name} = %{version}-%{release} Requires(post): /sbin/chkconfig Requires(postun): /sbin/service Requires(postun): %{name} = %{version}-%{release} Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(preun): %{name} = %{version}-%{release} %description execd Programs needed to run a grid engine execution host %package qmaster Summary: Gridengine qmaster programs Group: Development/Libraries License: BSD and LGPLv2+ and MIT and SISSL Requires: %{name} = %{version}-%{release} Requires: db4-utils Requires(post): /sbin/chkconfig Requires(postun): /sbin/service Requires(postun): %{name} = %{version}-%{release} Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(preun): %{name} = %{version}-%{release} %description qmaster Programs needed to run a grid engine qmaster host %prep #setup -q -n gridengine -a 1 %setup -q -n gridengine #Copy Licenses and README file into build directory cp %SOURCE8 %SOURCE11 . #Remove unneeded shbangs sed -i -e '/^#! *\/bin\/sh/d' source/dist/util/install_modules/*.sh %patch1 -p1 -b .ssl %patch2 -p1 -b .inst %patch3 -p1 -b .rctemplates %patch4 -p1 -b .sge_ca %patch5 -p1 -b .jni %patch6 -p1 -b .db %patch7 -p1 -b .Werror %patch8 -p1 -b .import %patch9 -p1 -b .getline %if !0%{?rhel} %patch15 -p1 -b .lesstif %endif %patch19 -p1 -b .auto %patch22 -p1 -b .rpath %patch25 -p1 -b .libs %patch26 -p1 -b .error %patch27 -p1 -b .openssl sed -i.arch -e 's,/\$DSTARCH,,g' source/scripts/distinst #Don't ship rctemplates rm -rf source/dist/util/rctemplates #Don't ship windows .bat scripts find source -name \*.bat | xargs rm #Fix permissions chmod +x source/dist/util/dl?.*sh chmod -x source/dist/util/dl.*sh find source -name \*.c | xargs chmod -x #Fix flags for qmake build find source/3rdparty/qmake source/3rdparty/qtcsh -name Makefile | xargs sed -i -e "/^CFLAGS *=/s/=/= $RPM_OPT_FLAGS/" #dlopen the runtime libssl library soname=$(objdump -p %{_libdir}/libssl.so | awk '/SONAME/ {print $2}') sed -i -e s/libssl\.so/$soname/ source/libs/comm/cl_ssl_framework.c #Fix xterm path sed -i -e s,X11/xterm,xterm,g doc/htmlman/htmlman5/sge_conf.html \ doc/man/man5/sge_conf.5 \ source/dist/util/arch_variables \ source/libs/sgeobj/sge_conf.c sed -i "s|lib|%{_lib}|" build.xml %build export JAVA_HOME=%{java_home} cd source #Setup paths cat > aimk.private < build_private.properties </dev/null || : #__fe_useradd %uid -r -s /sbin/nologin -d %homedir -M \ # -c '%gecos' -g %username %username &>/dev/null || : #post -p /sbin/ldconfig %posttrans alternatives --install %{_bindir}/qsub qsub %{_bindir}/qsub-ge 10 \ --slave %{_mandir}/man1/qsub.1.xz qsub-man \ %{_mandir}/man1/qsub-ge.1.xz \ --slave %{_bindir}/qalter qalter %{_bindir}/qalter-ge \ --slave %{_mandir}/man1/qalter.1.xz qalter-man \ %{_mandir}/man1/qalter-ge.1.xz \ --slave %{_bindir}/qdel qdel %{_bindir}/qdel-ge \ --slave %{_mandir}/man1/qdel.1.xz qdel-man \ %{_mandir}/man1/qdel-ge.1.xz \ --slave %{_bindir}/qhold qhold %{_bindir}/qhold-ge \ --slave %{_mandir}/man1/qhold.1.xz qhold-man \ %{_mandir}/man1/qhold-ge.1.xz \ --slave %{_bindir}/qrls qrls %{_bindir}/qrls-ge \ --slave %{_mandir}/man1/qrls.1.xz qrls-man \ %{_mandir}/man1/qrls-ge.1.xz \ --slave %{_bindir}/qselect qselect %{_bindir}/qselect-ge \ --slave %{_mandir}/man1/qselect.1.xz qselect-man \ %{_mandir}/man1/qselect-ge.1.xz \ --slave %{_bindir}/qstat qstat %{_bindir}/qstat-ge \ --slave %{_mandir}/man1/qstat.1.xz qstat-man \ %{_mandir}/man1/qstat-ge.1.xz %preun alternatives --remove qsub %{_bindir}/qsub-ge #postun -p /sbin/ldconfig %post execd /sbin/chkconfig --add sge_execd %postun execd if [ "$1" -ge "1" ]; then /sbin/service sge_execd condrestart >/dev/null 2>&1 || : fi %preun execd if [ $1 -eq 0 ]; then /sbin/service sge_execd stop /sbin/chkconfig --del sge_execd fi %post qmaster /sbin/chkconfig --add sgemaster %postun qmaster if [ "$1" -ge "1" ]; then /sbin/service sgemaster condrestart >/dev/null 2>&1 || : fi %preun qmaster if [ $1 -eq 0 ]; then /sbin/service sgemaster stop /sbin/chkconfig --del sgemaster fi %files %defattr(-,root,root,-) %doc Licenses README %config(noreplace) %{_sysconfdir}/profile.d/sge.* %config(noreplace) %{_sysconfdir}/sysconfig/gridengine # Only the file %{_bindir}/qmake-ge is # under GPLv2+ # Olny the file %{_bindir}/qtcsh is # under BSD with advertising %{_bindir}/* %exclude %{_bindir}/qacct %exclude %{_bindir}/qmon %exclude %{_bindir}/sge_execd %exclude %{_bindir}/sge_qmaster %{_libdir}/%{name} %{_libdir}/libcore.so %{_libdir}/libdrmaa.so.* %{_libdir}/libspoolb.so %{_libdir}/libspoolc.so %{_javadir}/drmaa.jar %{_libexecdir}/gridengine/ %attr(-,%username,%username) %dir %{_datadir}/gridengine %{_datadir}/gridengine/bin %exclude %{_datadir}/gridengine/bin/*/qacct %exclude %{_datadir}/gridengine/bin/*/qmon %exclude %{_datadir}/gridengine/bin/*/sge_execd %exclude %{_datadir}/gridengine/bin/*/sge_qmaster %{_datadir}/gridengine/ckpt %attr(-,%username,%username) %ghost %{_datadir}/gridengine/default %{_datadir}/gridengine/doc %{_datadir}/gridengine/inst_sge %{_datadir}/gridengine/lib %{_datadir}/gridengine/mpi %{_datadir}/gridengine/my_configuration.conf %dir %{_datadir}/gridengine/pvm %{_datadir}/gridengine/pvm/* %exclude %{_datadir}/gridengine/pvm/src %{_datadir}/gridengine/util %dir %{_datadir}/gridengine/utilbin %{_datadir}/gridengine/utilbin/* %exclude %{_datadir}/gridengine/utilbin/db_* %{_mandir}/man1/*.1* %exclude %{_mandir}/man1/qmon.1* %{_mandir}/man5/*.5* %{_mandir}/man8/*.8* %exclude %{_mandir}/man8/sge_qmaster.8* %exclude %{_mandir}/man8/sge_execd.8* %attr(-,%username,%username) %dir %{_localstatedir}/spool/gridengine %attr(-,%username,%username) %dir %{_localstatedir}/spool/gridengine/default %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/libdrmaa.so %{_datadir}/gridengine/examples %{_datadir}/gridengine/pvm/src %{_mandir}/man3/*.3* %files qmon %defattr(-,root,root,-) %{_bindir}/qmon %{_libdir}/libXltree.so %{_datadir}/X11/app-defaults/* %{_datadir}/gridengine/bin/*/qmon %{_datadir}/gridengine/qmon/ %{_mandir}/man1/qmon.1* %files execd %defattr(-,root,root,-) %{_initrddir}/sge_execd %{_bindir}/sge_execd %{_datadir}/gridengine/install_execd %{_datadir}/gridengine/bin/*/sge_execd %{_mandir}/man8/sge_execd.8* %files qmaster %defattr(-,root,root,-) %{_initrddir}/sgemaster %{_bindir}/qacct %{_bindir}/sge_qmaster %{_datadir}/gridengine/bin/*/qacct %{_datadir}/gridengine/bin/*/sge_qmaster %{_datadir}/gridengine/install_qmaster %{_datadir}/gridengine/utilbin/db_* %{_mandir}/man8/sge_qmaster.8* %attr(-,%username,%username) %dir %{_localstatedir}/sgeCA %attr(-,%username,%username) %ghost %{_localstatedir}/spool/gridengine/default/qmaster %attr(-,%username,%username) %ghost %{_localstatedir}/spool/gridengine/default/spool %attr(-,%username,%username) %ghost %{_localstatedir}/spool/gridengine/default/spooldb %changelog * Sat Feb 06 2010 mdawkins 6.2u3-1-unity2010 - import for Unity * Tue Aug 25 2009 Tomas Mraz - 6.2u3-3 - rebuilt with new openssl * Fri Jul 24 2009 Fedora Release Engineering - 6.2u3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jul 14 2009 - Orion Poplawski - 6.2u3-1 - Update to 6.2u3 - Drop ppc patch fixed upstream - Update rctemplates patch * Mon Apr 6 2009 - Orion Poplawski - 6.2u2_1-1 - Update to 6.2u2_1 - Rebase several patches - Add patch to rename getline() - Add patch to compile with correct libs on ppc/ppc64 * Tue Feb 24 2009 Fedora Release Engineering - 6.2u1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Feb 19 2009 - Orion Poplawski - 6.2u1-3 - Add patch to import specific classes to avoid pulling in other ones * Thu Jan 15 2009 - Orion Poplawski - 6.2u1-2 - Rebuild with openssl-0.9.8j * Thu Dec 18 2008 - Orion Poplawski - 6.2u1-1 - Update to 6.2u1 * Mon Nov 17 2008 - Orion Poplawski - 6.2-5 - Leave qmake-ge in %{_bindir} - Use system db_* utils in bdb_checkpoint script - Fix xterm path in default setup - Change java BR to >= 1.6.0 to allow building with other 1.6 javas * Tue Nov 11 2008 - Orion Poplawski - 6.2-4 - Add note to README about localhost line in /etc/hosts - Cleanup setting.sh some, no more MAN stuff - Add conditional build support for EL * Wed Nov 5 2008 - Orion Poplawski - 6.2-3 - Add Requires: ncurses for "clear" - Add patch from CVS to update install scripts - Patch sge_ca script not to use system openssl - Modify code to dlopen runtime ssl library - Patch install_qmaster to update /etc/sysconfig/gridengine - Point install scripts to proper JAVA_HOME - Have sgemaster init script use /etc/sysconfig/gridengine - Add patch to point to jni library locations - Make sure install_qmaster sets up default managers/operators * Fri Sep 26 2008 - Orion Poplawski - 6.2-2 - No more sge_schedd in 6.2, remove from startup script * Mon Aug 11 2008 - Orion Poplawski - 6.2-1 - Update to 6.2 final * Tue Jul 15 2008 - Orion Poplawski - 6.2beta2-0.1 - Provide some installation instructions for these RPMs - Fix up some installation script issues - Ghost more directories created later * Thu Jun 5 2008 - Orion Poplawski - 6.2beta-0 - Update to 6.2beta - Use aimk.private and build_private.properties instead of patching aimk and build.properties - Cleanup some extra /s in paths - Shift to Java 1.6.0 because of new requirements in the source - Move Java JNI libraries to proper location - Drop several upstreamed patches - Add patch to avoid linking unneeded libraries * Fri Apr 11 2008 - Orion Poplawski - 6.1u4-1 - Update to 6.1u4 * Tue Apr 1 2008 - Orion Poplawski - 6.1u3-7 - Use alternatives to avoid conflicts with torque (bug #437613) - Add patch to support stricter csh variable handling * Fri Feb 8 2008 - Orion Poplawski - 6.1u3-6 - Fixup subpackage License tags - Service name change in scriptlets * Thu Feb 7 2008 - Orion Poplawski - 6.1u3-5 - Rewrite initscripts - Remove spurious Requires(post): /sbin/ldconfig - Add License explanation file and fix License tags * Mon Feb 4 2008 - Orion Poplawski - 6.1u3-4 - Drop arch from source - Fix Requires() for main package - Move man3 to -devel * Fri Feb 1 2008 - Orion Poplawski - 6.1u3-3 - Fix various review comments and rpmlint issues (bug #316141) * Thu Jan 31 2008 - Orion Poplawski - 6.1u3-2 - Actually ship sge_execd in the execd subpackage - Don't complain about missing sge_execd during inst_sge -upd - Link in db_dump and db_load into utilbin so that update scripts can find them * Wed Jan 9 2008 - Orion Poplawski - 6.1u3-1 - Update to 6.1u3 - Split execd into sub-package * Thu Nov 15 2007 - Orion Poplawski - 6.1u2-5 - Add BR net-tools for hostname for java build on devel * Mon Nov 12 2007 - Orion Poplawski - 6.1u2-4 - Add patch and source for ppc/ppc64 builds * Fri Nov 1 2007 - Orion Poplawski - 6.1u2-3 - Add patch to fix qstat xml output * Thu Oct 18 2007 - Orion Poplawski - 6.1u2-2 - Cleanup arch handling - Install qevent * Tue Oct 2 2007 - Orion Poplawski - 6.1u2-1 - Fedora packaging