version 1.10, 2004/09/01 19:55:08
|
version 1.11, 2004/09/02 19:45:53
|
|
|
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 |
export PEGASUS_PLATFORM=LINUX_IA64_GNU |
%define PEGASUS_PLATFORM LINUX_IA64_GNU |
%else | %else |
export PEGASUS_PLATFORM=LINUX_IX86_GNU |
%define PEGASUS_PLATFORM LINUX_IX86_GNU |
%endif | %endif |
|
export PEGASUS_PLATFORM=%PEGASUS_PLATFORM |
| |
export OPENSSL_HOME=/usr | export OPENSSL_HOME=/usr |
export PEGASUS_HAS_SSL=yes | export PEGASUS_HAS_SSL=yes |
|
|
make -f SDKMakefile stageSDK | make -f SDKMakefile stageSDK |
| |
%install | %install |
%define PEGASUS_PLATFORM $PEGASUS_PLATFORM |
|
%define PEGASUS_PROD_DIR /opt/tog-pegasus | %define PEGASUS_PROD_DIR /opt/tog-pegasus |
%define PEGASUS_DEST_LIB_DIR %PEGASUS_PROD_DIR/lib | %define PEGASUS_DEST_LIB_DIR %PEGASUS_PROD_DIR/lib |
%define PEGASUS_PROVIDER_DIR %PEGASUS_PROD_DIR/providers | %define PEGASUS_PROVIDER_DIR %PEGASUS_PROD_DIR/providers |
|
|
install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/Linkage.h %INCLUDE_DEST_PATH/Pegasus/Common/Linkage.h | install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/Linkage.h %INCLUDE_DEST_PATH/Pegasus/Common/Linkage.h |
install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/MessageLoader.h %INCLUDE_DEST_PATH/Pegasus/Common/MessageLoader.h | install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/MessageLoader.h %INCLUDE_DEST_PATH/Pegasus/Common/MessageLoader.h |
install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/OperationContext.h %INCLUDE_DEST_PATH/Pegasus/Common/OperationContext.h | install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/OperationContext.h %INCLUDE_DEST_PATH/Pegasus/Common/OperationContext.h |
%ifarch ia64 |
install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/Platform_%PEGASUS_PLATFORM.h %INCLUDE_DEST_PATH/Pegasus/Common/Platform_%PEGASUS_PLATFORM.h |
install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/Platform_LINUX_IA64_GNU.h %INCLUDE_DEST_PATH/Pegasus/Common/Platform_LINUX_IA64_GNU.h |
|
%else |
|
install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/Platform_LINUX_IX86_GNU.h %INCLUDE_DEST_PATH/Pegasus/Common/Platform_LINUX_IX86_GNU.h |
|
%endif |
|
install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/ResponseHandler.h %INCLUDE_DEST_PATH/Pegasus/Common/ResponseHandler.h | install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/ResponseHandler.h %INCLUDE_DEST_PATH/Pegasus/Common/ResponseHandler.h |
install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/SSLContext.h %INCLUDE_DEST_PATH/Pegasus/Common/SSLContext.h | install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/SSLContext.h %INCLUDE_DEST_PATH/Pegasus/Common/SSLContext.h |
install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/String.h %INCLUDE_DEST_PATH/Pegasus/Common/String.h | install -D -m 0444 %SDK_STAGE_LOC/include/Pegasus/Common/String.h %INCLUDE_DEST_PATH/Pegasus/Common/String.h |
|
|
echo "PEGASUS_DEST_LIB_DIR = "%PEGASUS_DEST_LIB_DIR > sampleconfig.txt | echo "PEGASUS_DEST_LIB_DIR = "%PEGASUS_DEST_LIB_DIR > sampleconfig.txt |
echo "PEGASUS_VARDATA_DIR = "%PEGASUS_VARDATA_DIR >> sampleconfig.txt | echo "PEGASUS_VARDATA_DIR = "%PEGASUS_VARDATA_DIR >> sampleconfig.txt |
echo "PEGASUS_PROVIDER_LIB_DIR="%PEGASUS_PROVIDER_LIB_DIR >> sampleconfig.txt | echo "PEGASUS_PROVIDER_LIB_DIR="%PEGASUS_PROVIDER_LIB_DIR >> sampleconfig.txt |
echo "CIM_MOF_PATH = "%PEGASUS_MOF_DIR>> sampleconfig.txt |
echo "PEGASUS_MOF_DIR = "%PEGASUS_MOF_DIR>> sampleconfig.txt |
echo "PEGASUS_INCLUDE_DIR = "%PEGASUS_INCLUDE_DEST_PATH >> sampleconfig.txt | echo "PEGASUS_INCLUDE_DIR = "%PEGASUS_INCLUDE_DEST_PATH >> sampleconfig.txt |
echo "SAMPLES_DIR = "%PEGASUS_SAMPLES_DEST_PATH >> sampleconfig.txt |
echo "PEGASUS_SAMPLES_DIR = "%PEGASUS_SAMPLES_DEST_PATH >> sampleconfig.txt |
echo "PEGASUS_BIN_DIR = "%PEGASUS_BIN_DIR >> sampleconfig.txt | echo "PEGASUS_BIN_DIR = "%PEGASUS_BIN_DIR >> sampleconfig.txt |
echo "PEGASUS_PLATFORM = "%PEGASUS_PLATFORM >> sampleconfig.txt | echo "PEGASUS_PLATFORM = "%PEGASUS_PLATFORM >> sampleconfig.txt |
cat sampleconfig.txt %SDK_STAGE_LOC/samples/mak/config.mak > sampleconfig.mak | cat sampleconfig.txt %SDK_STAGE_LOC/samples/mak/config.mak > sampleconfig.mak |
|
|
%attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/Linkage.h | %attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/Linkage.h |
%attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/MessageLoader.h | %attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/MessageLoader.h |
%attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/OperationContext.h | %attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/OperationContext.h |
%ifarch ia64 |
%attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/Platform_%PEGASUS_PLATFORM.h |
%attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/Platform_LINUX_IA64_GNU.h |
|
%else |
|
%attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/Platform_LINUX_IX86_GNU.h |
|
%endif |
|
%attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/ResponseHandler.h | %attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/ResponseHandler.h |
%attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/SSLContext.h | %attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/SSLContext.h |
%attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/String.h | %attr(-,root,root) %PEGASUS_INCLUDE_DEST_PATH/Pegasus/Common/String.h |
|
|
%attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/common.mak | %attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/common.mak |
%attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/config.mak | %attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/config.mak |
%attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/library.mak | %attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/library.mak |
%ifarch ia64 |
%attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/%PEGASUS_PLATFORM.mak |
%attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/LINUX_IA64_GNU.mak |
|
%else |
|
%attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/LINUX_IX86_GNU.mak |
|
%endif |
|
%attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/program.mak | %attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/program.mak |
%attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/recurse.mak | %attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/mak/recurse.mak |
%attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/Clients/Makefile | %attr(-,root,root) %PEGASUS_SAMPLES_DEST_PATH/Clients/Makefile |