version 1.3, 2001/07/05 14:22:00
|
version 1.11, 2006/01/30 16:16:24
|
|
|
|
#//%2006//////////////////////////////////////////////////////////////////////// |
|
#// |
|
#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
|
#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
#// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
#// IBM Corp.; EMC Corporation, The Open Group. |
|
#// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; Symantec Corporation; The Open Group. |
|
#// |
|
#// Permission is hereby granted, free of charge, to any person obtaining a copy |
|
#// of this software and associated documentation files (the "Software"), to |
|
#// deal in the Software without restriction, including without limitation the |
|
#// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
|
#// sell copies of the Software, and to permit persons to whom the Software is |
|
#// furnished to do so, subject to the following conditions: |
|
#// |
|
#// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN |
|
#// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED |
|
#// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT |
|
#// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
|
#// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
|
#// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
|
#// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
#// |
|
#//============================================================================== |
# | # |
# pegasus-1.0-spec | # pegasus-1.0-spec |
# | # |
|
|
| |
Summary: PEGASUS CIMOM for Linux | Summary: PEGASUS CIMOM for Linux |
Name: pegasus | Name: pegasus |
|
#Autoreqprov: on |
|
Autoprov: on |
|
Autoreq: 0 |
Version: 1.0 | Version: 1.0 |
Release: 1 |
Release: 5 |
Group: Systems Management/Base | Group: Systems Management/Base |
Copyright: MIT Public Licence | Copyright: MIT Public Licence |
BuildRoot: %{_tmppath}/PEGASUS-root |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
Packager: Markus Mueller <markus_mueller@de.ibm.com> | Packager: Markus Mueller <markus_mueller@de.ibm.com> |
|
Requires: glibc >= 2.2.2, openssl >= 0.9.6 |
Source: ftp://www.opengroup.org/pegasus/pegasus-1.0.tar.gz |
Provides: cimserver pegasus-1.0 |
#Source1: ftp://www.opengroup.org/pegasus/aic.tar.gz |
URL: http://www.opengroup.org/pegasus |
|
Source: ftp://www.opengroup.org/pegasus/pegasus-%{version}.tar.gz |
| |
#Patch0: cimom-peg1.patch.gz | #Patch0: cimom-peg1.patch.gz |
#Patch1: cimom-peg2.patch.gz | #Patch1: cimom-peg2.patch.gz |
|
|
more information about CIM and WBEM). With appropriate instrumentation | more information about CIM and WBEM). With appropriate instrumentation |
Linux can provide systems management information or be managed by a remote | Linux can provide systems management information or be managed by a remote |
client application. | client application. |
This package requires only the standard C-library. |
This package requires the standard C-library, a threading library like |
|
linuxthreads or GNU pth and openssl. |
|
|
|
%package devel |
|
Summary: The Pegasus source tree |
|
Group: Systems Management/Base |
|
Autoreq: 0 |
|
Requires: pegasus-1.0 openssl-devel >= 0.9.6 |
|
|
|
%description devel |
|
This package contains the Pegasus source tree, header files and |
|
static libraries (if any). |
| |
%prep | %prep |
|
#clean up |
rm -rf $RPM_BUILD_ROOT | rm -rf $RPM_BUILD_ROOT |
| |
#%setup -c -T -a 0 |
|
#%setup -c -T -a 1 -D |
|
#%setup -c -T -a 2 -D |
|
#%setup -c -T -a 3 -D |
|
%setup | %setup |
export PEGASUS_ROOT=/usr/src/packages/BUILD/pegasus-1.0 |
# Copy the necessary include files |
export PEGASUS_HOME=$RPM_BUILD_ROOT/usr/local/pegasus-1.0 |
$PEGASUS_ROOT/rpm/buildincludes $PEGASUS_ROOT $RPM_BUILD_ROOT /usr/src/packages/BUILD/pegasus-1.0 |
export PEGASUS_PLATFORM=LINUX_IX86_GNU |
|
make depend |
|
|
|
#%patch0 -p1 |
|
#%patch1 -p1 |
|
| |
%build | %build |
|
|
export PEGASUS_ROOT=/usr/src/packages/BUILD/pegasus-1.0 | export PEGASUS_ROOT=/usr/src/packages/BUILD/pegasus-1.0 |
export PEGASUS_HOME=$RPM_BUILD_ROOT/usr/local |
export PEGASUS_HOME=$RPM_BUILD_ROOT/usr/pegasus-1.0 |
export PEGASUS_PLATFORM=LINUX_IX86_GNU | export PEGASUS_PLATFORM=LINUX_IX86_GNU |
#export PATH=$RPM_BUILD_ROOT/usr/local/pegasus-1.0/bin:$PATH |
export PEGASUS_HAS_SSL=yes |
|
make depend |
make | make |
| |
|
#%ifarch ppc s390 s390x sparc sparc64 |
|
#%endif |
| |
%install | %install |
| |
|
# Copy the necessary include files |
|
#$PEGASUS_ROOT/rpm/buildincludes $PEGASUS_ROOT $RPM_BUILD_ROOT /usr/src/packages/BUILD/pegasus-1.0 |
|
#testtest |
|
mkdir -p $RPM_BUILD_ROOT/usr/pegasus-1.0/bin |
|
touch $RPM_BUILD_ROOT/usr/pegasus-1.0/bin/blah |
|
|
# Copy binaries and libraries | # Copy binaries and libraries |
#mkdir -p $RPM_BUILD_ROOT/usr/local/bin |
mkdir -p $RPM_BUILD_ROOT/usr/bin |
#cp -a $RPM_BUILD_ROOT/usr/local/pegasus-1.0/bin/* $RPM_BUILD_ROOT/usr/local/bin |
cp -a $RPM_BUILD_ROOT/usr/pegasus-1.0/bin/* $RPM_BUILD_ROOT/usr/bin |
#mkdir -p $RPM_BUILD_ROOT/usr/local/lib |
mkdir -p $RPM_BUILD_ROOT/usr/lib |
#cp -a $RPM_BUILD_ROOT/usr/local/pegasus-1.0/lib/* $RPM_BUILD_ROOT/usr/local/lib |
cp -a $RPM_BUILD_ROOT/usr/pegasus-1.0/lib/* $RPM_BUILD_ROOT/usr/lib |
| |
# Copy the schema | # Copy the schema |
| |
mkdir -p $RPM_BUILD_ROOT/etc/pegasus/mof |
mkdir -p $RPM_BUILD_ROOT/var/lib/pegasus/Schemas |
mkdir -p $RPM_BUILD_ROOT/etc/pegasus/repository |
mkdir -p $RPM_BUILD_ROOT/var/lib/pegasus/repository |
cp -a $PEGASUS_ROOT/Schemas/CIM25/*.mof $RPM_BUILD_ROOT/etc/pegasus/mof |
cp -a $PEGASUS_ROOT/Schemas $RPM_BUILD_ROOT/var/lib/pegasus |
|
|
# | # |
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/ | mkdir -p $RPM_BUILD_ROOT/etc/rc.d/ |
cp $PEGASUS_ROOT/rpm/pegasus $RPM_BUILD_ROOT/etc/rc.d/ | cp $PEGASUS_ROOT/rpm/pegasus $RPM_BUILD_ROOT/etc/rc.d/ |
| |
mkdir -p $RPM_BUILD_ROOT/var/pegasus/log | mkdir -p $RPM_BUILD_ROOT/var/pegasus/log |
|
mkdir -p $RPM_BUILD_ROOT/var/lib/pegasus |
mkdir -p $RPM_BUILD_ROOT/etc/pegasus | mkdir -p $RPM_BUILD_ROOT/etc/pegasus |
touch $RPM_BUILD_ROOT/etc/pegasus/pegasus.conf | touch $RPM_BUILD_ROOT/etc/pegasus/pegasus.conf |
| |
|
|
#%__mkdir -p $RPM_BUILD_ROOT/usr/pegasus/lib/mof | #%__mkdir -p $RPM_BUILD_ROOT/usr/pegasus/lib/mof |
#%__mkdir -p $RPM_BUILD_ROOT/var/pegasus | #%__mkdir -p $RPM_BUILD_ROOT/var/pegasus |
| |
|
%clean |
|
make clean |
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; |
|
|
%post | %post |
ldconfig | ldconfig |
|
#cimmof -R/var/lib/pegasus -I/var/lib/pegasus/mof -nroot /var/lib/pegasus/mof/CIM_Core25.mof |
|
#cimmof -R/var/lib/pegasus -I/var/lib/pegasus/mof -nroot/cimv2 /var/lib/pegasus/mof/CIM_Schema25.mof |
|
|
|
# Create the repository |
|
pushd /var/lib/pegasus/Schemas/Pegasus |
|
PEGASUS_HOME=/var/lib/pegasus make repository |
|
popd |
|
|
sbin/insserv etc/init.d/pegasus | sbin/insserv etc/init.d/pegasus |
|
echo "please add the path /usr/lib/pegasus to the ld.so.conf" |
%postun | %postun |
|
rm -rf /var/lib/pegasus/repository |
sbin/insserv etc/init.d | sbin/insserv etc/init.d |
| |
%files |
%files devel -f rpm_pegasus_include_files |
| |
%defattr(-,root,root,0755) | %defattr(-,root,root,0755) |
%doc doc/*.txt doc/DOCREMARKS doc/HISTORY doc/NOTES | %doc doc/*.txt doc/DOCREMARKS doc/HISTORY doc/NOTES |
%doc doc/WorkPapers/WritingProviders.txt |
|
| |
%dir %attr(-,root,root) /usr/local/bin |
%files |
%dir %attr(-,root,root) /usr/local/lib |
|
|
#%dir %attr(-,root,root) /usr/bin |
|
#%dir %attr(-,root,root) /usr/lib |
|
#%dir %attr(-,root,root) /var/lib/pegasus/Schemas |
|
|
|
%dir %attr(-,root,root) /usr/include |
%dir %attr(-,root,root) /var/pegasus/log | %dir %attr(-,root,root) /var/pegasus/log |
%dir %attr(-,root,root) /etc/pegasus/mof |
%dir %attr(-,root,root) /var/lib/pegasus |
%dir %attr(-,root,root) /etc/pegasus/repository |
%dir %attr(-,root,root) /var/lib/pegasus/repository |
| |
%config %attr(-,root,root) /etc/pegasus/pegasus.conf | %config %attr(-,root,root) /etc/pegasus/pegasus.conf |
%config %attr(-,root,root) /etc/rc.d/pegasus | %config %attr(-,root,root) /etc/rc.d/pegasus |
| |
%attr(-,root,root) /usr/local/lib/libpegserver.so |
%attr(-,root,root) /usr/lib/ |
%attr(-,root,root) /usr/local/lib/libpegrepository.so |
|
%attr(-,root,root) /usr/local/lib/libpegprovider.so |
%attr(-,root,root) /usr/bin/ |
%attr(-,root,root) /usr/local/lib/libpegprotocol.so |
|
%attr(-,root,root) /usr/local/lib/libpeggetoopt.so |
%attr(-,root,root) /var/lib/pegasus/Schemas/ |
%attr(-,root,root) /usr/local/lib/libpegcompiler.so |
|
%attr(-,root,root) /usr/local/lib/libpegcommon.so |
|
%attr(-,root,root) /usr/local/lib/libpegclient.so |
|
%attr(-,root,root) /usr/local/lib/lib__NamespaceProvider.so |
|
%attr(-,root,root) /usr/local/lib/libMyProvider.so |
|
%attr(-,root,root) /usr/local/lib/libDynLib.so |
|
%attr(-,root,root) /usr/local/lib/libslp.so |
|
|
|
%attr(-,root,root) /usr/local/bin/cimserver |
|
%attr(-,root,root) /usr/local/bin/cimmof |
|
%attr(-,root,root) /usr/local/bin/Client |
|
%attr(-,root,root) /usr/local/bin/ClientServer |
|
%attr(-,root,root) /usr/local/bin/Repository |
|
|
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Application25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Core25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Core25_Add.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Device25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Events25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Metrics25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Network25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Network25_Add.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Physical25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Policy25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Schema25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_Support25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_System25.mof |
|
%attr(-,root,root) /etc/pegasus/mof/CIM_User25.mof |
|