# Copyright (C) 2008 Platform Computing Inc # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA# # %define TARREV 1 Summary: OCS Name: ocs Version: 5.3 Release: 1 License: GPLv2 Group: System Environment/Base Vendor: Platform Computing Corporation BuildArch: noarch Source: ocs-5.3.%{TARREV}.tar.gz Requires: yum-utils Requires: component-base-installer >= 5.2 Requires: component-base-node >= 5.2 Requires: primitive Requires: kit-base >= 5.2 Requires: kusu-autoinstall >= 5.2 Requires: kusu-base-installer >= 5.2 Requires: kusu-base-node >= 5.2 Requires: kusu-boot >= 5.2 Requires: kusu-buildkit >= 5.2 Requires: kusu-core >= 5.2 Requires: kusu-createrepo >= 0.4.8-2 Requires: kusu-driverpatch >= 5.2 Requires: kusu-hardware >= 5.2 Requires: kusu-installer >= 5.2 Requires: kusu-kitops >= 5.2 Requires: kusu-md5crypt >= 5.2 Requires: kusu-net-tool >= 5.2 Requires: kusu-networktool >= 5.2 Requires: kusu-nodeinstaller >= 5.2 Requires: kusu-nodeinstaller-patchfiles >= 5.2 Requires: kusu-path >= 5.2 Requires: kusu-release >= 5.2 Requires: kusu-repoman >= 5.2 Requires: kusu-ui >= 5.2 Requires: kusu-util >= 5.2 Requires: initrd-templates >= 5.2 Requires(post): policycoreutils Requires(postun): policycoreutils BuildRoot: %{_tmppath}/%{name}-%{version}-root Url: http://www.platform.com BuildRequires: python %description This package will retrieve the necessary pieces to complete the "%{name}" installation. %prep %setup -q -n %{name} %build %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/opt/kusu/sql install -d $RPM_BUILD_ROOT/opt/kusu/sbin install -d $RPM_BUILD_ROOT/opt/kusu/lib/python/kusu/ocssetup install src/sbin/ocs-setup.py $RPM_BUILD_ROOT/opt/kusu/sbin/ocs-setup install src/lib/__init__.py $RPM_BUILD_ROOT/opt/kusu/lib/python/kusu/ocssetup install src/lib/kitdownloader.py $RPM_BUILD_ROOT/opt/kusu/lib/python/kusu/ocssetup install src/sql/mysql_kusu_primedb.sql $RPM_BUILD_ROOT/opt/kusu/sql install src/sql/psql_kusu_primedb.sql $RPM_BUILD_ROOT/opt/kusu/sql %clean rm -rf $RPM_BUILD_ROOT %post # Enable OMAPI port for dhcpd (disabled by default) # /usr/sbin/semanage port -a -t dhcpd_port_t -p tcp 7911 %postun # Since we enabled it, we disable it... # /usr/sbin/semanage port -d -t dhcpd_port_t -p tcp 7911 %files %dir /opt/kusu %dir /opt/kusu/sql %dir /opt/kusu/sbin %dir /opt/kusu/lib/python/kusu/ocssetup /opt/kusu/sbin/ocs-setup /opt/kusu/sql/psql_kusu_primedb.sql /opt/kusu/sql/mysql_kusu_primedb.sql /opt/kusu/lib/python/kusu/ocssetup/* %changelog * Tue Jan 9 2009 Kailash Sethuraman 5.3-0 - Bumped version number to reflect code changes for RH 5.3 * Wed Dec 17 2008 Kailash Sethuraman 5.1-5 - Added postgres support * Wed Sep 17 2008 Mike Frisch 5.1-5 - Added check for firewall before displaying warning (#115604) - Changed SELinux detection mechanism to be more robust (#115605) * Thu Sep 4 2008 Mike Frisch 5.1-4 - Display default DNS domain (#114804) * Fri Aug 26 2008 Mark Black 5.1-3 - Fix for depot directory in other locations (#114315) * Fri Aug 22 2008 Mark Black 5.1-2 - Fix bad commit * Wed Jul 11 2008 Mike Frisch 5.1-1 - Moved common code into 'kusu-core' package * Fri Jul 4 2008 Mike Frisch 5.0-48 - Added retry loop around base kit downloader/install (#111310) * Wed Apr 16 2008 Mike Frisch 5.0-44 - Partitioning bug fix (#104419) * Thu Mar 27 2008 Mike Frisch 5.0-43 - Updated tarball to version 5.0.1 * Mon Dec 10 2007 Platform Computing - Initial test release