(file) Return to tog-pegasus.spec CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm

Diff for /pegasus/rpm/tog-pegasus.spec between version 1.20.2.7 and 1.20.2.8

version 1.20.2.7, 2005/02/18 01:28:57 version 1.20.2.8, 2005/02/18 01:36:28
Line 4 
Line 4 
 # Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. # Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
 # Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; # Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
 # IBM Corp.; EMC Corporation, The Open Group. # IBM Corp.; EMC Corporation, The Open Group.
   # Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
   # IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
   # Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
   # EMC Corporation; VERITAS Software Corporation; The Open Group.
 # #
 # Permission is hereby granted, free of charge, to any person obtaining a copy # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the "Software"), to # of this software and associated documentation files (the "Software"), to
Line 28 
Line 32 
 # #
 # Package spec for PEGASUS 2.4 # Package spec for PEGASUS 2.4
 # #
   %define srcRelease 1
 Summary: OpenPegasus WBEM Services for Linux Summary: OpenPegasus WBEM Services for Linux
 Name: tog-pegasus Name: tog-pegasus
 Version: 2.4.1.Beta Version: 2.4.1.Beta
Line 35 
Line 40 
 Group: Systems Management/Base Group: Systems Management/Base
 Copyright: Open Group Pegasus Open Source Copyright: Open Group Pegasus Open Source
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
 Source: ftp://www.opengroup.org/pegasus/tog-pegasus-%{version}-%{release}.tar.gz  Source: ftp://www.opengroup.org/pegasus/tog-pegasus-%{version}-%{srcRelease}.tar.gz
 Requires: openssl >= 0.9.6 lsb >= 1.3 Requires: openssl >= 0.9.6 lsb >= 1.3
 Provides: cimserver tog-pegasus-2.4 Provides: cimserver tog-pegasus-2.4
 BuildRequires: openssl-devel >= 0.9.6 BuildRequires: openssl-devel >= 0.9.6
