version 1.75, 2005/11/29 20:06:04
|
version 1.76, 2005/12/10 01:58:29
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
URL: http://www.openpegasus.org | URL: http://www.openpegasus.org |
| |
Source: ftp://www.opengroup.org/pegasus/%{name}-%{version}-%{srcRelease}.tar.gz |
Source: %{name}-%{version}-%{srcRelease}.tar.gz |
| |
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 |
|
|
| |
%global OPENSSL_HOME /usr/include/openssl | %global OPENSSL_HOME /usr/include/openssl |
%global OPENSSL_BIN /usr/bin | %global OPENSSL_BIN /usr/bin |
%global PEGASUS_PEM_DIR /etc/opt/tog-pegasus |
%global PEGASUS_PEM_DIR /etc/Pegasus |
%global PEGASUS_SSL_CERT_FILE server.pem | %global PEGASUS_SSL_CERT_FILE server.pem |
%global PEGASUS_SSL_KEY_FILE file.pem | %global PEGASUS_SSL_KEY_FILE file.pem |
%global PEGASUS_SSL_TRUSTSTORE client.pem | %global PEGASUS_SSL_TRUSTSTORE client.pem |
%global PAM_CONFIG_DIR /etc/pam.d | %global PAM_CONFIG_DIR /etc/pam.d |
%global PEGASUS_CONFIG_DIR /etc/opt/tog-pegasus |
%global PEGASUS_CONFIG_DIR /etc/Pegasus |
%global PEGASUS_VARDATA_DIR /var/opt/tog-pegasus |
%global PEGASUS_VARDATA_DIR /var/lib/Pegasus |
%global PEGASUS_VARDATA_CACHE_DIR /var/opt/tog-pegasus/cache |
%global PEGASUS_VARDATA_CACHE_DIR /var/lib/Pegasus/cache |
%global PEGASUS_LOCAL_DOMAIN_SOCKET_PATH /var/run/tog-pegasus/socket/cimxml.socket | %global PEGASUS_LOCAL_DOMAIN_SOCKET_PATH /var/run/tog-pegasus/socket/cimxml.socket |
%global PEGASUS_CIMSERVER_START_FILE /var/run/tog-pegasus/cimserver.pid | %global PEGASUS_CIMSERVER_START_FILE /var/run/tog-pegasus/cimserver.pid |
%global PEGASUS_REPOSITORY_DIR /var/opt/tog-pegasus/repository |
%global PEGASUS_REPOSITORY_DIR /var/lib/Pegasus/repository |
%global PEGASUS_PREV_REPOSITORY_DIR_NAME prev_repository | %global PEGASUS_PREV_REPOSITORY_DIR_NAME prev_repository |
%global PEGASUS_REPOSITORY_PARENT_DIR /var/opt/tog-pegasus |
%global PEGASUS_REPOSITORY_PARENT_DIR /var/lib/Pegasus |
%global PEGASUS_PREV_REPOSITORY_DIR /var/opt/tog-pegasus/prev_repository |
%global PEGASUS_PREV_REPOSITORY_DIR /var/lib/Pegasus/prev_repository |
%global PEGASUS_SBIN_DIR /opt/tog-pegasus/sbin |
%global PEGASUS_SBIN_DIR /usr/sbin |
%global PEGASUS_DOC_DIR /opt/tog-pegasus/share/doc |
%global PEGASUS_DOC_DIR /usr/share/doc/tog-pegasus-2.5 |
| |
%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 $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/lib/Pegasus/log/install.log |
| |
# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec | # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec |
# | # |
|
|
#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" |
| |
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_ConfigProductDirectoriesInclude |
make -f $PEGASUS_ROOT/Makefile.Release all | make -f $PEGASUS_ROOT/Makefile.Release all |
make -f $PEGASUS_ROOT/Makefile.Release repository | make -f $PEGASUS_ROOT/Makefile.Release repository |
# | # |
|
|
%post | %post |
if [ $1 -eq 1 ]; then | if [ $1 -eq 1 ]; then |
echo `date` > %PEGASUS_INSTALL_LOG 2>&1 | echo `date` > %PEGASUS_INSTALL_LOG 2>&1 |
%define PEGASUS_CONFIG_DIR /etc/opt/tog-pegasus |
%define PEGASUS_CONFIG_DIR /etc/Pegasus |
%define PEGASUS_PEM_DIR /etc/opt/tog-pegasus |
%define PEGASUS_PEM_DIR /etc/Pegasus |
%define PEGASUS_SSL_CERT_FILE server.pem | %define PEGASUS_SSL_CERT_FILE server.pem |
%define PEGASUS_SSL_KEY_FILE file.pem | %define PEGASUS_SSL_KEY_FILE file.pem |
%define PEGASUS_SSL_TRUSTSTORE client.pem | %define PEGASUS_SSL_TRUSTSTORE client.pem |
| |
# Create Symbolic Links for SDK Libraries | # Create Symbolic Links for SDK Libraries |
# | # |
ln -sf libpegclient.so.1 /opt/tog-pegasus/lib/libpegclient.so |
ln -sf libpegclient.so.1 /usr/lib/libpegclient.so |
ln -sf libpegcommon.so.1 /opt/tog-pegasus/lib/libpegcommon.so |
ln -sf libpegcommon.so.1 /usr/lib/libpegcommon.so |
ln -sf libpegprovider.so.1 /opt/tog-pegasus/lib/libpegprovider.so |
ln -sf libpegprovider.so.1 /usr/lib/libpegprovider.so |
ln -sf libDefaultProviderManager.so.1 /opt/tog-pegasus/lib/libDefaultProviderManager.so |
ln -sf libDefaultProviderManager.so.1 /usr/lib/libDefaultProviderManager.so |
ln -sf libCIMxmlIndicationHandler.so.1 /opt/tog-pegasus/lib/libCIMxmlIndicationHandler.so |
ln -sf libCIMxmlIndicationHandler.so.1 /usr/lib/libCIMxmlIndicationHandler.so |
ln -sf libCMPIProviderManager.so.1 /opt/tog-pegasus/lib/libCMPIProviderManager.so |
ln -sf libCMPIProviderManager.so.1 /usr/lib/libCMPIProviderManager.so |
| |
# Create Symbolic Links for Packaged Provider Libraries | # Create Symbolic Links for Packaged Provider Libraries |
# | # |
ln -sf libComputerSystemProvider.so.1 /opt/tog-pegasus/providers/lib/libComputerSystemProvider.so |
ln -sf libComputerSystemProvider.so.1 /usr/lib/Pegasus/providers/libComputerSystemProvider.so |
ln -sf libOSProvider.so.1 /opt/tog-pegasus/providers/lib/libOSProvider.so |
ln -sf libOSProvider.so.1 /usr/lib/Pegasus/providers/libOSProvider.so |
ln -sf libProcessProvider.so.1 /opt/tog-pegasus/providers/lib/libProcessProvider.so |
ln -sf libProcessProvider.so.1 /usr/lib/Pegasus/providers/libProcessProvider.so |
| |
| |
# Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec | # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec |
|
|
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec |
| |
%preun devel | %preun devel |
make --directory /opt/tog-pegasus/samples -s clean |
make --directory /usr/share/Pegasus/samples -s clean |
| |
%if %{PEGASUS_BUILD_TEST_RPM} | %if %{PEGASUS_BUILD_TEST_RPM} |
%preun test | %preun test |
make --directory /opt/tog-pegasus/test -s unsetupTEST |
make --directory /usr/share/Pegasus/test -s unsetupTEST |
[ -d /var/opt/tog-pegasus/testrepository ] && rm -rf /var/opt/tog-pegasus/testrepository; |
[ -d /var/lib/Pegasus/testrepository ] && rm -rf /var/lib/Pegasus/testrepository; |
| |
%endif | %endif |
%postun | %postun |
|
|
# End of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec | # End of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec |
| |
%files | %files |
%defattr(640,root,pegasus,750) |
%defattr(600, root, pegasus, 755) |
%dir /opt/tog-pegasus |
%dir /usr/share/doc/tog-pegasus-2.5 |
%dir /opt/tog-pegasus/share |
%dir /usr/lib/Pegasus |
%dir /opt/tog-pegasus/share/doc |
%dir /usr/lib/Pegasus/providers |
%dir /opt/tog-pegasus/share/man |
%dir /usr/share/Pegasus |
%dir /opt/tog-pegasus/share/man/man1 |
%dir /usr/share/Pegasus/scripts |
%dir /opt/tog-pegasus/share/man/man8 |
%dir /usr/share/Pegasus/mof |
%dir /opt/tog-pegasus/lib |
%dir /usr/share/Pegasus/mof/CIM29 |
%dir /opt/tog-pegasus/providers |
%dir /usr/share/Pegasus/mof/Pegasus |
%dir /opt/tog-pegasus/providers/lib |
%dir /var/lib/Pegasus |
%dir /opt/tog-pegasus/sbin |
%dir /var/lib/Pegasus/cache |
%dir /opt/tog-pegasus/bin |
%dir /var/lib/Pegasus/log |
%dir /opt/tog-pegasus/scripts |
%dir /var/lib/Pegasus/cache/localauth |
%dir /opt/tog-pegasus/mof |
|
%dir /opt/tog-pegasus/mof/CIM29 |
|
%dir /opt/tog-pegasus/mof/Pegasus |
|
%dir /var/opt/tog-pegasus |
|
%dir /var/opt/tog-pegasus/cache |
|
%dir /var/opt/tog-pegasus/log |
|
%dir /var/opt/tog-pegasus/cache/localauth |
|
%dir /var/run/tog-pegasus | %dir /var/run/tog-pegasus |
%dir /etc/opt/tog-pegasus |
|
| |
|
%dir %attr(750, root, pegasus) /etc/Pegasus |
%dir %attr(1555,root,pegasus) /var/run/tog-pegasus/socket | %dir %attr(1555,root,pegasus) /var/run/tog-pegasus/socket |
%dir %attr(1777,root,pegasus) /var/opt/tog-pegasus/cache/trace |
%dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace |
| |
/var/opt/tog-pegasus/repository |
%dir %attr(750, root, pegasus) /var/lib/Pegasus/repository |
/opt/tog-pegasus/mof/CIM29/* |
/var/lib/Pegasus/repository/* |
/opt/tog-pegasus/mof/Pegasus/* |
/usr/share/Pegasus/mof/CIM29/* |
|
/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) /var/opt/tog-pegasus/cimserver_planned.conf |
%config(noreplace) /var/lib/Pegasus/cimserver_planned.conf |
%config(noreplace) /etc/opt/tog-pegasus/access.conf |
%config(noreplace) /etc/Pegasus/access.conf |
%config(noreplace) /etc/pam.d/wbem | %config(noreplace) /etc/pam.d/wbem |
| |
%ghost %config(noreplace) /etc/opt/tog-pegasus/ssl.cnf |
%ghost %config(noreplace) /etc/Pegasus/ssl.cnf |
%ghost %config(noreplace) /etc/opt/tog-pegasus/client.pem |
%ghost %config(noreplace) /etc/Pegasus/client.pem |
%ghost %config(noreplace) /etc/opt/tog-pegasus/server.pem |
%ghost %config(noreplace) /etc/Pegasus/server.pem |
%ghost %config(noreplace) /etc/opt/tog-pegasus/file.pem |
%ghost %config(noreplace) /etc/Pegasus/file.pem |
%ghost /var/opt/tog-pegasus/log/install.log |
%ghost /var/lib/Pegasus/log/install.log |
|
|
%attr(750,root,pegasus) /opt/tog-pegasus/sbin/* |
%attr(750,root,pegasus) /usr/sbin/* |
%attr(755,root,pegasus) /opt/tog-pegasus/bin/* |
%attr(755,root,pegasus) /usr/bin/* |
%attr(755,root,pegasus) /opt/tog-pegasus/lib/*.so.1 |
%attr(755,root,pegasus) /usr/lib/*.so.1 |
%attr(755,root,pegasus) /opt/tog-pegasus/providers/lib/*.so.1 |
%attr(755,root,pegasus) /usr/lib/Pegasus/providers/*.so.1 |
%attr(750,root,pegasus) /opt/tog-pegasus/scripts/* |
%attr(750,root,pegasus) /usr/share/Pegasus/scripts/* |
/opt/tog-pegasus/share/man/man1/* |
%attr(644,root,pegasus) /usr/share/man/man1/* |
/opt/tog-pegasus/share/man/man8/* |
%attr(640,root,pegasus) /usr/share/man/man8/* |
|
|
%doc %attr(444,root,pegasus) /opt/tog-pegasus/license.txt |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/Admin_Guide_Release.pdf |
%doc %attr(444,root,pegasus) /opt/tog-pegasus/share/doc/Admin_Guide_Release.pdf |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/PegasusSSLGuidelines.htm |
%doc %attr(444,root,pegasus) /opt/tog-pegasus/share/doc/PegasusSSLGuidelines.htm |
%doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/license.txt |
/opt/tog-pegasus/lib/libpegclient.so |
/usr/lib/libpegclient.so |
/opt/tog-pegasus/lib/libpegcommon.so |
/usr/lib/libpegcommon.so |
/opt/tog-pegasus/lib/libpegprovider.so |
/usr/lib/libpegprovider.so |
/opt/tog-pegasus/lib/libDefaultProviderManager.so |
/usr/lib/libDefaultProviderManager.so |
/opt/tog-pegasus/lib/libCIMxmlIndicationHandler.so |
/usr/lib/libCIMxmlIndicationHandler.so |
/opt/tog-pegasus/lib/libCMPIProviderManager.so |
/usr/lib/libCMPIProviderManager.so |
/opt/tog-pegasus/providers/lib/libComputerSystemProvider.so |
/usr/lib/Pegasus/providers/libComputerSystemProvider.so |
/opt/tog-pegasus/providers/lib/libOSProvider.so |
/usr/lib/Pegasus/providers/libOSProvider.so |
/opt/tog-pegasus/providers/lib/libProcessProvider.so |
/usr/lib/Pegasus/providers/libProcessProvider.so |
| |
%files devel | %files devel |
%defattr(640,root,pegasus,750) |
%defattr(644,root,pegasus,755) |
/opt/tog-pegasus/include |
/usr/include |
/opt/tog-pegasus/samples |
/usr/share/Pegasus/samples |
/opt/tog-pegasus/share/doc/* |
/usr/share/doc/tog-pegasus-2.5/* |
/opt/tog-pegasus/html |
/usr/share/Pegasus/html |
%attr(755,root,pegasus) /opt/tog-pegasus/providers/lib/*.so |
%attr(755,root,pegasus) /usr/lib/Pegasus/providers/*.so |
| |
%if %{PEGASUS_BUILD_TEST_RPM} | %if %{PEGASUS_BUILD_TEST_RPM} |
%files test | %files test |
%defattr(-,root,pegasus,-) | %defattr(-,root,pegasus,-) |
/opt/tog-pegasus/test |
/usr/share/Pegasus/test |
/var/opt/tog-pegasus/testrepository |
/var/lib/Pegasus/testrepository |
%endif | %endif |