os-cmpi-xen

view xen-cim-cmpi.spec.in @ 121:4868ace2726b

Add initial consistence checks in test suite for Xen_MemoryPool, Xen_ProcessorPool and Xen_VirtualSystemManagementService.

Signed-off-by: Luke Szymanski <Lukasz.Szymanski@Unisys.com>
author Jim Fehlig <jfehlig@novell.com>
date Fri Jun 08 10:22:05 2007 -0600 (2007-06-08)
parents 1faa76de765e
children
line source
1 # $Id:
2 # =============================================================================
3 # (C) Copyright IBM Corp. 2006
4 #
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2.1 of the License, or (at your option) any later version.
9 #
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 # =============================================================================
19 # Author: Dr. Gareth S. Bestor <bestor@us.ibm.com>
20 # Contributors:
21 # Description:
22 # RPM spec file for the CMPI Xen provider.
23 # =============================================================================
25 Summary: CMPI Xen provider
26 Name: @PACKAGE_TARNAME@
27 Version: @PACKAGE_VERSION@
28 Release: @CIMSERVER@
29 Group: Systems Management/Base
30 License: GNU Lesser General Public Version 2.1
31 Requires: cimserver
33 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
34 BuildRequires: cmpi-devel
35 Source0: http://prdownloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
37 # -----------------------------------------------------------------------------
39 %Description
40 TODO
42 # -----------------------------------------------------------------------------
44 %prep
45 %setup -n %{name}-%{version}
47 export PATCH_GET=0
48 #%patch0 -p0
50 # -----------------------------------------------------------------------------
52 %build
53 %configure TESTSUITEDIR=%{_datadir}/sblim-testsuite CIMSERVER=@CIMSERVER@
54 make
56 # -----------------------------------------------------------------------------
58 %clean
59 # paranoia check
60 if [ `id -ur` != 0 ]
61 then
62 rm -rf $RPM_BUILD_ROOT
63 fi
65 # -----------------------------------------------------------------------------
67 %install
68 # paranoia check
69 if [ `id -ur` != 0 ]
70 then
71 rm -rf $RPM_BUILD_ROOT
72 fi
74 make DESTDIR=$RPM_BUILD_ROOT install
76 # Remove unused libtool files
77 rm -f $RPM_BUILD_ROOT/%{_libdir}/cmpi/*a
79 # -----------------------------------------------------------------------------
81 %post
83 # LIST PROVIDER CLASS SCHEMA AND REGISTRATION FILES HERE
84 %define SCHEMA %{_datadir}/%{name}/Xen_ComputerSystem.mof
85 %define REGISTRATION %{_datadir}/%{name}/Xen_ComputerSystem.registration
87 # Register Schema and Provider
88 %{_datadir}/%{name}/provider-register.sh -t @CIMSERVER@ \
89 -r %{REGISTRATION} -m %{SCHEMA} > /dev/null
91 /sbin/ldconfig
93 # -----------------------------------------------------------------------------
95 %preun
97 # De-Register Schema and Provider
98 %{_datadir}/%{name}/provider-register.sh -d -t @CIMSERVER@ \
99 -r %{REGISTRATION} -m %{SCHEMA} > /dev/null
101 %postun
102 /sbin/ldconfig
104 # -----------------------------------------------------------------------------
106 %files
107 %defattr(-,root,root)
108 %{_datadir}/%{name}
109 %{_datadir}/doc/%{name}-%{version}
110 %{_libdir}/cmpi/*.so*