(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.51 and 1.57

version 1.51, 2005/04/29 15:31:15 version 1.57, 2005/05/29 06:43:30
Line 42 
Line 42 
 %define srcRelease 1 %define srcRelease 1
 Version: 2.5Alpha1 Version: 2.5Alpha1
 Release: 1 Release: 1
   Epoch:   1
  
 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec
   %{?!PEGASUS_BUILD_TEST_RPM:   %define PEGASUS_BUILD_TEST_RPM        0}
   # do "rpmbuild --define 'PEGASUS_BUILD_TEST_RPM 1'" to build test RPM .
 Summary: OpenPegasus WBEM Services for Linux Summary: OpenPegasus WBEM Services for Linux
 Name: tog-pegasus Name: tog-pegasus
 Group: Systems Management/Base Group: Systems Management/Base
 Copyright: Open Group Pegasus Open Source  License: Open Group Pegasus Open Source
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
 Source: ftp://www.opengroup.org/pegasus/tog-pegasus-%{version}-%{srcRelease}.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
Line 78 
Line 81 
 %global PEGASUS_RPM_HOME $RPM_BUILD_ROOT/build/tog-pegasus %global PEGASUS_RPM_HOME $RPM_BUILD_ROOT/build/tog-pegasus
 %global PEGASUS_INSTALL_LOG /var/opt/tog-pegasus/log/install.log %global PEGASUS_INSTALL_LOG /var/opt/tog-pegasus/log/install.log
  
 %ifarch ia64 x86_64  %ifarch ia64
 %global PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU %global PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU
 %else %else
   %ifarch x86_64
   %global PEGASUS_HARDWARE_PLATFORM LINUX_X86_64_GNU
   %else
 %ifarch ppc %ifarch ppc
 %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU
 %else %else
Line 100 
Line 106 
 %endif %endif
 %endif %endif
  
   %endif
   
 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
 %package sdk %package sdk
 Summary: The OpenPegasus Software Development Kit Summary: The OpenPegasus Software Development Kit
Line 112 
Line 120 
 Services for Linux release. It provides Linux C++ developers with the WBEM files required to Services for Linux release. It provides Linux C++ developers with the WBEM files required to
 build WBEM Clients and Providers. It also supports C provider developers via the CMPI interface. build WBEM Clients and Providers. It also supports C provider developers via the CMPI interface.
  
   %if %{PEGASUS_BUILD_TEST_RPM}
 %package test %package test
 Summary: The OpenPegasus Tests Summary: The OpenPegasus Tests
 Group: Systems Management/Base Group: Systems Management/Base
Line 120 
Line 129 
  
 %description test %description test
 The OpenPegasus WBEM tests for the OpenPegasus %{version} Linux rpm. The OpenPegasus WBEM tests for the OpenPegasus %{version} Linux rpm.
   %endif
   
 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec # End of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
  
 %prep %prep
Line 167 
Line 178 
  
 export PEGASUS_STAGING_DIR=$RPM_BUILD_ROOT export PEGASUS_STAGING_DIR=$RPM_BUILD_ROOT
  
   %if %{PEGASUS_BUILD_TEST_RPM}
   make -f $PEGASUS_ROOT/Makefile.Release stage PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR PEGASUS_BUILD_TEST_RPM=%{PEGASUS_BUILD_TEST_RPM}
   %else
 make -f $PEGASUS_ROOT/Makefile.Release stage PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR make -f $PEGASUS_ROOT/Makefile.Release stage PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR
   %endif
 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec # End of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec
 [ "$PEGASUS_STAGING_DIR" != "/" ] && [ -d $PEGASUS_STAGING_DIR ] &&  [ -d $PEGASUS_STAGING_DIR%PEGASUS_PEM_DIR ] &&  rm -f $PEGASUS_STAGING_DIR/%PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE  $PEGASUS_STAGING_DIR/%PEGASUS_PEM_DIR/%PEGASUS_SSL_CERT_FILE  $PEGASUS_STAGING_DIR/%PEGASUS_PEM_DIR/%PEGASUS_SSL_KEY_FILE  $PEGASUS_STAGING_DIR/%PEGASUS_CONFIG_DIR/ssl.cnf; [ "$PEGASUS_STAGING_DIR" != "/" ] && [ -d $PEGASUS_STAGING_DIR ] &&  [ -d $PEGASUS_STAGING_DIR%PEGASUS_PEM_DIR ] &&  rm -f $PEGASUS_STAGING_DIR/%PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE  $PEGASUS_STAGING_DIR/%PEGASUS_PEM_DIR/%PEGASUS_SSL_CERT_FILE  $PEGASUS_STAGING_DIR/%PEGASUS_PEM_DIR/%PEGASUS_SSL_KEY_FILE  $PEGASUS_STAGING_DIR/%PEGASUS_CONFIG_DIR/ssl.cnf;
 [ "$PEGASUS_HOME" != "/" ] && [ -d $PEGASUS_HOME ] && rm -rf $PEGASUS_HOME; [ "$PEGASUS_HOME" != "/" ] && [ -d $PEGASUS_HOME ] && rm -rf $PEGASUS_HOME;
Line 276 
Line 291 
        cp %PEGASUS_PEM_DIR/truststore-2048.pem %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE        cp %PEGASUS_PEM_DIR/truststore-2048.pem %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE
        chmod 444 %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE        chmod 444 %PEGASUS_PEM_DIR/%PEGASUS_SSL_TRUSTSTORE
    fi    fi
      if [[ -d %PEGASUS_PREV_REPOSITORY_DIR ]]
      then
        # Running Repository Upgrade utility
        %PEGASUS_SBIN_DIR/repupgrade %PEGASUS_PREV_REPOSITORY_DIR %PEGASUS_REPOSITORY_DIR 2>>%PEGASUS_INSTALL_LOG
      fi
   
  
    /usr/lib/lsb/install_initd /etc/init.d/tog-pegasus    /usr/lib/lsb/install_initd /etc/init.d/tog-pegasus
  
Line 287 
Line 308 
    echo " run /opt/tog-pegasus/sbin/settogpath."    echo " run /opt/tog-pegasus/sbin/settogpath."
 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec # End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
  
   elif [ $1 -gt 1 ]; then
   /sbin/service tog-pegasus condrestart
   :;
 fi fi
 %preun %preun
 if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
Line 294 
Line 318 
    isRunning=`ps -el | grep cimserver | grep -v "grep cimserver"`    isRunning=`ps -el | grep cimserver | grep -v "grep cimserver"`
    if [ "$isRunning" ]; then    if [ "$isRunning" ]; then
       /opt/tog-pegasus/sbin/cimserver -s       /opt/tog-pegasus/sbin/cimserver -s
      fi
    [ -f /var/opt/tog-pegasus/cimserver_current.conf ] &&  rm /var/opt/tog-pegasus/cimserver_current.conf;    [ -f /var/opt/tog-pegasus/cimserver_current.conf ] &&  rm /var/opt/tog-pegasus/cimserver_current.conf;
    [ -f %PEGASUS_INSTALL_LOG ] && rm %PEGASUS_INSTALL_LOG;    [ -f %PEGASUS_INSTALL_LOG ] && rm %PEGASUS_INSTALL_LOG;
    [ -d /var/opt/tog-pegasus/repository ] && rm -rf /var/opt/tog-pegasus/repository;    [ -d /var/opt/tog-pegasus/repository ] && rm -rf /var/opt/tog-pegasus/repository;
    [ -d /var/opt/tog-pegasus/cache ] && rm -rf /var/opt/tog-pegasus/cache;    [ -d /var/opt/tog-pegasus/cache ] && rm -rf /var/opt/tog-pegasus/cache;
    rm -f /var/run/tog-pegasus/socket/cimxml.socket;    rm -f /var/run/tog-pegasus/socket/cimxml.socket;
    rm -f /var/run/tog-pegasus/cimserver.pid    rm -f /var/run/tog-pegasus/cimserver.pid
    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 fi
Line 308 
Line 332 
 %preun sdk %preun sdk
 make --directory /opt/tog-pegasus/samples -s clean make --directory /opt/tog-pegasus/samples -s clean
  
   %if %{PEGASUS_BUILD_TEST_RPM}
 %preun test %preun test
 make --directory /opt/tog-pegasus/test -s unsetupTEST make --directory /opt/tog-pegasus/test -s unsetupTEST
 [ -d /var/opt/tog-pegasus/testrepository ] &&  rm -rf /var/opt/tog-pegasus/testrepository; [ -d /var/opt/tog-pegasus/testrepository ] &&  rm -rf /var/opt/tog-pegasus/testrepository;
  
   %endif
 %postun %postun
 if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
    [ -f %PEGASUS_PEM_DIR/key-2048.pem ] && rm %PEGASUS_PEM_DIR/key-2048.pem;    [ -f %PEGASUS_PEM_DIR/key-2048.pem ] && rm %PEGASUS_PEM_DIR/key-2048.pem;
Line 496 
Line 522 
 %attr(500,root ,root) /opt/tog-pegasus/sbin/cimuser %attr(500,root ,root) /opt/tog-pegasus/sbin/cimuser
 %attr(500,root ,root) /opt/tog-pegasus/sbin/cimprovagt %attr(500,root ,root) /opt/tog-pegasus/sbin/cimprovagt
 %attr(500,root ,root) /opt/tog-pegasus/sbin/cimservera %attr(500,root ,root) /opt/tog-pegasus/sbin/cimservera
   %attr(500,root ,root) /opt/tog-pegasus/sbin/repupgrade
 %attr(500,root ,root) /opt/tog-pegasus/sbin/init_repository %attr(500,root ,root) /opt/tog-pegasus/sbin/init_repository
 %attr(500,root ,root) /opt/tog-pegasus/sbin/settogpath %attr(500,root ,root) /opt/tog-pegasus/sbin/settogpath
  
Line 683 
Line 710 
 # #
 %attr(-,root ,root) /opt/tog-pegasus/html %attr(-,root ,root) /opt/tog-pegasus/html
  
   %if %{PEGASUS_BUILD_TEST_RPM}
 %files test %files test
  
 # Test Files # Test Files
Line 735 
Line 763 
 %attr(444,root ,root) /opt/tog-pegasus/test/Makefile %attr(444,root ,root) /opt/tog-pegasus/test/Makefile
 %attr(-,root,root) /var/opt/tog-pegasus/testrepository %attr(-,root,root) /var/opt/tog-pegasus/testrepository
  
   %endif


Legend:
Removed from v.1.51  
changed lines
  Added in v.1.57

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2