version 1.119, 2008/12/16 18:55:38
|
version 1.119.2.4, 2010/07/22 06:13:07
|
|
|
# | # |
| |
%define packageVersion 1 | %define packageVersion 1 |
Version: 2.9.0 |
Version: 2.9.2 |
Release: %{packageVersion}%{?LINUX_VERSION:.%{LINUX_VERSION}} | Release: %{packageVersion}%{?LINUX_VERSION:.%{LINUX_VERSION}} |
Epoch: 1 | Epoch: 1 |
| |
|
|
# (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 |
|
|
%PEGASUS_SBIN_DIR/cimserver -s | %PEGASUS_SBIN_DIR/cimserver -s |
fi | fi |
/sbin/chkconfig --del tog-pegasus; | /sbin/chkconfig --del tog-pegasus; |
rm -f %PEGASUS_VARDATA_DIR/cimserver_current.conf; |
rm -f %PEGASUS_CONFIG_DIR/cimserver_current.conf; |
[ -d %PEGASUS_REPOSITORY_DIR ] && rm -rf %PEGASUS_REPOSITORY_DIR; | [ -d %PEGASUS_REPOSITORY_DIR ] && rm -rf %PEGASUS_REPOSITORY_DIR; |
[ -d %PEGASUS_VARDATA_CACHE_DIR ] && rm -rf %PEGASUS_VARDATA_CACHE_DIR; | [ -d %PEGASUS_VARDATA_CACHE_DIR ] && rm -rf %PEGASUS_VARDATA_CACHE_DIR; |
rm -f %PEGASUS_LOCAL_DOMAIN_SOCKET_PATH; | rm -f %PEGASUS_LOCAL_DOMAIN_SOCKET_PATH; |
|
|
%dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace | %dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace |
| |
%config %attr(750,root,pegasus) /etc/init.d/tog-pegasus | %config %attr(750,root,pegasus) /etc/init.d/tog-pegasus |
%config(noreplace) %attr(644,root,root) /var/lib/Pegasus/cimserver_planned.conf |
%config(noreplace) %attr(644,root,root) /etc/Pegasus/cimserver_planned.conf |
%config(noreplace) /etc/Pegasus/access.conf | %config(noreplace) /etc/Pegasus/access.conf |
%config(noreplace) /etc/pam.d/wbem | %config(noreplace) /etc/pam.d/wbem |
| |
|
|
/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 |