(file) Return to tog-pegasus.spec CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm

  1 w.otsuka 1.27 #%2005////////////////////////////////////////////////////////////////////////
  2 w.otsuka 1.2  #
  3               # Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4               # Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5               # Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6               # IBM Corp.; EMC Corporation, The Open Group.
  7 w.otsuka 1.24 # Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8               # IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9               # Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10               # EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 w.otsuka 1.2  #
 12               # Permission is hereby granted, free of charge, to any person obtaining a copy
 13               # of this software and associated documentation files (the "Software"), to
 14               # deal in the Software without restriction, including without limitation the
 15               # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16               # sell copies of the Software, and to permit persons to whom the Software is
 17               # furnished to do so, subject to the following conditions:
 18               # 
 19               # THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20               # ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21               # "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22               # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23               # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24               # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25               # ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26               # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27               #
 28               #==============================================================================
 29 w.otsuka 1.1  #%/////////////////////////////////////////////////////////////////////////////
 30               #
 31               # tog-pegasus.spec
 32               #
 33 denise.eckstein 1.32 #%/////////////////////////////////////////////////////////////////////////////
 34                      
 35                      #
 36                      # WARNING: This file is automatically generated by executing 
 37                      #   make -f pegasus/Makefile.Release create_OpenPegasusRPMSpecFile
 38 denise.eckstein 1.74 # Any changes made directly to this file in the OpenPegasus source will
 39                      # be lost the next time this file is regenerated and submitted to CVS.
 40 w.otsuka        1.1  #
 41 denise.eckstein 1.32 
 42 denise.eckstein 1.74 Version: 2.5RC1
 43 w.otsuka        1.68 Release: 1%{?LINUX_VERSION:.%{LINUX_VERSION}}
 44 w.otsuka        1.56 Epoch:   1
 45 denise.eckstein 1.32 
 46                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec
 47 denise.eckstein 1.74 #
 48 w.otsuka        1.56 %{?!PEGASUS_BUILD_TEST_RPM:   %define PEGASUS_BUILD_TEST_RPM        0}
 49 denise.eckstein 1.74 # do "rpmbuild --define 'PEGASUS_BUILD_TEST_RPM 1'" to build test RPM.
 50                      #
 51                      %{?!AUTOSTART:   %define AUTOSTART        0}
 52                      # Use "rpm -[iU]vh --define 'AUTOSTART 1'" in order to have cimserver enabled
 53                      # (chkconfig --level=345 tog-pegasus on) after installation.
 54                      #
 55                      
 56 w.otsuka        1.75 %define srcRelease 1
 57 denise.eckstein 1.74 Summary:   OpenPegasus WBEM Services for Linux
 58                      Name:      tog-pegasus
 59                      Group:     Systems Management/Base
 60                      License:   Open Group Pegasus Open Source
 61                      BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 62                      URL:       http://www.openpegasus.org
 63                      
 64 denise.eckstein 1.76 Source:    %{name}-%{version}-%{srcRelease}.tar.gz
 65 denise.eckstein 1.74 
 66                      BuildRequires:      bash, sed, grep, coreutils, procps, gcc, gcc-c++
 67                      BuildRequires:      libstdc++, make, pam-devel
 68                      BuildRequires:      openssl-devel >= 0.9.6, e2fsprogs
 69                      Requires:           bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam
 70                      #Requires:          krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs
 71                      Requires:           e2fsprogs, bind-utils, net-tools
 72                      Requires(post):     bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam
 73                      #Requires(post):    krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs
 74                      Requires(post):     e2fsprogs, bind-utils, net-tools
 75                      Requires(pre):      bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam
 76                      #Requires(pre):     krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs
 77                      Requires(pre):      e2fsprogs, bind-utils, net-tools
 78                      Requires(postun):   bash, sed, grep, coreutils, procps, openssl >= 0.9.6, pam
 79                      #Requires(postun):  krb5-libs, redhat-lsb, chkconfig, SysVinit, bind-libs
 80                      Requires(postun):   e2fsprogs, bind-utils, net-tools
 81                      
 82 w.otsuka        1.73 Conflicts: openwbem
 83 denise.eckstein 1.32 Provides: tog-pegasus-cimserver
 84 w.otsuka        1.64 BuildConflicts: tog-pegasus
 85 w.otsuka        1.1  
 86                      %description
 87 w.otsuka        1.9  OpenPegasus WBEM Services for Linux enables management solutions that deliver
 88 w.otsuka        1.1  increased control of enterprise resources. WBEM is a platform and resource
 89                      independent DMTF standard that defines a common information model and
 90                      communication protocol for monitoring and controlling resources from diverse
 91                      sources.
 92 denise.eckstein 1.74 #
 93 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-intro.spec
 94 w.otsuka        1.1  
 95 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec
 96                      #
 97 w.otsuka        1.54 %ifarch ia64
 98 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU
 99 w.otsuka        1.1  %else
