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

  1 a.dunfey 1.10.48.1 #//%2006////////////////////////////////////////////////////////////////////////
  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                    #// 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                    #// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12                    #// EMC Corporation; Symantec Corporation; The Open Group.
 13                    #//
 14                    #// Permission is hereby granted, free of charge, to any person obtaining a copy
 15                    #// of this software and associated documentation files (the "Software"), to
 16                    #// deal in the Software without restriction, including without limitation the
 17                    #// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18                    #// sell copies of the Software, and to permit persons to whom the Software is
 19                    #// furnished to do so, subject to the following conditions:
 20                    #// 
 21                    #// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 a.dunfey 1.10.48.1 #// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23                    #// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24                    #// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25                    #// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26                    #// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27                    #// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28                    #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29                    #//
 30                    #//==============================================================================
 31 sage     1.1       #
 32                    # pegasus-1.0-spec
 33                    #
 34                    # Package spec for PEGASUS
 35                    #
 36                    
 37                    Summary: PEGASUS CIMOM for Linux
 38                    Name: pegasus
 39 sage     1.10      #Autoreqprov:  on
 40                    Autoprov:  on
 41                    Autoreq: 0
 42 sage     1.1       Version: 1.0
 43 mike     1.4       Release: 5
 44 sage     1.1       Group: Systems Management/Base
 45                    Copyright: MIT Public Licence
 46 mike     1.4       BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
 47 sage     1.1       Packager: Markus Mueller <markus_mueller@de.ibm.com>
 48 sage     1.10      Requires: glibc >= 2.2.2, openssl >= 0.9.6
 49 sage     1.7       Provides: cimserver pegasus-1.0
 50 mike     1.4       URL:    http://www.opengroup.org/pegasus
 51                    Source: ftp://www.opengroup.org/pegasus/pegasus-%{version}.tar.gz
 52 sage     1.1       
 53                    #Patch0: cimom-peg1.patch.gz
 54                    #Patch1: cimom-peg2.patch.gz
 55                    
 56                    %description
 57                    Pegasus CIMOM enables a Linux System for WBEM (visit http://www.dmtf.org for
 58                    more information about CIM and WBEM). With appropriate instrumentation
 59                    Linux can provide systems management information or be managed by a remote
 60                    client application.
 61 mike     1.4       This package requires the standard C-library, a threading library like
 62                    linuxthreads or GNU pth and openssl.
 63                    
 64                    %package devel
 65                    Summary:      The Pegasus source tree
 66                    Group:        Systems Management/Base
 67 sage     1.7       Autoreq: 0
 68 sage     1.10      Requires: pegasus-1.0 openssl-devel >= 0.9.6
 69 mike     1.4       
 70                    %description devel
 71                    This package contains the Pegasus source tree, header files and
 72                    static libraries (if any).
 73 sage     1.1       
 74                    %prep
 75 sage     1.8       #clean up
 76 sage     1.1       rm -rf $RPM_BUILD_ROOT
 77 sage     1.8       
 78                    %setup
 79 sage     1.5       # Copy the necessary include files
 80 sage     1.7       $PEGASUS_ROOT/rpm/buildincludes $PEGASUS_ROOT $RPM_BUILD_ROOT /usr/src/packages/BUILD/pegasus-1.0
 81 sage     1.1       
 82 mike     1.4       %build
 83 sage     1.1       export PEGASUS_ROOT=/usr/src/packages/BUILD/pegasus-1.0
 84 mike     1.4       export PEGASUS_HOME=$RPM_BUILD_ROOT/usr/pegasus-1.0
 85 sage     1.1       export PEGASUS_PLATFORM=LINUX_IX86_GNU
 86 sage     1.5       export PEGASUS_HAS_SSL=yes
 87 sage     1.1       make depend
 88                    make
 89 sage     1.7       
 90 mike     1.4       #%ifarch ppc s390 s390x sparc sparc64
 91                    #%endif
 92 sage     1.1       
 93                    %install
 94                    
 95 sage     1.7       # Copy the necessary include files
 96                    #$PEGASUS_ROOT/rpm/buildincludes $PEGASUS_ROOT $RPM_BUILD_ROOT /usr/src/packages/BUILD/pegasus-1.0
 97                    #testtest
 98                    mkdir -p $RPM_BUILD_ROOT/usr/pegasus-1.0/bin
 99                    touch $RPM_BUILD_ROOT/usr/pegasus-1.0/bin/blah