Line 61 
Line 66 
 %prep %prep
 [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
  
 %setup  
   
 export PEGASUS_ROOT=$RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION export PEGASUS_ROOT=$RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION
  
 # Needed for CMPI patch # Needed for CMPI patch
 ln -s $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION $RPM_BUILD_DIR/$RPM_PACKAGE_NAME ln -s $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION $RPM_BUILD_DIR/$RPM_PACKAGE_NAME
  
 %build %build
   export PEGASUS_EXTRA_C_FLAGS="-g $RPM_OPT_FLAGS"
   export PEGASUS_EXTRA_CXX_FLAGS="$PEGASUS_EXTRA_C_FLAGS"
   export PEGASUS_EXTRA_LINK_FLAGS="-pie"
 export PEGASUS_ROOT=$RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION export PEGASUS_ROOT=$RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION
 export PEGASUS_HOME=$RPM_BUILD_ROOT/usr/pegasus export PEGASUS_HOME=$RPM_BUILD_ROOT/usr/pegasus
 %ifarch ia64  %ifarch ia64 x86_64
 %define PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU %define PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU
 %else %else
   %ifarch ppc
   %define PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU
   %else
   %ifarch ppc64 pseries
   %define PEGASUS_HARDWARE_PLATFORM LINUX_PPC64_GNU
   %else
   %ifarch s390
   %define PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES_GNU
   export  PEGASUS_EXTRA_C_FLAGS="PEGASUS_EXTRA_C_FLAGS -fsigned-char"
   %else
   %ifarch s390x zseries
   %define PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES64_GNU
   export  PEGASUS_EXTRA_C_FLAGS="PEGASUS_EXTRA_C_FLAGS -fsigned-char"
   %else
 %define PEGASUS_HARDWARE_PLATFORM LINUX_IX86_GNU %define PEGASUS_HARDWARE_PLATFORM LINUX_IX86_GNU
 %endif %endif
   %endif
   %endif
   %endif
   %endif
 export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM
  
 export OPENSSL_HOME=/usr export OPENSSL_HOME=/usr
Line 161 
Line 185 
  
 # #
 # Programs # Programs
 install -D -m 0544  $PEGASUS_HOME/bin/cimauth   $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimauth  install -D -m 0744  $PEGASUS_HOME/bin/cimauth   $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimauth
 install -D -m 0544  $PEGASUS_HOME/bin/cimserver $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimserver  install -D -m 0744  $PEGASUS_HOME/bin/cimserver $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimserver
 install -D -m 0544  $PEGASUS_HOME/bin/cimservera $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimservera  install -D -m 0744  $PEGASUS_HOME/bin/cimservera $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimservera
 install -D -m 0544  $PEGASUS_HOME/bin/cimuser   $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimuser  install -D -m 0744  $PEGASUS_HOME/bin/cimuser   $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimuser
 install -D -m 0544  $PEGASUS_HOME/bin/cimconfig $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimconfig  install -D -m 0744  $PEGASUS_HOME/bin/cimconfig $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimconfig
 install -D -m 0544  $PEGASUS_HOME/bin/cimprovagt $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimprovagt  install -D -m 0744  $PEGASUS_HOME/bin/cimprovagt $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/cimprovagt
 install -D -m 0555  $PEGASUS_HOME/bin/cimmof    $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/cimmof  install -D -m 0755  $PEGASUS_HOME/bin/cimmof    $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/cimmof
 install -D -m 0555  $PEGASUS_HOME/bin/cimmofl   $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/cimmofl  install -D -m 0755  $PEGASUS_HOME/bin/cimmofl   $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/cimmofl
 install -D -m 0555  $PEGASUS_HOME/bin/cimprovider $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/cimprovider  install -D -m 0755  $PEGASUS_HOME/bin/cimprovider $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/cimprovider
 install -D -m 0555  $PEGASUS_HOME/bin/osinfo    $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/osinfo  install -D -m 0755  $PEGASUS_HOME/bin/osinfo    $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/osinfo
 install -D -m 0555  $PEGASUS_HOME/bin/wbemexec  $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/wbemexec  install -D -m 0755  $PEGASUS_HOME/bin/wbemexec  $RPM_BUILD_ROOT%PEGASUS_BIN_DIR/wbemexec
  
  
 # Libraries # Libraries
Line 376 
Line 400 
 echo "PEGASUS_BIN_DIR="%PEGASUS_BIN_DIR >> initrepository.in echo "PEGASUS_BIN_DIR="%PEGASUS_BIN_DIR >> initrepository.in
 echo "PEGASUS_CIM_SCHEMA=28" >> initrepository.in echo "PEGASUS_CIM_SCHEMA=28" >> initrepository.in
 cat initrepository.in $PEGASUS_ROOT/installs/scripts/init_repository > $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/init_repository cat initrepository.in $PEGASUS_ROOT/installs/scripts/init_repository > $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/init_repository
 chmod 0544 $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/init_repository  chmod 0744 $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/init_repository
  
 # #
 # script to add tog-pegasus paths to /etc/profile # script to add tog-pegasus paths to /etc/profile
 # #
 install -D -m 0544 %PEGASUS_INSTALL_SCRIPT_DIR/settogpath $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/settogpath  install -D -m 0744 %PEGASUS_INSTALL_SCRIPT_DIR/settogpath $RPM_BUILD_ROOT%PEGASUS_SBIN_DIR/settogpath
  
 # #
 # man pages # man pages
Line 515 
Line 539 
 install -D -m 0444 %PEGASUS_STAGING_DIR%PEGASUS_SAMPLES_DIR/Providers/Load/MethodProviderR.mof %SAMPLES_DEST_PATH/Providers/Load/MethodProviderR.mof install -D -m 0444 %PEGASUS_STAGING_DIR%PEGASUS_SAMPLES_DIR/Providers/Load/MethodProviderR.mof %SAMPLES_DEST_PATH/Providers/Load/MethodProviderR.mof
 install -D -m 0444 %PEGASUS_STAGING_DIR%PEGASUS_SAMPLES_DIR/Providers/Load/SampleProviderSchema.mof %SAMPLES_DEST_PATH/Providers/Load/SampleProviderSchema.mof install -D -m 0444 %PEGASUS_STAGING_DIR%PEGASUS_SAMPLES_DIR/Providers/Load/SampleProviderSchema.mof %SAMPLES_DEST_PATH/Providers/Load/SampleProviderSchema.mof
 install -D -m 0444 %PEGASUS_STAGING_DIR%PEGASUS_SAMPLES_DIR/Providers/Load/SimpleDisplayConsumerR.mof %SAMPLES_DEST_PATH/Providers/Load/SimpleDisplayConsumerR.mof install -D -m 0444 %PEGASUS_STAGING_DIR%PEGASUS_SAMPLES_DIR/Providers/Load/SimpleDisplayConsumerR.mof %SAMPLES_DEST_PATH/Providers/Load/SimpleDisplayConsumerR.mof
   
 cd $RPM_BUILD_ROOT cd $RPM_BUILD_ROOT
 rm -Rf $PEGASUS_HOME rm -Rf $PEGASUS_HOME
  
Line 546 
Line 569 
 fi fi
  
 %post %post
   if [ $1 -eq 1 ]; then
 mkdir -p %PEGASUS_LOG_DIR mkdir -p %PEGASUS_LOG_DIR
 %define INSTALL_LOG %PEGASUS_LOG_DIR/install.log %define INSTALL_LOG %PEGASUS_LOG_DIR/install.log
 echo `date` >%INSTALL_LOG 2>&1 echo `date` >%INSTALL_LOG 2>&1
Line 624 
Line 648 
 echo " Stop it:" echo " Stop it:"
 echo " /etc/init.d/tog-pegasus stop" echo " /etc/init.d/tog-pegasus stop"
 echo " To set up PATH and MANPATH in /etc/profile" echo " To set up PATH and MANPATH in /etc/profile"
 echo " run /opt/tog-pegasus/sbin/settogpath."  echo " run /opt/tog-pegasus/sbin/settogpath.";
   fi
  
 %preun %preun
   if [ $1 -eq 0 ]; then
 # Check if the cimserver is running # Check if the cimserver is running
 isRunning=`ps -el | grep cimserver | grep -v "grep cimserver"` isRunning=`ps -el | grep cimserver | grep -v "grep cimserver"`
 if [ "$isRunning" ]; then if [ "$isRunning" ]; then
         %PEGASUS_SBIN_DIR/cimserver -s         %PEGASUS_SBIN_DIR/cimserver -s
 fi fi
   
 # Delete the Link to the rc.* Startup Directories # Delete the Link to the rc.* Startup Directories
 /usr/lib/lsb/remove_initd /etc/init.d/tog-pegasus  /usr/lib/lsb/remove_initd /etc/init.d/tog-pegasus;
   fi
  
 %postun %postun
 if [ $1 = 0 ]; then  if [ $1 -eq 0 ]; then
         rm -rf %PEGASUS_VARDATA_DIR         rm -rf %PEGASUS_VARDATA_DIR
         rm -rf %PEGASUS_PROD_DIR         rm -rf %PEGASUS_PROD_DIR
         rm -rf %PEGASUS_CONFIG_DIR         rm -rf %PEGASUS_CONFIG_DIR
Line 797 
Line 822 
 %config %attr(-,root,root) %PEGASUS_VARDATA_DIR/%PEGASUS_PLANNED_CONFIG_FILE %config %attr(-,root,root) %PEGASUS_VARDATA_DIR/%PEGASUS_PLANNED_CONFIG_FILE
 %config %attr(-,root,root) /etc/init.d/tog-pegasus %config %attr(-,root,root) /etc/init.d/tog-pegasus
 %config %attr(-,root,root) %PAM_CONF/wbem %config %attr(-,root,root) %PAM_CONF/wbem
 %attr(-,root,root) %PEGASUS_SBIN_DIR/cimauth  %attr(0544,root,root) %PEGASUS_SBIN_DIR/cimauth
 %attr(-,root,root) %PEGASUS_SBIN_DIR/cimserver  %attr(0544,root,root) %PEGASUS_SBIN_DIR/cimserver
 %attr(-,root,root) %PEGASUS_SBIN_DIR/cimservera  %attr(0544,root,root) %PEGASUS_SBIN_DIR/cimservera
 %attr(-,root,root) %PEGASUS_SBIN_DIR/cimuser  %attr(0544,root,root) %PEGASUS_SBIN_DIR/cimuser
 %attr(-,root,root) %PEGASUS_SBIN_DIR/cimconfig  %attr(0544,root,root) %PEGASUS_SBIN_DIR/cimconfig
 %attr(-,root,root) %PEGASUS_SBIN_DIR/init_repository  %attr(0544,root,root) %PEGASUS_SBIN_DIR/init_repository
 %attr(-,root,root) %PEGASUS_SBIN_DIR/settogpath  %attr(0544,root,root) %PEGASUS_SBIN_DIR/settogpath
 %attr(-,root,root) %PEGASUS_SBIN_DIR/cimprovagt  %attr(0544,root,root) %PEGASUS_SBIN_DIR/cimprovagt
 %attr(-,root,root) %PEGASUS_BIN_DIR/cimmof  %attr(0555,root,root) %PEGASUS_BIN_DIR/cimmof
 %attr(-,root,root) %PEGASUS_BIN_DIR/cimmofl  %attr(0555,root,root) %PEGASUS_BIN_DIR/cimmofl
 %attr(-,root,root) %PEGASUS_BIN_DIR/cimprovider  %attr(0555,root,root) %PEGASUS_BIN_DIR/cimprovider
 %attr(-,root,root) %PEGASUS_BIN_DIR/osinfo  %attr(0555,root,root) %PEGASUS_BIN_DIR/osinfo
 %attr(-,root,root) %PEGASUS_BIN_DIR/wbemexec  %attr(0555,root,root) %PEGASUS_BIN_DIR/wbemexec
 %attr(-,root,root) %PEGASUS_DEST_LIB_DIR/libCIMxmlIndicationHandler.so.1 %attr(-,root,root) %PEGASUS_DEST_LIB_DIR/libCIMxmlIndicationHandler.so.1
 %attr(-,root,root) %PEGASUS_DEST_LIB_DIR/libConfigSettingProvider.so.1 %attr(-,root,root) %PEGASUS_DEST_LIB_DIR/libConfigSettingProvider.so.1
 %attr(-,root,root) %PEGASUS_DEST_LIB_DIR/libNamespaceProvider.so.1 %attr(-,root,root) %PEGASUS_DEST_LIB_DIR/libNamespaceProvider.so.1


Legend:
Removed from v.1.20.2.7  
changed lines
  Added in v.1.20.2.8

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2