version 1.20.2.27, 2005/11/02 21:36:26
|
version 1.20.2.34, 2005/11/18 21:15:55
|
|
|
%define srcRelease 1 | %define srcRelease 1 |
Summary: OpenPegasus WBEM Services for Linux | Summary: OpenPegasus WBEM Services for Linux |
Name: tog-pegasus | Name: tog-pegasus |
Version: 2.4.2 |
Version: 2.4.3RC1 |
Release: 1%{?LINUX_VERSION:.%{LINUX_VERSION}} | Release: 1%{?LINUX_VERSION:.%{LINUX_VERSION}} |
Group: Systems Management/Base | Group: Systems Management/Base |
Copyright: Open Group Pegasus Open Source | Copyright: Open Group Pegasus Open Source |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
Source: ftp://www.opengroup.org/pegasus/tog-pegasus-%{version}-%{srcRelease}.tar.gz | Source: ftp://www.opengroup.org/pegasus/tog-pegasus-%{version}-%{srcRelease}.tar.gz |
Requires: openssl >= 0.9.6 lsb >= 1.3 | Requires: openssl >= 0.9.6 lsb >= 1.3 |
|
Conflicts: openwbem |
Provides: cimserver tog-pegasus-2.4 | Provides: cimserver tog-pegasus-2.4 |
BuildRequires: openssl-devel >= 0.9.6 | BuildRequires: openssl-devel >= 0.9.6 |
|
BuildConflicts: tog-pegasus |
| |
%description | %description |
OpenPegasus WBEM Services for Linux enables management solutions that deliver | OpenPegasus WBEM Services for Linux enables management solutions that deliver |
|
|
communication protocol for monitoring and controlling resources from diverse | communication protocol for monitoring and controlling resources from diverse |
sources. | sources. |
| |
%package sdk |
%package devel |
Summary: The OpenPegasus Software Development Kit | Summary: The OpenPegasus Software Development Kit |
Group: Systems Management/Base | Group: Systems Management/Base |
Autoreq: 0 | Autoreq: 0 |
Requires: tog-pegasus >= 2.4 | Requires: tog-pegasus >= 2.4 |
|
Obsoletes: tog-pegasus-sdk |
| |
%description sdk |
%description devel |
The OpenPegasus WBEM Services for Linux SDK is the developer's kit for the OpenPegasus WBEM | The OpenPegasus WBEM Services for Linux SDK is the developer's kit for the OpenPegasus WBEM |
Services for Linux release. It provides Linux C++ developers with the WBEM files required to | Services for Linux release. It provides Linux C++ developers with the WBEM files required to |
build WBEM Clients and Providers. It also supports C provider developers via the CMPI interface. | build WBEM Clients and Providers. It also supports C provider developers via the CMPI interface. |
|
|
%define PEGASUS_MANADMIN_DIR %PEGASUS_MAN_DIR/man8 | %define PEGASUS_MANADMIN_DIR %PEGASUS_MAN_DIR/man8 |
%define PEGASUS_VARDATA_DIR /var/opt/tog-pegasus | %define PEGASUS_VARDATA_DIR /var/opt/tog-pegasus |
%define PEGASUS_REPOSITORY_DIR %PEGASUS_VARDATA_DIR/repository | %define PEGASUS_REPOSITORY_DIR %PEGASUS_VARDATA_DIR/repository |
|
%define PEGASUS_NEW_REPOSITORY_DIR %PEGASUS_VARDATA_DIR/new_repository |
%define PEGASUS_PREV_REPOSITORY_DIR %PEGASUS_VARDATA_DIR/prev_repository | %define PEGASUS_PREV_REPOSITORY_DIR %PEGASUS_VARDATA_DIR/prev_repository |
%define PEGASUS_VARDATA_CACHE_DIR %PEGASUS_VARDATA_DIR/cache | %define PEGASUS_VARDATA_CACHE_DIR %PEGASUS_VARDATA_DIR/cache |
%define PEGASUS_LOCAL_AUTH_DIR %PEGASUS_VARDATA_CACHE_DIR/localauth | %define PEGASUS_LOCAL_AUTH_DIR %PEGASUS_VARDATA_CACHE_DIR/localauth |
|
|
| |
# | # |
# Make directories | # Make directories |
mkdir -p $RPM_BUILD_ROOT%PEGASUS_VARDATA_DIR/{log,cache,repository} |
mkdir -p $RPM_BUILD_ROOT%PEGASUS_VARDATA_DIR/{log,cache} |
mkdir -p $RPM_BUILD_ROOT/%PEGASUS_LOCAL_AUTH_DIR | mkdir -p $RPM_BUILD_ROOT/%PEGASUS_LOCAL_AUTH_DIR |
mkdir -p $RPM_BUILD_ROOT/%PEGASUS_PROVIDER_LIB_DIR | mkdir -p $RPM_BUILD_ROOT/%PEGASUS_PROVIDER_LIB_DIR |
mkdir -p $RPM_BUILD_ROOT/%PEGASUS_CONFIG_DIR | mkdir -p $RPM_BUILD_ROOT/%PEGASUS_CONFIG_DIR |
|
|
# | # |
# Initial Repository | # Initial Repository |
# | # |
mkdir -p $RPM_BUILD_ROOT%PEGASUS_REPOSITORY_DIR |
mkdir -p $RPM_BUILD_ROOT%PEGASUS_NEW_REPOSITORY_DIR |
cp -rf $PEGASUS_HOME/repository/* $RPM_BUILD_ROOT%PEGASUS_REPOSITORY_DIR |
cp -rf $PEGASUS_HOME/repository/* $RPM_BUILD_ROOT%PEGASUS_NEW_REPOSITORY_DIR |
| |
# | # |
# cimserver config files | # cimserver config files |
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; | [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; |
| |
%pre | %pre |
if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ] |
if [ -d %PEGASUS_REPOSITORY_DIR ] |
then | then |
# | # |
# Save the current repository to prev_repository. | # Save the current repository to prev_repository. |
|
|
then | then |
if [[ -d %PEGASUS_PREV_REPOSITORY_DIR ]] | if [[ -d %PEGASUS_PREV_REPOSITORY_DIR ]] |
then | then |
rm -rf %PEGASUS_PREV_REPOSITORY_DIR |
mv %PEGASUS_PREV_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.rpmsave; |
fi | fi |
| |
mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR | mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR |
mkdir %PEGASUS_REPOSITORY_DIR |
|
fi | fi |
fi | fi |
| |
|
|
echo " /etc/init.d/tog-pegasus stop" | echo " /etc/init.d/tog-pegasus stop" |
echo " To set up PATH and MANPATH in /etc/profile" | echo " To set up PATH and MANPATH in /etc/profile" |
echo " run /opt/tog-pegasus/sbin/settogpath."; | echo " run /opt/tog-pegasus/sbin/settogpath."; |
|
mv %PEGASUS_NEW_REPOSITORY_DIR %PEGASUS_REPOSITORY_DIR |
|
fi |
|
|
|
%triggerpostun -- tog-pegasus < 2.4.3 |
|
if [ -d %PEGASUS_PREV_REPOSITORY_DIR ] |
|
then |
|
mv %PEGASUS_PREV_REPOSITORY_DIR %PEGASUS_REPOSITORY_DIR |
fi | fi |
| |
%if %{PEGASUS_BUILD_TEST_RPM} | %if %{PEGASUS_BUILD_TEST_RPM} |
|
|
| |
%postun | %postun |
if [ $1 -eq 0 ]; then | if [ $1 -eq 0 ]; then |
rm -rf %PEGASUS_VARDATA_DIR |
|
rm -rf %PEGASUS_PROD_DIR |
|
rm -rf %PEGASUS_CONFIG_DIR |
|
export LC_ALL=C | export LC_ALL=C |
fi | fi |
| |
|
|
%dir %attr(-,root,root) %PEGASUS_PROVIDER_LIB_DIR | %dir %attr(-,root,root) %PEGASUS_PROVIDER_LIB_DIR |
%dir %attr(1555,root,root) %PEGASUS_LOCAL_DOMAIN_SOCKET_DIR | %dir %attr(1555,root,root) %PEGASUS_LOCAL_DOMAIN_SOCKET_DIR |
%defattr(-,root,root) | %defattr(-,root,root) |
%PEGASUS_REPOSITORY_DIR |
%PEGASUS_NEW_REPOSITORY_DIR |
%doc %PEGASUS_PROD_DIR/%PEGASUS_LICENSE_FILE | %doc %PEGASUS_PROD_DIR/%PEGASUS_LICENSE_FILE |
%doc %PEGASUS_DOC_DIR/Admin_Guide_Release_2.4.pdf | %doc %PEGASUS_DOC_DIR/Admin_Guide_Release_2.4.pdf |
%doc %PEGASUS_MANUSER_DIR/cimmof.1 | %doc %PEGASUS_MANUSER_DIR/cimmof.1 |
|
|
%attr(-,root,root) %PEGASUS_MOF_DIR/Pegasus/PG_OperatingSystem20R.mof | %attr(-,root,root) %PEGASUS_MOF_DIR/Pegasus/PG_OperatingSystem20R.mof |
%attr(-,root,root) %PEGASUS_MOF_DIR/Pegasus/PG_UnixProcess20.mof | %attr(-,root,root) %PEGASUS_MOF_DIR/Pegasus/PG_UnixProcess20.mof |
%attr(-,root,root) %PEGASUS_MOF_DIR/Pegasus/PG_UnixProcess20R.mof | %attr(-,root,root) %PEGASUS_MOF_DIR/Pegasus/PG_UnixProcess20R.mof |
%config %attr(-,root,root) %PEGASUS_VARDATA_DIR/%PEGASUS_PLANNED_CONFIG_FILE |
%config(noreplace) %attr(-,root,root) %PEGASUS_VARDATA_DIR/%PEGASUS_PLANNED_CONFIG_FILE |
%config %attr(-,root,root) /etc/init.d/tog-pegasus |
%config(noreplace) %attr(-,root,root) /etc/init.d/tog-pegasus |
%config %attr(-,root,root) %PAM_CONF/wbem |
%config(noreplace) %attr(-,root,root) %PAM_CONF/wbem |
%attr(0544,root,root) %PEGASUS_SBIN_DIR/cimauth | %attr(0544,root,root) %PEGASUS_SBIN_DIR/cimauth |
%attr(0544,root,root) %PEGASUS_SBIN_DIR/cimserver | %attr(0544,root,root) %PEGASUS_SBIN_DIR/cimserver |
%attr(0544,root,root) %PEGASUS_SBIN_DIR/cimservera | %attr(0544,root,root) %PEGASUS_SBIN_DIR/cimservera |
|
|
%attr(-,root,root) %PEGASUS_PROVIDER_LIB_DIR/libProcessProvider.so.1 | %attr(-,root,root) %PEGASUS_PROVIDER_LIB_DIR/libProcessProvider.so.1 |
| |
| |
%files sdk |
%files devel |
%defattr(0444,root,root) | %defattr(0444,root,root) |
%attr(-,root,root) %PEGASUS_INCLUDE_DIR/Pegasus/Client/CIMClientException.h | %attr(-,root,root) %PEGASUS_INCLUDE_DIR/Pegasus/Client/CIMClientException.h |
%attr(-,root,root) %PEGASUS_INCLUDE_DIR/Pegasus/Client/CIMClient.h | %attr(-,root,root) %PEGASUS_INCLUDE_DIR/Pegasus/Client/CIMClient.h |