100                    
101 sage     1.1       # Copy binaries and libraries
102 mike     1.4       mkdir -p $RPM_BUILD_ROOT/usr/bin
103                    cp -a $RPM_BUILD_ROOT/usr/pegasus-1.0/bin/* $RPM_BUILD_ROOT/usr/bin
104                    mkdir -p $RPM_BUILD_ROOT/usr/lib
105                    cp -a $RPM_BUILD_ROOT/usr/pegasus-1.0/lib/* $RPM_BUILD_ROOT/usr/lib
106 sage     1.1       
107                    # Copy the schema
108                    
109 sage     1.9       mkdir -p $RPM_BUILD_ROOT/var/lib/pegasus/Schemas
110 mike     1.4       mkdir -p $RPM_BUILD_ROOT/var/lib/pegasus/repository
111 sage     1.9       cp -a $PEGASUS_ROOT/Schemas  $RPM_BUILD_ROOT/var/lib/pegasus
112 sage     1.1       #
113                    mkdir -p $RPM_BUILD_ROOT/etc/rc.d/
114                    cp $PEGASUS_ROOT/rpm/pegasus $RPM_BUILD_ROOT/etc/rc.d/
115                    
116                    mkdir -p $RPM_BUILD_ROOT/var/pegasus/log
117 mike     1.4       mkdir -p $RPM_BUILD_ROOT/var/lib/pegasus
118 sage     1.1       mkdir -p $RPM_BUILD_ROOT/etc/pegasus
119                    touch $RPM_BUILD_ROOT/etc/pegasus/pegasus.conf
120                    
121                    #make INSTALLROOT=$RPM_BUILD_ROOT install
122                    #%__mkdir -p $RPM_BUILD_ROOT/usr/pegasus/lib/mof
123                    #%__mkdir -p $RPM_BUILD_ROOT/var/pegasus
124                    
125 mike     1.4       %clean
126                    make clean
127                    [ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
128                    
129 sage     1.1       %post
130                    ldconfig
131 sage     1.9       #cimmof -R/var/lib/pegasus -I/var/lib/pegasus/mof -nroot /var/lib/pegasus/mof/CIM_Core25.mof
132                    #cimmof -R/var/lib/pegasus -I/var/lib/pegasus/mof -nroot/cimv2 /var/lib/pegasus/mof/CIM_Schema25.mof
133                    
134                    # Create the repository
135                    pushd /var/lib/pegasus/Schemas/Pegasus
136                    PEGASUS_HOME=/var/lib/pegasus make repository
137                    popd
138                    
139 sage     1.1       sbin/insserv etc/init.d/pegasus
140 mike     1.4       echo "please add the path /usr/lib/pegasus to the ld.so.conf"
141 sage     1.1       %postun
142 mike     1.4       rm -rf /var/lib/pegasus/repository
143 sage     1.1       sbin/insserv etc/init.d
144                    
145 sage     1.6       %files devel -f rpm_pegasus_include_files
146 sage     1.1       
147                    %defattr(-,root,root,0755)
148                    %doc doc/*.txt doc/DOCREMARKS doc/HISTORY doc/NOTES
149                    
150 mike     1.4       %files
151                    
152 sage     1.7       #%dir %attr(-,root,root) /usr/bin
153                    #%dir %attr(-,root,root) /usr/lib
154 sage     1.9       #%dir %attr(-,root,root) /var/lib/pegasus/Schemas
155 sage     1.7       
156 mike     1.4       %dir %attr(-,root,root) /usr/include
157 sage     1.1       %dir %attr(-,root,root) /var/pegasus/log
158 mike     1.4       %dir %attr(-,root,root) /var/lib/pegasus
159                    %dir %attr(-,root,root) /var/lib/pegasus/repository
160 sage     1.1       
161                    %config %attr(-,root,root) /etc/pegasus/pegasus.conf
162                    %config %attr(-,root,root) /etc/rc.d/pegasus
163                    
164 sage     1.5       %attr(-,root,root) /usr/lib/
165                    
166                    %attr(-,root,root) /usr/bin/
167 mike     1.4       
168 sage     1.9       %attr(-,root,root) /var/lib/pegasus/Schemas/

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2