(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.32 %global OPENSSL_HOME /usr/include/openssl
 96                      %global OPENSSL_BIN /usr/bin
 97 denise.eckstein 1.76 %global PEGASUS_PEM_DIR /etc/Pegasus
 98 denise.eckstein 1.32 %global PEGASUS_SSL_CERT_FILE server.pem
 99                      %global PEGASUS_SSL_KEY_FILE file.pem
100                      %global PEGASUS_SSL_TRUSTSTORE client.pem
101                      %global PAM_CONFIG_DIR /etc/pam.d
102 denise.eckstein 1.76 %global PEGASUS_CONFIG_DIR /etc/Pegasus
103                      %global PEGASUS_VARDATA_DIR /var/lib/Pegasus
104                      %global PEGASUS_VARDATA_CACHE_DIR /var/lib/Pegasus/cache
105 denise.eckstein 1.74 %global PEGASUS_LOCAL_DOMAIN_SOCKET_PATH  /var/run/tog-pegasus/socket/cimxml.socket
106                      %global PEGASUS_CIMSERVER_START_FILE /var/run/tog-pegasus/cimserver.pid
107 denise.eckstein 1.76 %global PEGASUS_REPOSITORY_DIR /var/lib/Pegasus/repository
108                      %global PEGASUS_PREV_REPOSITORY_DIR_NAME prev_repository
109                      %global PEGASUS_REPOSITORY_PARENT_DIR /var/lib/Pegasus
110                      %global PEGASUS_PREV_REPOSITORY_DIR /var/lib/Pegasus/prev_repository
111                      %global PEGASUS_SBIN_DIR /usr/sbin
112                      %global PEGASUS_DOC_DIR /usr/share/doc/tog-pegasus-2.5
113 w.otsuka        1.1  
114 denise.eckstein 1.74 %global PEGASUS_RPM_ROOT  $RPM_BUILD_DIR/$RPM_PACKAGE_NAME-$RPM_PACKAGE_VERSION
115 denise.eckstein 1.32 %global PEGASUS_RPM_HOME $RPM_BUILD_ROOT/build/tog-pegasus
116 denise.eckstein 1.76 %global PEGASUS_INSTALL_LOG /var/lib/Pegasus/log/install.log
117 denise.eckstein 1.35 
118 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec
119                      #
120 w.otsuka        1.54 %ifarch ia64
121 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_IA64_GNU
122 w.otsuka        1.1  %else
123 w.otsuka        1.54 %ifarch x86_64
124                      %global PEGASUS_HARDWARE_PLATFORM LINUX_X86_64_GNU
125                      %else
126 w.otsuka        1.24 %ifarch ppc
127 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC_GNU
128 w.otsuka        1.24 %else
129 denise.eckstein 1.44 %ifarch ppc64 pseries
130 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_PPC64_GNU
131 w.otsuka        1.24 %else
132                      %ifarch s390
133 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES_GNU
134 w.otsuka        1.24 %else
135                      %ifarch s390x zseries
136 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_ZSERIES64_GNU
137 w.otsuka        1.24 %else
138 denise.eckstein 1.32 %global PEGASUS_HARDWARE_PLATFORM LINUX_IX86_GNU
139 denise.eckstein 1.74 %endif 
140                      %endif 
141                      %endif 
142                      %endif 
143 w.otsuka        1.1  %endif
144 w.otsuka        1.24 %endif
145 denise.eckstein 1.74 #
146                      # End of section pegasus/rpm/tog-specfiles/tog-pegasus-arch.spec
147 w.otsuka        1.55 
148 denise.eckstein 1.32 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
149 denise.eckstein 1.74 #
150 w.otsuka        1.69 %package devel
151 denise.eckstein 1.32 Summary: The OpenPegasus Software Development Kit
152                      Group: Systems Management/Base
153                      Requires: tog-pegasus >= %{version}
154 w.otsuka        1.69 Obsoletes: tog-pegasus-sdk
155 w.otsuka        1.1  
156 w.otsuka        1.69 %description devel
157 denise.eckstein 1.74 The OpenPegasus WBEM Services for Linux SDK is the developer's kit for the
158                      OpenPegasus WBEM Services for Linux release. It provides Linux C++ developers
159                      with the WBEM files required to build WBEM Clients and Providers. It also
160                      supports C provider developers via the CMPI interface.
161 w.otsuka        1.1  
162 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
163 denise.eckstein 1.32 %package test
164                      Summary: The OpenPegasus Tests
165                      Group: Systems Management/Base
166                      Requires: tog-pegasus >= %{version} 
167 w.otsuka        1.1  
168 denise.eckstein 1.32 %description test
169                      The OpenPegasus WBEM tests for the OpenPegasus %{version} Linux rpm.
170 w.otsuka        1.56 %endif
171 denise.eckstein 1.74 #
172                      #End of section pegasus/rpm/tog-specfiles/tog-pegasus-packages.spec
173 w.otsuka        1.1  
174 denise.eckstein 1.32 %prep
175 denise.eckstein 1.74 %setup -q -n %{name}-%{version}
176 w.otsuka        1.28 
177 denise.eckstein 1.32 %build
178                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec
179 denise.eckstein 1.74 #
180 denise.eckstein 1.32 export PEGASUS_ROOT=%PEGASUS_RPM_ROOT
181                      export PEGASUS_HOME=%PEGASUS_RPM_HOME
182                      export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM
183 denise.eckstein 1.74 export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
184 denise.eckstein 1.32 export PEGASUS_ENVVAR_FILE=$PEGASUS_ROOT/env_var_Linux.status
185 w.otsuka        1.1  
186 denise.eckstein 1.32 export OPENSSL_HOME=%OPENSSL_HOME
187                      export OPENSSL_BIN=%OPENSSL_BIN
188                      export LD_LIBRARY_PATH=$PEGASUS_HOME/lib
189                      export PATH=$PEGASUS_HOME/bin:$PATH
190 w.otsuka        1.1  
191 denise.eckstein 1.74 export PEGASUS_EXTRA_C_FLAGS="$RPM_OPT_FLAGS -g"
192 denise.eckstein 1.32 export PEGASUS_EXTRA_CXX_FLAGS="$PEGASUS_EXTRA_C_FLAGS"
193 denise.eckstein 1.74 export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS"
194                      #export PEGASUS_EXTRA_LINK_FLAGS="$RPM_OPT_FLAGS -g -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack"
195 w.otsuka        1.1  
196 denise.eckstein 1.32 make -f $PEGASUS_ROOT/Makefile.Release create_ProductVersionFile
197 denise.eckstein 1.76 make -f $PEGASUS_ROOT/Makefile.Release create_CommonProductDirectoriesInclude
198                      make -f $PEGASUS_ROOT/Makefile.Release create_ConfigProductDirectoriesInclude
199 denise.eckstein 1.32 make -f $PEGASUS_ROOT/Makefile.Release all
200                      make -f $PEGASUS_ROOT/Makefile.Release repository
201 denise.eckstein 1.74 #
202 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-build.spec
203 w.otsuka        1.27 
204 denise.eckstein 1.32 %install
205                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec
206 denise.eckstein 1.74 #
207 denise.eckstein 1.32 export PEGASUS_ROOT=%PEGASUS_RPM_ROOT
208                      export PEGASUS_HOME=%PEGASUS_RPM_HOME
209                      export PEGASUS_PLATFORM=%PEGASUS_HARDWARE_PLATFORM
210 denise.eckstein 1.74 export PEGASUS_ARCH_LIB=%PEGASUS_ARCH_LIB
211 denise.eckstein 1.32 export PEGASUS_ENVVAR_FILE=$PEGASUS_ROOT/env_var_Linux.status
212 w.otsuka        1.1  
213 denise.eckstein 1.32 export OPENSSL_BIN=%OPENSSL_BIN
214                      export LD_LIBRARY_PATH=$PEGASUS_HOME/lib
215                      export PATH=$PEGASUS_HOME/bin:$PATH
216 w.otsuka        1.1  
217 denise.eckstein 1.32 export PEGASUS_STAGING_DIR=$RPM_BUILD_ROOT
218 w.otsuka        1.1  
219 w.otsuka        1.56 %if %{PEGASUS_BUILD_TEST_RPM}
220 denise.eckstein 1.74 make -f $PEGASUS_ROOT/Makefile.Release stage \
221                          PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR \
222                          PEGASUS_BUILD_TEST_RPM=%{PEGASUS_BUILD_TEST_RPM}
223 w.otsuka        1.56 %else
224 denise.eckstein 1.74 make -f $PEGASUS_ROOT/Makefile.Release stage \
225                          PEGASUS_STAGING_DIR=$PEGASUS_STAGING_DIR
226 w.otsuka        1.56 %endif
227 denise.eckstein 1.74 
228                      [ "$PEGASUS_HOME" != "/" ] && [ -d $PEGASUS_HOME ] && rm -rf $PEGASUS_HOME;
229                      #
230 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-install.spec
231 w.otsuka        1.1  
232 denise.eckstein 1.32 %clean
233                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-clean.spec
234 denise.eckstein 1.74 #
235 w.otsuka        1.77 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT;
236                      [ "${RPM_BUILD_DIR}" != "/" ] && rm -rf ${RPM_BUILD_DIR}/%{name}-%{version};
237 denise.eckstein 1.74 #
238 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-clean.spec
239 w.otsuka        1.1  
240                      %pre
241 denise.eckstein 1.74 # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
242                      #           install   remove   upgrade  reinstall
243                      # pre          1        -         2         2
244                      #
245                      # If it exists, the active OpenPegasus Repository
246                      #    directory, %PEGASUS_REPOSITORY_DIR is renamed
247                      #    to %PEGASUS_PREV_REPOSITORY_DIR.  If
248                      #    %PEGASUS_PREV_REPOSITORY_DIR already exists,
249                      #    it is saved as an archive file.
250 denise.eckstein 1.32 
251 denise.eckstein 1.74 if [ -d %PEGASUS_REPOSITORY_DIR"/root#PG_Internal" ]; then
252                         #
253                         # Save the current repository to prev_repository
254                         #
255                         if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
256                              /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
257                                  %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
258                                  %PEGASUS_PREV_REPOSITORY_DIR_NAME
259                              rm -rf %PEGASUS_PREV_REPOSITORY_DIR
260                         fi
261                         /bin/mv %PEGASUS_REPOSITORY_DIR %PEGASUS_PREV_REPOSITORY_DIR
262                      fi
263                      if [ $1 -eq 1 ]; then
264                         #  Create the 'pegasus' user and group:
265                         /usr/sbin/groupadd pegasus > /dev/null 2>&1 || :;
266                         /usr/sbin/useradd -c "tog-pegasus OpenPegasus WBEM/CIM services" \
267                              -g pegasus -s /sbin/nologin -r -d %PEGASUS_VARDATA_DIR pegasus \
268                               > /dev/null 2>&1 || :;
269 w.otsuka        1.1  fi
270 denise.eckstein 1.74 #
271 denise.eckstein 1.32 # End of section pegasus/rpm/tog-specfiles/tog-pegasus-pre.spec
272 w.otsuka        1.1  
273                      %post
274 w.otsuka        1.24 if [ $1 -eq 1 ]; then
275 denise.eckstein 1.35    echo `date` > %PEGASUS_INSTALL_LOG 2>&1
276 denise.eckstein 1.76    %define PEGASUS_CONFIG_DIR /etc/Pegasus
277                         %define PEGASUS_PEM_DIR /etc/Pegasus
278 denise.eckstein 1.32    %define PEGASUS_SSL_CERT_FILE server.pem
279                         %define PEGASUS_SSL_KEY_FILE file.pem
280                         %define PEGASUS_SSL_TRUSTSTORE client.pem
281                      
282                         # Create Symbolic Links for SDK Libraries
283                         #
284 denise.eckstein 1.76    ln -sf libpegclient.so.1 /usr/lib/libpegclient.so
285                         ln -sf libpegcommon.so.1 /usr/lib/libpegcommon.so
286                         ln -sf libpegprovider.so.1 /usr/lib/libpegprovider.so
287                         ln -sf libDefaultProviderManager.so.1 /usr/lib/libDefaultProviderManager.so
288                         ln -sf libCIMxmlIndicationHandler.so.1 /usr/lib/libCIMxmlIndicationHandler.so
289                         ln -sf libCMPIProviderManager.so.1 /usr/lib/libCMPIProviderManager.so
290 denise.eckstein 1.32 
291                         # Create Symbolic Links for Packaged Provider Libraries
292                         #
293 denise.eckstein 1.76    ln -sf libComputerSystemProvider.so.1 /usr/lib/Pegasus/providers/libComputerSystemProvider.so
294                         ln -sf libOSProvider.so.1 /usr/lib/Pegasus/providers/libOSProvider.so
295                         ln -sf libProcessProvider.so.1 /usr/lib/Pegasus/providers/libProcessProvider.so
296 denise.eckstein 1.32 
297                      
298                      # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
299 denise.eckstein 1.74 #
300                      #           install   remove   upgrade  reinstall
301                      # %post        1        -         2         2
302                      #
303                         if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
304                             # Running Repository Upgrade utility
305                             %PEGASUS_SBIN_DIR/repupgrade %PEGASUS_PREV_REPOSITORY_DIR \
306                                 %PEGASUS_REPOSITORY_DIR 2>>%PEGASUS_INSTALL_LOG
307                             /bin/tar -C %PEGASUS_REPOSITORY_PARENT_DIR -cf \
308                                 %PEGASUS_PREV_REPOSITORY_DIR`date '+%Y-%m-%d-%s.%N'`.tar \
309                                 %PEGASUS_PREV_REPOSITORY_DIR_NAME
310                             rm -rf %PEGASUS_PREV_REPOSITORY_DIR
311 denise.eckstein 1.32    fi
312 denise.eckstein 1.74    if [ $1 -eq 1 ]; then
313                      %if %{AUTOSTART}
314                             /sbin/chkconfig --add tog-pegasus
315                      %endif
316                         :;
317                         elif [ $1 -gt 0 ]; then
318 a.dunfey        1.78.2.1        /etc/init.d/tog-pegasus condrestart
319 denise.eckstein 1.74        :;
320 denise.eckstein 1.32        fi
321 denise.eckstein 1.74     #
322 denise.eckstein 1.32     # End of section pegasus/rpm/tog-specfiles/tog-pegasus-post.spec
323 w.otsuka        1.1      
324 w.otsuka        1.57     elif [ $1 -gt 1 ]; then
325 denise.eckstein 1.74        if [ -d %PEGASUS_PREV_REPOSITORY_DIR ]; then
326 w.otsuka        1.71          # Running Repository Upgrade utility
327                               %PEGASUS_SBIN_DIR/repupgrade 2>>%PEGASUS_INSTALL_LOG
328                             fi
329 a.dunfey        1.78.2.1    /etc/init.d/tog-pegasus condrestart
330 denise.eckstein 1.74        :;
331 w.otsuka        1.24     fi
332 denise.eckstein 1.74     
333 w.otsuka        1.1      %preun
334 denise.eckstein 1.74     # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec
335                          #           install   remove   upgrade  reinstall
336                          #  preun       -        0         1         -
337 w.otsuka        1.24     if [ $1 -eq 0 ]; then
338 denise.eckstein 1.32        # Check if the cimserver is running
339 denise.eckstein 1.74        isRunning=`ps -el | grep cimserver |  grep -v "grep cimserver"`
340 denise.eckstein 1.32        if [ "$isRunning" ]; then
341 denise.eckstein 1.74           %PEGASUS_SBIN_DIR/cimserver -s
342                             fi 
343                             /sbin/chkconfig --del tog-pegasus;
344                             rm -f %PEGASUS_VARDATA_DIR/cimserver_current.conf;
345                             rm -f %PEGASUS_INSTALL_LOG;
346                             [ -d %PEGASUS_REPOSITORY_DIR ]  && rm -rf %PEGASUS_REPOSITORY_DIR;
347                             [ -d %PEGASUS_VARDATA_CACHE_DIR ]  && rm -rf %PEGASUS_VARDATA_CACHE_DIR;
348                             rm -f %PEGASUS_LOCAL_DOMAIN_SOCKET_PATH;
349                             rm -f %PEGASUS_CIMSERVER_START_FILE;
350 w.otsuka        1.24     fi
351 denise.eckstein 1.74     #
352                          # End of section pegasus/rpm/tog-specfiles/tog-pegasus-preun.spec
353 w.otsuka        1.1      
354 w.otsuka        1.69     %preun devel
355 denise.eckstein 1.76     make --directory /usr/share/Pegasus/samples -s clean
356 denise.eckstein 1.44     
357 w.otsuka        1.56     %if %{PEGASUS_BUILD_TEST_RPM}
358 denise.eckstein 1.46     %preun test
359 denise.eckstein 1.76     make --directory /usr/share/Pegasus/test -s unsetupTEST
360                          [ -d /var/lib/Pegasus/testrepository ] &&  rm -rf /var/lib/Pegasus/testrepository;
361 denise.eckstein 1.46     
362 w.otsuka        1.56     %endif
363 w.otsuka        1.1      %postun
364 w.otsuka        1.24     if [ $1 -eq 0 ]; then
365 denise.eckstein 1.32        export LC_ALL=C
366 w.otsuka        1.1      fi
367 denise.eckstein 1.74     # Start of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec
368                          #
369                          #           install   remove   upgrade  reinstall
370                          #  postun      -        0         1         -
371                          if [ $1 -eq 0 ]; then
372                             /usr/sbin/userdel pegasus > /dev/null 2>&1 || :;
373 w.otsuka        1.78        /usr/sbin/groupdel pegasus > /dev/null 2>&1 || :;
374 denise.eckstein 1.74     fi;
375                          #
376                          # End of section pegasus/rpm/tog-specfiles/tog-pegasus-postun.spec
377 w.otsuka        1.1      
378                          %files
379 denise.eckstein 1.76     %defattr(600, root, pegasus, 755)
380                          %dir /usr/share/doc/tog-pegasus-2.5
381                          %dir /usr/lib/Pegasus
382                          %dir /usr/lib/Pegasus/providers
383                          %dir /usr/share/Pegasus
384                          %dir /usr/share/Pegasus/scripts
385                          %dir /usr/share/Pegasus/mof
386                          %dir /usr/share/Pegasus/mof/CIM29
387                          %dir /usr/share/Pegasus/mof/Pegasus
388                          %dir /var/lib/Pegasus
389                          %dir /var/lib/Pegasus/cache
390                          %dir /var/lib/Pegasus/log
391                          %dir /var/lib/Pegasus/cache/localauth
392 denise.eckstein 1.74     %dir /var/run/tog-pegasus
393                          
394 denise.eckstein 1.76     %dir %attr(750, root, pegasus) /etc/Pegasus
395 denise.eckstein 1.74     %dir %attr(1555,root,pegasus) /var/run/tog-pegasus/socket
396 denise.eckstein 1.76     %dir %attr(1777,root,pegasus) /var/lib/Pegasus/cache/trace
397 denise.eckstein 1.74     
398 denise.eckstein 1.76     %dir %attr(750, root, pegasus) /var/lib/Pegasus/repository
399                          /var/lib/Pegasus/repository/*
400                          /usr/share/Pegasus/mof/CIM29/*
401                          /usr/share/Pegasus/mof/Pegasus/*
402 denise.eckstein 1.74     
403                          %config %attr(750,root,pegasus) /etc/init.d/tog-pegasus
404 denise.eckstein 1.76     %config(noreplace) /var/lib/Pegasus/cimserver_planned.conf
405                          %config(noreplace) /etc/Pegasus/access.conf
406 denise.eckstein 1.74     %config(noreplace) /etc/pam.d/wbem
407                          
408 denise.eckstein 1.76     %ghost %config(noreplace) /etc/Pegasus/ssl.cnf
409                          %ghost %config(noreplace) /etc/Pegasus/client.pem
410                          %ghost %config(noreplace) /etc/Pegasus/server.pem
411                          %ghost %config(noreplace) /etc/Pegasus/file.pem
412                          %ghost /var/lib/Pegasus/log/install.log
413                          
414                          %attr(750,root,pegasus) /usr/sbin/*
415                          %attr(755,root,pegasus) /usr/bin/*
416                          %attr(755,root,pegasus) /usr/lib/*.so.1
417                          %attr(755,root,pegasus) /usr/lib/Pegasus/providers/*.so.1
418                          %attr(750,root,pegasus) /usr/share/Pegasus/scripts/*
419                          %attr(644,root,pegasus) /usr/share/man/man1/*
420                          %attr(640,root,pegasus) /usr/share/man/man8/*
421                          
422                          %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/Admin_Guide_Release.pdf
423                          %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/PegasusSSLGuidelines.htm
424                          %doc %attr(444,root,pegasus) /usr/share/doc/tog-pegasus-2.5/license.txt
425                          /usr/lib/libpegclient.so
426                          /usr/lib/libpegcommon.so
427                          /usr/lib/libpegprovider.so
428                          /usr/lib/libDefaultProviderManager.so
429 denise.eckstein 1.76     /usr/lib/libCIMxmlIndicationHandler.so
430                          /usr/lib/libCMPIProviderManager.so
431                          /usr/lib/Pegasus/providers/libComputerSystemProvider.so
432                          /usr/lib/Pegasus/providers/libOSProvider.so
433                          /usr/lib/Pegasus/providers/libProcessProvider.so
434 w.otsuka        1.1      
435 w.otsuka        1.69     %files devel
436 denise.eckstein 1.76     %defattr(644,root,pegasus,755)
437                          /usr/include
438                          /usr/share/Pegasus/samples
439                          /usr/share/doc/tog-pegasus-2.5/*
440                          /usr/share/Pegasus/html
441                          %attr(755,root,pegasus) /usr/lib/Pegasus/providers/*.so
442 w.otsuka        1.28     
443 w.otsuka        1.56     %if %{PEGASUS_BUILD_TEST_RPM}
444 w.otsuka        1.28     %files test
445 denise.eckstein 1.74     %defattr(-,root,pegasus,-)
446 denise.eckstein 1.76     /usr/share/Pegasus/test
447                          /var/lib/Pegasus/testrepository
448 w.otsuka        1.56     %endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2