File: [Development] / failsafe / FailSafe-mgr / build / rpm / rpm.spec.in (download)
Revision 1.14, Thu Mar 15 00:13:41 2001 UTC (16 years, 7 months ago) by aseel
Branch: MAIN
CVS Tags: HEAD Changes since 1.13: +12 -33
lines
- Extended support for server-side properties to other tasks.
- GUI components that pointed to the log viewer were removed
(commented out) while readlog is being ported.
- Extended Support for server-side properties to remaining tasks and views.
- Removed (commented out) GUI components that point to the log viewer
while readlog is being ported.
|
# Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
#
# $Id: rpm.spec.in,v 1.14 2001/03/15 00:13:41 aseel Exp $
#
# DO NOT EDIT rpm.spec - edit rpm.spec.in instead. rpm.spec is generated
# from rpm.spec.in by the configure script generated by autoconf.
#
# Because rpm won't let you do -bb --short-circuit, if you only want to
# fiddle with the layout of the installed files in the packages or your
# %post & %postun commands, you can do a "make DESTDIR=/tmp/foo install"
# in the top-level directory, and cd to build/rpm, and
# "make BOGO_RPM_SHORT_CIRCUIT=/tmp/foo rpm". Instead of doing the build
# and install phases, it will copy everything from $BOGO_RPM_SHORT_CIRCUIT
# to the directory it *would* have installed into, and then assemble the
# images. Much faster for development work!
#
Summary: FailSafe GUI
%define name @PACKAGE@
%define version @VERSION@
# Version 1.3.7 has some required features.
%define sysadm_base_version 1.3.7
Name: %{name}
Version: %{version}
Release: 5
Group: System Environment/Daemons
Vendor: SGI
Copyright: GPL/LGPL
#Prefix: /usr/sysadm
BuildRoot: %{_topdir}/tmp/fsmgr
# If you add a BuildArchitecture, you will also need to add the
# corresponding directory to the directories created by the Makefile.am's
# rpm target, because apparently rpm doesn't know how to mkdir.
BuildArchitectures: i386
%define fullname %{name}-%{version}
%define source %{fullname}.tar.gz
Source: %{source}
%description
A GUI for FailSafe.
%package client
Summary: FailSafe GUI client software
Group: User Interface/Utilities
AutoReqProv: no
Requires: sysadm_base-client >= %{sysadm_base_version}
%description client
These are the jar files needed for running the FailSafe GUI
as an application. To run it as an applet, install the web package on
the server.
%package server
Summary: FailSafe GUI server software
Group: System Environment/Daemons
AutoReqProv: no
Requires: sysadm_base-server >= %{sysadm_base_version}
Requires: failsafe >= 0.8
%description server
These are the files needed for serving the FailSafe GUI.
%package web
Summary: FailSafe GUI web server software
Group: System Environment/Daemons
AutoReqProv: no
## XXX NEEDS TO DEPEND ON apache or something?
Requires: %{name}-server >= %{version}
Requires: %{name}-client >= %{version}
%description web
These are the server-side files needed for running the FailSafe
GUI as an applet in a web browser. To run it as an application, install
the client package on the client machine.
%prep
#%setup -q -n %{name}
#%setup -n %{name}-%{version}
if test "no$BOGO_RPM_SHORT_CIRCUIT" = "no"; then \
rm -rf %{fullname}; \
gzip -dc %{_topdir}/SOURCES/%{source} | tar -xvvf - ; \
cd %{fullname}; \
chmod -Rf a+rX,g-w,o-w . ; \
else \
echo "DANGER %setup SKIPPED BECAUSE \$BOGO_RPM_SHORT_CIRCUIT IS SET!"; \
fi
#
# Rather than running the configure script read from the source tarball,
# this uses the config.status which was used to generate the source tarball.
# This way, the commands
# ./configure --prefix=/tmp/foo
# make rpm
# rpm -ivh build/rpm/your_package.rpm
# will use your configuration arguments to build the RPM package.
#
%build
if test "no$BOGO_RPM_SHORT_CIRCUIT" = "no"; then \
cd %{fullname}; \
test -f ../../../../../libtool && cp ../../../../../libtool . ; \
cp ../../../../../config.status . ; \
./config.status; \
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"; \
else \
echo "DANGER %build SKIPPED BECAUSE \$BOGO_RPM_SHORT_CIRCUIT IS SET!"; \
fi
%install
if test "no$BOGO_RPM_SHORT_CIRCUIT" = "no"; then \
cd %{fullname}; \
echo "RPM_BUILD_ROOT=$RPM_BUILD_ROOT"; \
make DESTDIR="$RPM_BUILD_ROOT" install; \
else \
echo "DANGER %install SKIPPED BECAUSE \$BOGO_RPM_SHORT_CIRCUIT IS SET!"; \
rm -rf $RPM_BUILD_ROOT; \
mkdir $RPM_BUILD_ROOT; \
cd $BOGO_RPM_SHORT_CIRCUIT; \
tar cBf - . | (cd $RPM_BUILD_ROOT && tar xBf -) ; \
fi
%clean
# We don't actually do any cleaning here; the Makefile will clean up
# our entire %{_topdir}.
if test "no$BOGO_RPM_SHORT_CIRCUIT" != "no"; then \
echo "DANGER!!! These packages were built from images installed in" \
"BOGO_RPM_SHORT_CIRCUIT $BOGO_RPM_SHORT_CIRCUIT, not from the" \
"source tarball! Unset BOGO_RPM_SHORT_CIRCUIT to build properly!"; \
fi
%files client
%defattr(-,root,root)
@bindir@/fsdetail
@bindir@/fstask
# Take everything under RHJARDIR; we can't just list the jar files because
# the language-specific ones might not have been built, depending on the
# value of LINGUAS.
@RHJARDIR@/
@KdeMenuFilesApplicationsdir@/fsdetail.kdelnk
@KdeMenuFilesApplicationsdir@/fstask.kdelnk
@GnomeMenuFilesApplicationsdir@/fsdetail.desktop
@GnomeMenuFilesApplicationsdir@/fstask.desktop
@icondir@/fstask.xpm
@miniicondir@/mini-fstask.xpm
%files server
%defattr(-,root,root)
# Take everything under RHLOCALEDIR; we can't just list the files because
# the language-specific ones might not have been built, depending on the
# value of LINGUAS.
@RHLOCALEDIR@/
@RHASSOCDIR@/ClustersAssocWithMachine.so
@RHASSOCDIR@/LogGroupsAssocWithCluster.so
@RHASSOCDIR@/MachinesAssocWithCluster.so
@RHASSOCDIR@/MachinesAssocWithFailoverPolicy.so
@RHASSOCDIR@/ResourceGroupsAssocWithCluster.so
@RHASSOCDIR@/ResourceGroupsAssocWithFailoverPolicy.so
@RHASSOCDIR@/ResourceGroupsAssocWithMachine.so
@RHASSOCDIR@/ResourceGroupsAssocWithResource.so
@RHASSOCDIR@/ResourcesAssocWithCluster.so
@RHASSOCDIR@/ResourcesAssocWithMachine.so
@RHASSOCDIR@/ResourcesAssocWithResourceGroup.so
@RHASSOCDIR@/ResourcesAssocWithResourceType.so
@RHASSOCDIR@/ResourcesAssocWithResource.so
@RHASSOCDIR@/ResourceTypesAssocWithCluster.so
@RHASSOCDIR@/ResourceTypesAssocWithMachine.so
@RHASSOCDIR@/ResourceTypesAssocWithResourceType.so
@RHCATDIR@/ClusterCategory.so
@RHCATDIR@/EnumerateCategory.so
@RHCATDIR@/FailoverPolicyCategory.so
@RHCATDIR@/FilesystemCategory.so
@RHCATDIR@/GlobalParametersCategory.so
@RHCATDIR@/HAEnumerateCategory.so
@RHCATDIR@/LogGroupCategory.so
@RHCATDIR@/MachineCategory.so
@RHCATDIR@/ResourceCategory.so
@RHCATDIR@/ResourceGroupCategory.so
@RHCATDIR@/ResourceTypeCategory.so
@RHLIBDIR@/libfscxCamCategory.a
@RHLIBDIR@/libfscxCamCategory.la
@RHLIBDIR@/libfscxCamCategory.so
@RHLIBDIR@/libfscxCamCategory.so.0
@RHLIBDIR@/libfscxCamCategory.so.0.0.0
@FSPRODDIR@/version
@FSPRODDIR@/productAttrs/1000.fs
@FSPRODDIR@/productAttrs/1000.os
@RHTASKREGDIR@/BalanceLoadTaskGroup/1000.com.sgi.fsmgr.task.MoveResourceGroupTask
@RHTASKREGDIR@/BalanceLoadTaskGroup/2000.com.sgi.fsmgr.task.StartResourceGroupMaintTask
@RHTASKREGDIR@/BalanceLoadTaskGroup/3000.com.sgi.fsmgr.task.StopResourceGroupMaintTask
@RHTASKREGDIR@/BalanceLoadTaskGroup/4000.com.sgi.fsmgr.task.ModifyResourceGroupTask
@RHTASKREGDIR@/ClusterCategory/1000.com.sgi.fsmgr.task.DefineMachineTask
@RHTASKREGDIR@/ClusterCategory/2000.com.sgi.fsmgr.task.DefineClusterTask
@RHTASKREGDIR@/ClusterCategory/3000.com.sgi.fsmgr.task.AddRemoveMachinesInClusterTask
@RHTASKREGDIR@/ClusterCategory/4000.com.sgi.fsmgr.task.SetHAParametersTask
@RHTASKREGDIR@/ClusterCategory/5000.com.sgi.fsmgr.task.ActivateHAServicesTask
@RHTASKREGDIR@/ClusterCategory/6000.com.sgi.fsmgr.task.DeactivateHAServicesTask
@RHTASKREGDIR@/ClusterCategory/7000.com.sgi.fsmgr.task.ModifyClusterTask
@RHTASKREGDIR@/ClusterCategory/8000.com.sgi.fsmgr.task.DeleteClusterTask
@RHTASKREGDIR@/ClusterTaskGroup/1000.com.sgi.fsmgr.task.DefineClusterTask
@RHTASKREGDIR@/ClusterTaskGroup/2000.com.sgi.fsmgr.task.ModifyClusterTask
@RHTASKREGDIR@/ClusterTaskGroup/3000.com.sgi.fsmgr.task.DeleteClusterTask
@RHTASKREGDIR@/DiagnosticsTaskGroup/1000.com.sgi.fsmgr.task.TestConnectivityTask
@RHTASKREGDIR@/DiagnosticsTaskGroup/2000.com.sgi.fsmgr.task.TestResourcesTask
@RHTASKREGDIR@/DiagnosticsTaskGroup/3000.com.sgi.fsmgr.task.TestFailoverPolicyTask
@RHTASKREGDIR@/FailoverPolicyCategory/1000.com.sgi.fsmgr.task.DefineFailoverPolicyTask
@RHTASKREGDIR@/FailoverPolicyCategory/2000.com.sgi.fsmgr.task.ModifyFailoverPolicyTask
@RHTASKREGDIR@/FailoverPolicyCategory/2500.com.sgi.fsmgr.task.DefineResourceGroupTask
@RHTASKREGDIR@/FailoverPolicyCategory/3000.com.sgi.fsmgr.task.DeleteFailoverPolicyTask
@RHTASKREGDIR@/FailoverPolicyTaskGroup/1000.com.sgi.fsmgr.task.DefineFailoverPolicyTask
@RHTASKREGDIR@/FailoverPolicyTaskGroup/2000.com.sgi.fsmgr.task.ModifyFailoverPolicyTask
@RHTASKREGDIR@/FailoverPolicyTaskGroup/3000.com.sgi.fsmgr.task.DeleteFailoverPolicyTask
@RHTASKREGDIR@/FixProblemsTaskGroup/1000.com.sgi.fsmgr.task.TakeResourceGroupOnlineTask
@RHTASKREGDIR@/FixProblemsTaskGroup/2000.com.sgi.fsmgr.task.TakeResourceGroupOfflineTask
@RHTASKREGDIR@/HAServicesTaskGroup/1000.com.sgi.fsmgr.task.ActivateHAServicesTask
@RHTASKREGDIR@/HAServicesTaskGroup/2000.com.sgi.fsmgr.task.DeactivateHAServicesTask
@RHTASKREGDIR@/HAServicesTaskGroup/3000.com.sgi.fsmgr.task.SetHAParametersTask
@RHTASKREGDIR@/HAServicesTaskGroup/4000.com.sgi.fsmgr.task.SetLogParametersTask
@RHTASKREGDIR@/MachineCategory/1000.com.sgi.fsmgr.task.DefineMachineTask
@RHTASKREGDIR@/MachineCategory/1500.com.sgi.fsmgr.task.DefineClusterTask
@RHTASKREGDIR@/MachineCategory/2000.com.sgi.fsmgr.task.AddRemoveMachinesInClusterTask
@RHTASKREGDIR@/MachineCategory/2500.com.sgi.fsmgr.task.TestConnectivityTask
@RHTASKREGDIR@/MachineCategory/3000.com.sgi.fsmgr.task.ResetMachineTask
@RHTASKREGDIR@/MachineCategory/4000.com.sgi.fsmgr.task.ModifyMachineTask
@RHTASKREGDIR@/MachineCategory/5000.com.sgi.fsmgr.task.DeleteMachineTask
@RHTASKREGDIR@/MachineTaskGroup/1000.com.sgi.fsmgr.task.DefineMachineTask
@RHTASKREGDIR@/MachineTaskGroup/2000.com.sgi.fsmgr.task.AddRemoveMachinesInClusterTask
@RHTASKREGDIR@/MachineTaskGroup/3000.com.sgi.fsmgr.task.ResetMachineTask
@RHTASKREGDIR@/MachineTaskGroup/4000.com.sgi.fsmgr.task.ModifyMachineTask
@RHTASKREGDIR@/MachineTaskGroup/5000.com.sgi.fsmgr.task.DeleteMachineTask
@RHTASKREGDIR@/MaintainResourceGroupTaskGroup/1000.com.sgi.fsmgr.task.StartResourceGroupMaintTask
@RHTASKREGDIR@/MaintainResourceGroupTaskGroup/2000.com.sgi.fsmgr.task.StopResourceGroupMaintTask
@RHTASKREGDIR@/ManageResourceGroupTaskGroup/1000.com.sgi.fsmgr.task.AddRemoveResourcesInResourceGroupTask
@RHTASKREGDIR@/ManageResourceGroupTaskGroup/2000.com.sgi.fsmgr.task.MoveResourceGroupTask
@RHTASKREGDIR@/PreventAutoFailoverTaskGroup/1000.com.sgi.fsmgr.task.StartResourceGroupMaintTask
@RHTASKREGDIR@/PreventAutoFailoverTaskGroup/2000.com.sgi.fsmgr.task.StopResourceGroupMaintTask
@RHTASKREGDIR@/ResourceCategory/1000.com.sgi.fsmgr.task.DefineResourceTask
@RHTASKREGDIR@/ResourceCategory/1500.com.sgi.fsmgr.task.TestResourcesTask
@RHTASKREGDIR@/ResourceCategory/2000.com.sgi.fsmgr.task.DefineFailoverPolicyTask
@RHTASKREGDIR@/ResourceCategory/3000.com.sgi.fsmgr.task.DefineMachineSpecificResourceTask
@RHTASKREGDIR@/ResourceCategory/4000.com.sgi.fsmgr.task.AddRemoveDependenciesInResourceTask
@RHTASKREGDIR@/ResourceCategory/5000.com.sgi.fsmgr.task.ModifyResourceTask
@RHTASKREGDIR@/ResourceCategory/6000.com.sgi.fsmgr.task.RecoverResourceTask
@RHTASKREGDIR@/ResourceCategory/9000.com.sgi.fsmgr.task.DeleteResourceTask
@RHTASKREGDIR@/ResourceGroupCategory/1000.com.sgi.fsmgr.task.DefineResourceGroupTask
@RHTASKREGDIR@/ResourceGroupCategory/2000.com.sgi.fsmgr.task.AddRemoveResourcesInResourceGroupTask
@RHTASKREGDIR@/ResourceGroupCategory/3000.com.sgi.fsmgr.task.TakeResourceGroupOnlineTask
@RHTASKREGDIR@/ResourceGroupCategory/4000.com.sgi.fsmgr.task.TakeResourceGroupOfflineTask
@RHTASKREGDIR@/ResourceGroupCategory/5000.com.sgi.fsmgr.task.StartResourceGroupMaintTask
@RHTASKREGDIR@/ResourceGroupCategory/6000.com.sgi.fsmgr.task.StopResourceGroupMaintTask
@RHTASKREGDIR@/ResourceGroupCategory/6500.com.sgi.fsmgr.task.ActivateHAServicesTask
@RHTASKREGDIR@/ResourceGroupCategory/7000.com.sgi.fsmgr.task.MoveResourceGroupTask
@RHTASKREGDIR@/ResourceGroupCategory/8000.com.sgi.fsmgr.task.ModifyResourceGroupTask
@RHTASKREGDIR@/ResourceGroupCategory/9000.com.sgi.fsmgr.task.DeleteResourceGroupTask
@RHTASKREGDIR@/ResourceGroupTaskGroup/1000.com.sgi.fsmgr.task.DefineResourceGroupTask
@RHTASKREGDIR@/ResourceGroupTaskGroup/2000.com.sgi.fsmgr.task.ModifyResourceGroupTask
@RHTASKREGDIR@/ResourceGroupTaskGroup/3000.com.sgi.fsmgr.task.DeleteResourceGroupTask
@RHTASKREGDIR@/ResourceTaskGroup/1000.com.sgi.fsmgr.task.DefineResourceTask
@RHTASKREGDIR@/ResourceTaskGroup/2000.com.sgi.fsmgr.task.DefineMachineSpecificResourceTask
@RHTASKREGDIR@/ResourceTaskGroup/3000.com.sgi.fsmgr.task.AddRemoveDependenciesInResourceTask
@RHTASKREGDIR@/ResourceTaskGroup/4000.com.sgi.fsmgr.task.ModifyResourceTask
@RHTASKREGDIR@/ResourceTaskGroup/7000.com.sgi.fsmgr.task.RecoverResourceTask
@RHTASKREGDIR@/ResourceTaskGroup/9000.com.sgi.fsmgr.task.DeleteResourceTask
@RHTASKREGDIR@/ResourceTypeCategory/1000.com.sgi.fsmgr.task.DefineResourceTypeTask
@RHTASKREGDIR@/ResourceTypeCategory/1500.com.sgi.fsmgr.task.DefineResourceTask
@RHTASKREGDIR@/ResourceTypeCategory/2000.com.sgi.fsmgr.task.DefineMachineSpecificResourceTypeTask
@RHTASKREGDIR@/ResourceTypeCategory/4000.com.sgi.fsmgr.task.AddRemoveDependenciesInResourceTypeTask
@RHTASKREGDIR@/ResourceTypeCategory/5000.com.sgi.fsmgr.task.LoadResourceTypeTask
@RHTASKREGDIR@/ResourceTypeCategory/7000.com.sgi.fsmgr.task.ModifyResourceTypeTask
@RHTASKREGDIR@/ResourceTypeCategory/8000.com.sgi.fsmgr.task.DeleteResourceTypeTask
@RHTASKREGDIR@/ResourceTypeTaskGroup/1000.com.sgi.fsmgr.task.DefineResourceTypeTask
@RHTASKREGDIR@/ResourceTypeTaskGroup/2000.com.sgi.fsmgr.task.DefineMachineSpecificResourceTypeTask
@RHTASKREGDIR@/ResourceTypeTaskGroup/4000.com.sgi.fsmgr.task.AddRemoveDependenciesInResourceTypeTask
@RHTASKREGDIR@/ResourceTypeTaskGroup/5000.com.sgi.fsmgr.task.LoadResourceTypeTask
@RHTASKREGDIR@/ResourceTypeTaskGroup/7000.com.sgi.fsmgr.task.ModifyResourceTypeTask
@RHTASKREGDIR@/ResourceTypeTaskGroup/8000.com.sgi.fsmgr.task.DeleteResourceTypeTask
@RHTASKREGDIR@/SmartMetatasksTaskGroup/1000.com.sgi.fsmgr.task.CreateClusterMetaTask
@RHTASKREGDIR@/SmartMetatasksTaskGroup/2000.com.sgi.fsmgr.task.MakeResourcesAvailMetaTask
%post server
if ! test -e @RHPRIVBINDIR@/ClusterDiags; then \
echo "Creating bogus ClusterDiags..."; \
@ECHO@ "#! /bin/sh\necho Cluster Diagnostics have not been implemented in this release." > @RHPRIVBINDIR@/ClusterDiags; \
chmod a+x @RHPRIVBINDIR@/ClusterDiags; \
fi
%files web
%defattr(-,root,root)
@RHWEBBINDIR@/fsmgrhtml
@WEBROOTDIR@/FailSafeManager/bullet.gif
@WEBROOTDIR@/FailSafeManager/fsmgr.html
@WEBROOTDIR@/FailSafeManager/index.shtml
@WEBROOTDIR@/FailSafeManager/noplugin-info.html
@WEBROOTDIR@/FailSafeManager/noplugin.shtml
@WEBROOTDIR@/FailSafeManager/plugin-info.html
@WEBROOTDIR@/FailSafeManager/sgi_logo.gif
@WEBROOTDIR@/FailSafeManager/fsmgr.jar
@WEBROOTDIR@/FailSafeManager/fsmgrP.jar
@WEBROOTDIR@/FailSafeManager/jh.jar
@WEBROOTDIR@/FailSafeManager/sysadm.jar
@WEBROOTDIR@/FailSafeManager/sysadmP.jar
@WEBROOTDIR@/FailSafeManager/swingall.jar
#homeless files:
#/usr/local/bin/clikeys
#/usr/local/bin/clikeys
#/usr/sysadm/web
#@FSPRODDIR@/version