version 1.119.2.2, 2009/09/18 15:00:28
|
version 1.119.2.3, 2010/07/09 11:34:43
|
|
|
# (chkconfig --level=345 tog-pegasus on) after installation. | # (chkconfig --level=345 tog-pegasus on) after installation. |
# | # |
| |
|
# Use "rpmbuild --define 'EXTERNAL_SLP_REQUESTED 1'" to include External SLP support. |
|
%{?!EXTERNAL_SLP_REQUESTED: %define EXTERNAL_SLP_REQUESTED 0} |
|
|
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 |
|
|
BuildRequires: bash, sed, grep, coreutils, procps, gcc, gcc-c++ | BuildRequires: bash, sed, grep, coreutils, procps, gcc, gcc-c++ |
BuildRequires: libstdc++, make, pam-devel | BuildRequires: libstdc++, make, pam-devel |
BuildRequires: openssl-devel >= 0.9.6, e2fsprogs | BuildRequires: openssl-devel >= 0.9.6, e2fsprogs |
|
%if %{EXTERNAL_SLP_REQUESTED} |
|
BuildRequires: openslp |
|
Requires: openslp |
|
%endif |
|
|
BuildRequires: net-snmp-devel | BuildRequires: net-snmp-devel |
# | # |
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-buildRequires.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-buildRequires.spec |
|
|
export PEGASUS_DISPLAYCONSUMER_DIR="$PEGASUS_TMP" | export PEGASUS_DISPLAYCONSUMER_DIR="$PEGASUS_TMP" |
%endif | %endif |
| |
|
%if %{EXTERNAL_SLP_REQUESTED} |
|
sed -i 's/PEGASUS_ENABLE_SLP=.*$/PEGASUS_ENABLE_SLP=true/' $PEGASUS_ENVVAR_FILE |
|
%else |
|
sed -i 's/PEGASUS_ENABLE_SLP=.*$/PEGASUS_ENABLE_SLP=false/' $PEGASUS_ENVVAR_FILE |
|
%endif |
|
|
make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile | make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile |
make -f $PEGASUS_ROOT/Makefile.Release create_CommonProductDirectoriesInclude | make -f $PEGASUS_ROOT/Makefile.Release create_CommonProductDirectoriesInclude |
make -f $PEGASUS_ROOT/Makefile.Release create_ConfigProductDirectoriesInclude | make -f $PEGASUS_ROOT/Makefile.Release create_ConfigProductDirectoriesInclude |
|
|
# Create Symbolic Links for Packaged Provider Managers | # Create Symbolic Links for Packaged Provider Managers |
# | # |
ln -sf libCMPIProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers/libCMPIProviderManager.so | ln -sf libCMPIProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers/libCMPIProviderManager.so |
|
# Create Symbolic Links for SLP library and SLP Provider |
|
# |
|
%if %{EXTERNAL_SLP_REQUESTED} |
|
ln -sf libpegslp_client.so.1 /usr/%PEGASUS_ARCH_LIB/libpegslp_client.so |
|
ln -sf libSLPProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libSLPProvider.so |
|
%endif |
| |
| |
# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec | # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec |
|
|
/usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libComputerSystemProvider.so | /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libComputerSystemProvider.so |
/usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libOSProvider.so | /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libOSProvider.so |
/usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libProcessProvider.so | /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libProcessProvider.so |
|
%if %{EXTERNAL_SLP_REQUESTED} |
|
/usr/%PEGASUS_ARCH_LIB/libpegslp_client.so |
|
/usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libSLPProvider.so |
|
%endif |
/usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers/libCMPIProviderManager.so | /usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers/libCMPIProviderManager.so |
| |
%files devel | %files devel |