100 w.otsuka        1.54 %ifarch x86_64
101                      %global PEGASUS_HARDWARE_PLATFORM LINUX_X86_64_GNU
102                      %else
103 w.otsuka        1.24 %ifarch ppc
104 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU
105 w.otsuka        1.24 %else
106 denise.eckstein 1.44 %ifarch ppc64 pseries
107 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC64_GNU
108 w.otsuka        1.24 %else
109                      %ifarch s390
110 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES_GNU
111 w.otsuka        1.24 %else
112                      %ifarch s390x zseries
113 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES64_GNU
114 w.otsuka        1.24 %else
115 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_IX86_GNU
116 denise.eckstein 1.74 %endif 
117                      %endif 
118                      %endif 
119                      %endif 
120 w.otsuka        1.1  %endif
121 w.otsuka        1.24 %endif
122 denise.eckstein 1.74 #
123                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec
124 w.otsuka        1.55 
125 denise.eckstein 1.81 %global PEGASUS_ARCH_LIB %{_lib}
126                      %global OPENSSL_HOME /usr/include/openssl
127                      %global OPENSSL_BIN /usr/bin
128                      %global PEGASUS_PEM_DIR /etc/Pegasus
129                      %global PEGASUS_SSL_CERT_FILE server.pem
130                      %global PEGASUS_SSL_KEY_FILE file.pem
131                      %global PEGASUS_SSL_TRUSTSTORE client.pem
132                      %global PAM_CONFIG_DIR /etc/pam.d
133                      %global PEGASUS_CONFIG_DIR /etc/Pegasus
134                      %global PEGASUS_VARDATA_DIR /var/lib/Pegasus
135                      %global PEGASUS_VARDATA_CACHE_DIR /var/lib/Pegasus/cache
136                      %global PEGASUS_LOCAL_DOMAIN_SOCKET_PATH  /var/run/tog-pegasus/socket/cimxml.socket
137                      %global PEGASUS_CIMSERVER_START_FILE /var/run/tog-pegasus/cimserver.pid
138                      %global PEGASUS_REPOSITORY_DIR /var/lib/Pegasus/repository
139                      %global PEGASUS_PREV_REPOSITORY_DIR_NAME prev_repository
140                      %global PEGASUS_REPOSITORY_PARENT_DIR /var/lib/Pegasus
141                      %global PEGASUS_PREV_REPOSITORY_DIR /var/lib/Pegasus/prev_repository
142                      %global PEGASUS_SBIN_DIR /usr/sbin
143                      %global PEGASUS_DOC_DIR /usr/share/doc/tog-pegasus-2.5
144                      
145                      %global PEGASUS_RPM_ROOT  $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION
146 denise.eckstein 1.81 %global PEGASUS_RPM_HOME $RPM_BUILD_ROOT/build/tog-pegasus
147                      %global PEGASUS_INSTALL_LOG /var/lib/Pegasus/log/install.log
148                      
149 denise.eckstein 1.32 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
150 denise.eckstein 1.74 #
151 w.otsuka        1.69 %package devel
152 denise.eckstein 1.32 Summary: The OpenPegasus Software Development Kit
153                      Group: Systems Management/Base
154                      Requires: tog-pegasus >= %{version}
155 w.otsuka        1.69 Obsoletes: tog-pegasus-sdk
156 w.otsuka        1.1  
157 w.otsuka        1.69 %description devel
158 denise.eckstein 1.74 The OpenPegasus WBEM Services for Linux SDK is the developer's kit for the
159                      OpenPegasus WBEM Services for Linux release. It provides Linux C++ developers
160                      with the WBEM files required to build WBEM Clients and Providers. It also
161                      supports C provider developers via the CMPI interface.
162 w.otsuka        1.1  
163 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
164 denise.eckstein 1.32 %package test
165                      Summary: The OpenPegasus Tests
166                      Group: Systems Management/Base
167                      Requires: tog-pegasus >= %{version} 
168 w.otsuka        1.1  
169 denise.eckstein 1.32 %description test
170                      The OpenPegasus WBEM tests for the OpenPegasus %{version} Linux rpm.
171 w.otsuka        1.56 %endif
172 denise.eckstein 1.74 #
173                      #End of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
174 w.otsuka        1.1  
175 denise.eckstein 1.32 %prep
176 denise.eckstein 1.74 %setup -q -n %{name}-%{version}
177 w.otsuka        1.28 
178 denise.eckstein 1.32 %build
179                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec
180 denise.eckstein 1.74 #
181 denise.eckstein 1.32 export PEGASUS_ROOT=%PEGASUS_RPM_ROOT
182                      export PEGASUS_HOME=%PEGASUS_RPM_HOME
183                      export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM
184 denise.eckstein 1.74 export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
185 denise.eckstein 1.32 export PEGASUS_ENVVAR_FILE=$PEGASUS_ROOT/env_var_Linux.status
186 w.otsuka        1.1  
187 denise.eckstein 1.32 export OPENSSL_HOME=%OPENSSL_HOME
188                      export OPENSSL_BIN=%OPENSSL_BIN
189                      export LD_LIBRARY_PATH=$PEGASUS_HOME/lib
190                      export PATH=$PEGASUS_HOME/bin:$PATH
191 w.otsuka        1.1  
192 denise.eckstein 1.74 export PEGASUS_EXTRA_C_FLAGS="$RPM_OPT_FLAGS -g"
193 denise.eckstein 1.32 export PEGASUS_EXTRA_CXX_FLAGS="$PEGASUS_EXTRA_C_FLAGS"
194 denise.eckstein 1.74 export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS"
195                      #export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS -g -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack"
196 w.otsuka        1.1  
197 denise.eckstein 1.32 make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile
198 denise.eckstein 1.76 make -f $PEGASUS_ROOT/Makefile.Release create_CommonProductDirectoriesInclude
199                      make -f $PEGASUS_ROOT/Makefile.Release create_ConfigProductDirectoriesInclude
200 denise.eckstein 1.32 make -f $PEGASUS_ROOT/Makefile.Release all
201                      make -f $PEGASUS_ROOT/Makefile.Release repository
202 denise.eckstein 1.74 #
203 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec
204 w.otsuka        1.27 
205 denise.eckstein 1.32 %install
206                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec
207 denise.eckstein 1.74 #
208 denise.eckstein 1.32 export PEGASUS_ROOT=%PEGASUS_RPM_ROOT
209                      export PEGASUS_HOME=%PEGASUS_RPM_HOME
210                      export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM
211 denise.eckstein 1.74 export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
212 denise.eckstein 1.32 export PEGASUS_ENVVAR_FILE=$PEGASUS_ROOT/env_var_Linux.status
213 w.otsuka        1.1  
214 denise.eckstein 1.32 export OPENSSL_BIN=%OPENSSL_BIN
215                      export LD_LIBRARY_PATH=$PEGASUS_HOME/lib
216                      export PATH=$PEGASUS_HOME/bin:$PATH
217 w.otsuka        1.1  
218 denise.eckstein 1.32 export PEGASUS_STAGING_DIR=$RPM_BUILD_ROOT
219 w.otsuka        1.1  
220 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
221 denise.eckstein 1.74 make -f $PEGASUS_ROOT/Makefile.Release stage \
222                          PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR \
223                          PEGASUS_BUILD_TEST_RPM=%{PEGASUS_BUILD_TEST_RPM}
224 w.otsuka        1.56 %else
225 denise.eckstein 1.74 make -f $PEGASUS_ROOT/Makefile.Release stage \
226                          PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR
227 w.otsuka        1.56 %endif
228 denise.eckstein 1.74 
229                      [ "$PEGASUS_HOME" != "/" ] && [ -d $PEGASUS_HOME ] && rm -rf $PEGASUS_HOME;
230                      #
231 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec
232 w.otsuka        1.1  
233 denise.eckstein 1.32 %clean
234                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-clean.spec
235 denise.eckstein 1.74 #
236 w.otsuka        1.77 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT;
237                      [ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/%{name}-%{version};
238 denise.eckstein 1.74 #
239 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-clean.spec
240 w.otsuka        1.1  
241                      %pre
242 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
243                      #           install   remove   upgrade  reinstall
244                      # pre          1        -         2         2
245                      #
246                      # If it exists, the active OpenPegasus Repository
247                      #    directory, %PEGASUS_REPOSITORY_DIR is renamed
248                      #    to %PEGASUS_PREV_REPOSITORY_DIR.  If
249                      #    %PEGASUS_PREV_REPOSITORY_DIR already exists,
250                      #    it is saved as an archive file.
251 denise.eckstein 1.32 
252 denise.eckstein 1.74 if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ]; then
253                         #
254                         # Save the current repository to prev_repository
255                         #
256                         if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
257                              /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
258                                  %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
259                                  %PEGASUS_PREV_REPOSITORY_DIR_NAME
260                              rm -rf %PEGASUS_PREV_REPOSITORY_DIR
261                         fi
262                         /bin/mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR
263                      fi
264                      if [ $1 -eq 1 ]; then
265                         #  Create the 'pegasus' user and group:
266                         /usr/sbin/groupadd pegasus > /dev/null 2>&1 || :;
267                         /usr/sbin/useradd -c "tog-pegasus OpenPegasus WBEM/CIM services" \
268                              -g pegasus -s /sbin/nologin -r -d %PEGASUS_VARDATA_DIR pegasus \
269                               > /dev/null 2>&1 || :;
270 w.otsuka        1.1  fi
271 denise.eckstein 1.74 #
272 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
273 w.otsuka        1.1  
274                      %post
275 w.otsuka        1.24 if [ $1 -eq 1 ]; then
276 denise.eckstein 1.35    echo `date` > %PEGASUS_INSTALL_LOG 2>&1
277 denise.eckstein 1.76    %define PEGASUS_CONFIG_DIR /etc/Pegasus
278                         %define PEGASUS_PEM_DIR /etc/Pegasus
279 denise.eckstein 1.32    %define PEGASUS_SSL_CERT_FILE server.pem
280                         %define PEGASUS_SSL_KEY_FILE file.pem
281                         %define PEGASUS_SSL_TRUSTSTORE client.pem
282                      
283                         # Create Symbolic Links for SDK Libraries
284                         #
285 denise.eckstein 1.81    ln -sf libpegclient.so.1 /usr/%PEGASUS_ARCH_LIB/libpegclient.so
286                         ln -sf libpegcommon.so.1 /usr/%PEGASUS_ARCH_LIB/libpegcommon.so
287                         ln -sf libpegprovider.so.1 /usr/%PEGASUS_ARCH_LIB/libpegprovider.so
288                         ln -sf libDefaultProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/libDefaultProviderManager.so
289                         ln -sf libCIMxmlIndicationHandler.so.1 /usr/%PEGASUS_ARCH_LIB/libCIMxmlIndicationHandler.so
290                         ln -sf libCMPIProviderManager.so.1 /usr/%PEGASUS_ARCH_LIB/libCMPIProviderManager.so
291 denise.eckstein 1.32 
292                         # Create Symbolic Links for Packaged Provider Libraries
293                         #
294 denise.eckstein 1.81    ln -sf libComputerSystemProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libComputerSystemProvider.so
295                         ln -sf libOSProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libOSProvider.so
296                         ln -sf libProcessProvider.so.1 /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libProcessProvider.so
297 denise.eckstein 1.32 
298                      
299                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
300 denise.eckstein 1.74 #
301                      #           install   remove   upgrade  reinstall
302                      # %post        1        -         2         2
303                      #
304 denise.eckstein 1.81    export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
305                      
306 denise.eckstein 1.74    if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
307                             # Running Repository Upgrade utility
308                             %PEGASUS_SBIN_DIR/repupgrade %PEGASUS_PREV_REPOSITORY_DIR \
309                                 %PEGASUS_REPOSITORY_DIR 2>>%PEGASUS_INSTALL_LOG
310                             /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
311                                 %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
312                                 %PEGASUS_PREV_REPOSITORY_DIR_NAME
313                             rm -rf %PEGASUS_PREV_REPOSITORY_DIR
314 denise.eckstein 1.32    fi
315 denise.eckstein 1.74    if [ $1 -eq 1 ]; then
316                      %if %{AUTOSTART}
317                             /sbin/chkconfig --add tog-pegasus
318                      %endif
319                         :;
320                         elif [ $1 -gt 0 ]; then
321 w.otsuka        1.79        /etc/init.d/tog-pegasus condrestart
322 denise.eckstein 1.74    :;
323 denise.eckstein 1.32    fi
324 denise.eckstein 1.74 #
325 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
326 w.otsuka        1.1  
327 w.otsuka        1.57 elif [ $1 -gt 1 ]; then
328 denise.eckstein 1.74    if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
329 w.otsuka        1.71      # Running Repository Upgrade utility
330                           %PEGASUS_SBIN_DIR/repupgrade 2>>%PEGASUS_INSTALL_LOG
331                         fi
332 w.otsuka        1.79    /etc/init.d/tog-pegasus condrestart
333 denise.eckstein 1.74    :;
334 w.otsuka        1.24 fi
335 denise.eckstein 1.74 
336 w.otsuka        1.1  %preun
337 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec
338                      #           install   remove   upgrade  reinstall
339                      #  preun       -        0         1         -
340 w.otsuka        1.24 if [ $1 -eq 0 ]; then
341 denise.eckstein 1.32    # Check if the cimserver is running
342 denise.eckstein 1.74    isRunning=`ps -el | grep cimserver |  grep -v "grep cimserver"`
343 denise.eckstein 1.32    if [ "$isRunning" ]; then
344 denise.eckstein 1.74       %PEGASUS_SBIN_DIR/cimserver -s
345                         fi 
346                         /sbin/chkconfig --del tog-pegasus;
347                         rm -f %PEGASUS_VARDATA_DIR/cimserver_current.conf;
348                         rm -f %PEGASUS_INSTALL_LOG;
349                         [ -d %PEGASUS_REPOSITORY_DIR ]  && rm -rf %PEGASUS_REPOSITORY_DIR;
350                         [ -d %PEGASUS_VARDATA_CACHE_DIR ]  && rm -rf %PEGASUS_VARDATA_CACHE_DIR;
351                         rm -f %PEGASUS_LOCAL_DOMAIN_SOCKET_PATH;
352                         rm -f %PEGASUS_CIMSERVER_START_FILE;
353 w.otsuka        1.24 fi
354 denise.eckstein 1.74 #
355                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec
356 w.otsuka        1.1  
357 w.otsuka        1.69 %preun devel
358 denise.eckstein 1.76 make --directory /usr/share/Pegasus/samples -s clean
359 denise.eckstein 1.44 
360 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
361 denise.eckstein 1.46 %preun test
362 denise.eckstein 1.76 make --directory /usr/share/Pegasus/test -s unsetupTEST
363                      [ -d /var/lib/Pegasus/testrepository ] &&  rm -rf /var/lib/Pegasus/testrepository;
364 denise.eckstein 1.46 
365 w.otsuka        1.56 %endif
366 w.otsuka        1.1  %postun
367 w.otsuka        1.24 if [ $1 -eq 0 ]; then
368 denise.eckstein 1.32    export LC_ALL=C
369 w.otsuka        1.1  fi
370 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec
371                      #
372                      #           install   remove   upgrade  reinstall
373                      #  postun      -        0         1         -
374                      if [ $1 -eq 0 ]; then
375                         /usr/sbin/userdel pegasus > /dev/null 2>&1 || :;
376 w.otsuka        1.78    /usr/sbin/groupdel pegasus > /dev/null 2>&1 || :;
377 denise.eckstein 1.74 fi;
378                      #
379                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec
380 w.otsuka        1.1  
381                      %files
382 denise.eckstein 1.76 %defattr(600, root, pegasus, 755)
383                      %dir /usr/share/doc/tog-pegasus-2.5
384                      %dir /usr/share/Pegasus
385                      %dir /usr/share/Pegasus/scripts
386                      %dir /usr/share/Pegasus/mof
387                      %dir /usr/share/Pegasus/mof/CIM29
388                      %dir /usr/share/Pegasus/mof/Pegasus
389                      %dir /var/lib/Pegasus
390                      %dir /var/lib/Pegasus/cache
391                      %dir /var/lib/Pegasus/log
392                      %dir /var/lib/Pegasus/cache/localauth
393 denise.eckstein 1.74 %dir /var/run/tog-pegasus
394 denise.eckstein 1.81 %dir /usr/%PEGASUS_ARCH_LIB/Pegasus 
395                      %dir /usr/%PEGASUS_ARCH_LIB/Pegasus/providers 
396 denise.eckstein 1.74 
397 denise.eckstein 1.76 %dir %attr(750, root, pegasus) /etc/Pegasus
398 denise.eckstein 1.74 %dir %attr(1555,root,pegasus) /var/run/tog-pegasus/socket
399 denise.eckstein 1.76 %dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace
400 denise.eckstein 1.74 
401 denise.eckstein 1.76 %dir %attr(750, root, pegasus) /var/lib/Pegasus/repository
402                      /var/lib/Pegasus/repository/*
403                      /usr/share/Pegasus/mof/CIM29/*
404                      /usr/share/Pegasus/mof/Pegasus/*
405 denise.eckstein 1.74 
406                      %config %attr(750,root,pegasus) /etc/init.d/tog-pegasus
407 denise.eckstein 1.76 %config(noreplace) /var/lib/Pegasus/cimserver_planned.conf
408                      %config(noreplace) /etc/Pegasus/access.conf
409 denise.eckstein 1.74 %config(noreplace) /etc/pam.d/wbem
410                      
411 denise.eckstein 1.76 %ghost %config(noreplace) /etc/Pegasus/ssl.cnf
412                      %ghost %config(noreplace) /etc/Pegasus/client.pem
413                      %ghost %config(noreplace) /etc/Pegasus/server.pem
414                      %ghost %config(noreplace) /etc/Pegasus/file.pem
415                      %ghost /var/lib/Pegasus/log/install.log
416                      
417                      %attr(750,root,pegasus) /usr/sbin/*
418                      %attr(755,root,pegasus) /usr/bin/*
419 denise.eckstein 1.81 %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/*.so.1
420                      %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so.1
421 denise.eckstein 1.76 %attr(750,root,pegasus) /usr/share/Pegasus/scripts/*
422                      %attr(644,root,pegasus) /usr/share/man/man1/*
423                      %attr(640,root,pegasus) /usr/share/man/man8/*
424                      
425                      %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/Admin_Guide_Release.pdf
426                      %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/PegasusSSLGuidelines.htm
427                      %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/license.txt
428 denise.eckstein 1.81 /usr/%PEGASUS_ARCH_LIB/libpegclient.so
429                      /usr/%PEGASUS_ARCH_LIB/libpegcommon.so
430                      /usr/%PEGASUS_ARCH_LIB/libpegprovider.so
431                      /usr/%PEGASUS_ARCH_LIB/libDefaultProviderManager.so
432                      /usr/%PEGASUS_ARCH_LIB/libCIMxmlIndicationHandler.so
433                      /usr/%PEGASUS_ARCH_LIB/libCMPIProviderManager.so
434                      /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libComputerSystemProvider.so
435                      /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libOSProvider.so
436                      /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/libProcessProvider.so
437 w.otsuka        1.1  
438 w.otsuka        1.69 %files devel
439 denise.eckstein 1.76 %defattr(644,root,pegasus,755)
440 w.otsuka        1.80 /usr/include/Pegasus
441 denise.eckstein 1.76 /usr/share/Pegasus/samples
442                      /usr/share/doc/tog-pegasus-2.5/*
443                      /usr/share/Pegasus/html
444 denise.eckstein 1.81 %attr(755,root,pegasus) /usr/%PEGASUS_ARCH_LIB/Pegasus/providers/*.so
445 w.otsuka        1.28 
446 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
447 w.otsuka        1.28 %files test
448 denise.eckstein 1.74 %defattr(-,root,pegasus,-)
449 denise.eckstein 1.76 /usr/share/Pegasus/test
450                      /var/lib/Pegasus/testrepository
451 w.otsuka        1.56 %endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2