version 1.106, 2007/10/05 18:46:43
|
version 1.114, 2008/11/10 22:52:17
|
|
|
# be lost the next time this file is regenerated and submitted to CVS. | # be lost the next time this file is regenerated and submitted to CVS. |
# | # |
| |
%define packageVersion 2 |
%define packageVersion 1 |
Version: 2.7.0 |
Version: 2.9.0 |
Release: %{packageVersion}%{?LINUX_VERSION:.%{LINUX_VERSION}} | Release: %{packageVersion}%{?LINUX_VERSION:.%{LINUX_VERSION}} |
Epoch: 1 | Epoch: 1 |
| |
|
|
%global PEGASUS_REPOSITORY_PARENT_DIR /var/lib/Pegasus | %global PEGASUS_REPOSITORY_PARENT_DIR /var/lib/Pegasus |
%global PEGASUS_PREV_REPOSITORY_DIR /var/lib/Pegasus/prev_repository | %global PEGASUS_PREV_REPOSITORY_DIR /var/lib/Pegasus/prev_repository |
%global PEGASUS_SBIN_DIR /usr/sbin | %global PEGASUS_SBIN_DIR /usr/sbin |
%global PEGASUS_DOC_DIR /usr/share/doc/tog-pegasus-2.7 |
%global PEGASUS_DOC_DIR /usr/share/doc/tog-pegasus-2.9 |
| |
%global PEGASUS_RPM_ROOT $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION | %global PEGASUS_RPM_ROOT $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION |
%global PEGASUS_RPM_HOME %PEGASUS_RPM_ROOT/build | %global PEGASUS_RPM_HOME %PEGASUS_RPM_ROOT/build |
|
|
#export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS -g -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack" | #export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS -g -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack" |
| |
%if %{PEGASUS_BUILD_TEST_RPM} | %if %{PEGASUS_BUILD_TEST_RPM} |
export PEGASUS_DISPLAYCONSUMER_DIR=%PEGASUS_VARDATA_DIR/log |
export PEGASUS_TMP=/usr/share/Pegasus/test/tmp |
|
export PEGASUS_DISPLAYCONSUMER_DIR="$PEGASUS_TMP" |
%endif | %endif |
| |
make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile | make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile |
|
|
ln -sf libpegprovider.so.1 /usr/%PEGASUS_ARCH_LIB/libpegprovider.so | ln -sf libpegprovider.so.1 /usr/%PEGASUS_ARCH_LIB/libpegprovider.so |
ln -sf libDefaultProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/libDefaultProviderManager.so | ln -sf libDefaultProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/libDefaultProviderManager.so |
ln -sf libCIMxmlIndicationHandler.so.1 /usr/%PEGASUS_ARCH_LIB/libCIMxmlIndicationHandler.so | ln -sf libCIMxmlIndicationHandler.so.1 /usr/%PEGASUS_ARCH_LIB/libCIMxmlIndicationHandler.so |
ln -sf libCMPIProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/libCMPIProviderManager.so |
|
ln -sf libsnmpIndicationHandler.so.1 /usr/%PEGASUS_ARCH_LIB/libsnmpIndicationHandler.so | ln -sf libsnmpIndicationHandler.so.1 /usr/%PEGASUS_ARCH_LIB/libsnmpIndicationHandler.so |
| |
# Create Symbolic Links for Packaged Provider Libraries | # Create Symbolic Links for Packaged Provider Libraries |
|
|
ln -sf libOSProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libOSProvider.so | ln -sf libOSProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libOSProvider.so |
ln -sf libProcessProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libProcessProvider.so | ln -sf libProcessProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libProcessProvider.so |
| |
|
# Create Symbolic Links for Packaged Provider Managers |
|
# |
|
ln -sf libCMPIProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers/libCMPIProviderManager.so |
|
|
| |
# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec | # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec |
# | # |
|
|
fi | fi |
/sbin/chkconfig --del tog-pegasus; | /sbin/chkconfig --del tog-pegasus; |
rm -f %PEGASUS_VARDATA_DIR/cimserver_current.conf; | rm -f %PEGASUS_VARDATA_DIR/cimserver_current.conf; |
rm -f %PEGASUS_INSTALL_LOG; |
|
[ -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; |
|
|
%files | %files |
%defattr(600, cimsrvr, cimsrvr, 700) | %defattr(600, cimsrvr, cimsrvr, 700) |
/var/lib/Pegasus/repository | /var/lib/Pegasus/repository |
|
|
|
%defattr(644,root,pegasus,755) |
|
/usr/share/Pegasus/mof |
|
|
%defattr(600, root, pegasus, 755) | %defattr(600, root, pegasus, 755) |
%dir /usr/share/doc/tog-pegasus-2.7 |
%dir /usr/share/doc/tog-pegasus-2.9 |
%dir /usr/share/Pegasus | %dir /usr/share/Pegasus |
%dir /usr/share/Pegasus/scripts | %dir /usr/share/Pegasus/scripts |
%dir /usr/share/Pegasus/mof |
|
%dir /usr/share/Pegasus/mof/Pegasus |
|
%dir /var/lib/Pegasus | %dir /var/lib/Pegasus |
%dir /var/lib/Pegasus/cache | %dir /var/lib/Pegasus/cache |
%dir /var/lib/Pegasus/log | %dir /var/lib/Pegasus/log |
%dir /var/lib/Pegasus/cache/localauth | %dir /var/lib/Pegasus/cache/localauth |
%dir /usr/%PEGASUS_ARCH_LIB/Pegasus | %dir /usr/%PEGASUS_ARCH_LIB/Pegasus |
%dir /usr/%PEGASUS_ARCH_LIB/Pegasus/providers | %dir /usr/%PEGASUS_ARCH_LIB/Pegasus/providers |
|
%dir /usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers |
| |
%dir %attr(755, root, pegasus) /etc/Pegasus | %dir %attr(755, root, pegasus) /etc/Pegasus |
%dir %attr(755, cimsrvr, cimsrvr) /var/run/tog-pegasus | %dir %attr(755, cimsrvr, cimsrvr) /var/run/tog-pegasus |
%dir %attr(1755,cimsrvr,cimsrvr) /var/run/tog-pegasus/socket | %dir %attr(1755,cimsrvr,cimsrvr) /var/run/tog-pegasus/socket |
%dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace | %dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace |
| |
/usr/share/Pegasus/mof/Pegasus/* |
|
|
|
%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, pegasus) /var/lib/Pegasus/cimserver_planned.conf |
%config(noreplace) %attr(644,root,root) /var/lib/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 |
| |
|
|
%attr(755,root,pegasus) /usr/bin/* | %attr(755,root,pegasus) /usr/bin/* |
%attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/*.so.1 | %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/*.so.1 |
%attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so.1 | %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so.1 |
|
%attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers/*.so.1 |
%attr(750,root,pegasus) /usr/share/Pegasus/scripts/* | %attr(750,root,pegasus) /usr/share/Pegasus/scripts/* |
%attr(644,root,pegasus) /usr/share/man/man1/* | %attr(644,root,pegasus) /usr/share/man/man1/* |
%attr(644,root,pegasus) /usr/share/man/man8/* | %attr(644,root,pegasus) /usr/share/man/man8/* |
| |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.7/Admin_Guide_Release.pdf |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.9/Admin_Guide_Release.pdf |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.7/PegasusSSLGuidelines.htm |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.9/PegasusSSLGuidelines.htm |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.7/license.txt |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.9/license.txt |
/usr/%PEGASUS_ARCH_LIB/libpegclient.so | /usr/%PEGASUS_ARCH_LIB/libpegclient.so |
/usr/%PEGASUS_ARCH_LIB/libpegcommon.so | /usr/%PEGASUS_ARCH_LIB/libpegcommon.so |
/usr/%PEGASUS_ARCH_LIB/libpegprovider.so | /usr/%PEGASUS_ARCH_LIB/libpegprovider.so |
/usr/%PEGASUS_ARCH_LIB/libDefaultProviderManager.so | /usr/%PEGASUS_ARCH_LIB/libDefaultProviderManager.so |
/usr/%PEGASUS_ARCH_LIB/libCIMxmlIndicationHandler.so | /usr/%PEGASUS_ARCH_LIB/libCIMxmlIndicationHandler.so |
/usr/%PEGASUS_ARCH_LIB/libCMPIProviderManager.so |
|
/usr/%PEGASUS_ARCH_LIB/libsnmpIndicationHandler.so | /usr/%PEGASUS_ARCH_LIB/libsnmpIndicationHandler.so |
/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 |
|
/usr/%PEGASUS_ARCH_LIB/Pegasus/providerManagers/libCMPIProviderManager.so |
| |
%files devel | %files devel |
%defattr(644,root,pegasus,755) | %defattr(644,root,pegasus,755) |
/usr/share/Pegasus/samples | /usr/share/Pegasus/samples |
/usr/include/Pegasus | /usr/include/Pegasus |
/usr/share/doc/tog-pegasus-2.7/* |
/usr/share/doc/tog-pegasus-2.9/* |
/usr/share/Pegasus/html | /usr/share/Pegasus/html |
%attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so |
|
| |
%if %{PEGASUS_BUILD_TEST_RPM} | %if %{PEGASUS_BUILD_TEST_RPM} |
%files test | %files test |
%defattr(-,root,pegasus,-) | %defattr(-,root,pegasus,-) |
/usr/share/Pegasus/test |
|
|
%dir /usr/share/Pegasus/test |
|
%dir /usr/share/Pegasus/test/bin |
|
%dir /usr/share/Pegasus/test/%PEGASUS_ARCH_LIB |
|
%dir /usr/share/Pegasus/test/mak |
|
%dir /usr/share/Pegasus/test/tmp |
|
|
|
%ghost /usr/share/Pegasus/test/tmp/procIdFile |
|
%ghost /usr/share/Pegasus/test/tmp/trapLogFile |
|
%ghost /usr/share/Pegasus/test/tmp/IndicationStressTestLog |
|
%ghost /usr/share/Pegasus/test/tmp/oldIndicationStressTestLog |
|
|
|
%attr(744,root,pegasus) /usr/share/Pegasus/test/bin/* |
|
%attr(744,root,pegasus) /usr/share/Pegasus/test/%PEGASUS_ARCH_LIB/* |
|
%attr(744,root,pegasus) /usr/share/Pegasus/test/mak/* |
|
%attr(644,root,pegasus) /usr/share/Pegasus/test/Makefile |
|
|
%defattr(600,cimsrvr, cimsrvr,700) | %defattr(600,cimsrvr, cimsrvr,700) |
/var/lib/Pegasus/testrepository | /var/lib/Pegasus/testrepository |
%endif | %endif |