os-cmpi-xen

diff xen-cim-cmpi.spec.in @ 17:1faa76de765e

Changes to several files to satisfy the SuSE autobuild process, e.g. cleaned up warnings, buffer overflows, etc.
Also changed the name of project from sblim-cmpi-xen to xen-cim-cmpi.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author jfehlig@jfehlig3.provo.novell.com
date Tue Aug 15 17:58:31 2006 -0600 (2006-08-15)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xen-cim-cmpi.spec.in	Tue Aug 15 17:58:31 2006 -0600
     1.3 @@ -0,0 +1,111 @@
     1.4 +# $Id:
     1.5 +# =============================================================================
     1.6 +# (C) Copyright IBM Corp. 2006
     1.7 +#
     1.8 +#    This library is free software; you can redistribute it and/or
     1.9 +#    modify it under the terms of the GNU Lesser General Public
    1.10 +#    License as published by the Free Software Foundation; either
    1.11 +#    version 2.1 of the License, or (at your option) any later version.
    1.12 +#
    1.13 +#    This library is distributed in the hope that it will be useful,
    1.14 +#    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +#    Lesser General Public License for more details.
    1.17 +#
    1.18 +#    You should have received a copy of the GNU Lesser General Public
    1.19 +#    License along with this library; if not, write to the Free Software
    1.20 +#    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.21 +# =============================================================================
    1.22 +# Author:       Dr. Gareth S. Bestor <bestor@us.ibm.com>
    1.23 +# Contributors:
    1.24 +# Description:
    1.25 +#    RPM spec file for the CMPI Xen provider.
    1.26 +# =============================================================================
    1.27 +
    1.28 +Summary: CMPI Xen provider
    1.29 +Name: @PACKAGE_TARNAME@
    1.30 +Version: @PACKAGE_VERSION@
    1.31 +Release: @CIMSERVER@
    1.32 +Group: Systems Management/Base
    1.33 +License: GNU Lesser General Public Version 2.1
    1.34 +Requires: cimserver
    1.35 +
    1.36 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
    1.37 +BuildRequires: cmpi-devel
    1.38 +Source0: http://prdownloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2
    1.39 +
    1.40 +# -----------------------------------------------------------------------------
    1.41 +
    1.42 +%Description
    1.43 +TODO
    1.44 +
    1.45 +# -----------------------------------------------------------------------------
    1.46 +
    1.47 +%prep
    1.48 +%setup -n %{name}-%{version}
    1.49 +
    1.50 +export PATCH_GET=0
    1.51 +#%patch0 -p0
    1.52 +
    1.53 +# -----------------------------------------------------------------------------
    1.54 +
    1.55 +%build
    1.56 +%configure TESTSUITEDIR=%{_datadir}/sblim-testsuite CIMSERVER=@CIMSERVER@
    1.57 +make
    1.58 +
    1.59 +# -----------------------------------------------------------------------------
    1.60 +                                                                                                                
    1.61 +%clean
    1.62 +# paranoia check
    1.63 +if [ `id -ur` != 0 ]
    1.64 +then
    1.65 +   rm -rf $RPM_BUILD_ROOT
    1.66 +fi
    1.67 +
    1.68 +# -----------------------------------------------------------------------------
    1.69 +
    1.70 +%install
    1.71 +# paranoia check
    1.72 +if [ `id -ur` != 0 ]
    1.73 +then
    1.74 +   rm -rf $RPM_BUILD_ROOT 
    1.75 +fi
    1.76 +
    1.77 +make DESTDIR=$RPM_BUILD_ROOT install
    1.78 +
    1.79 +# Remove unused libtool files
    1.80 +rm -f $RPM_BUILD_ROOT/%{_libdir}/cmpi/*a
    1.81 +
    1.82 +# -----------------------------------------------------------------------------
    1.83 +
    1.84 +%post
    1.85 +
    1.86 +# LIST PROVIDER CLASS SCHEMA AND REGISTRATION FILES HERE
    1.87 +%define SCHEMA %{_datadir}/%{name}/Xen_ComputerSystem.mof
    1.88 +%define REGISTRATION %{_datadir}/%{name}/Xen_ComputerSystem.registration
    1.89 +
    1.90 +# Register Schema and Provider
    1.91 +%{_datadir}/%{name}/provider-register.sh -t @CIMSERVER@ \
    1.92 +        -r %{REGISTRATION} -m %{SCHEMA} > /dev/null
    1.93 +
    1.94 +/sbin/ldconfig
    1.95 +
    1.96 +# -----------------------------------------------------------------------------
    1.97 +                                                                                
    1.98 +%preun
    1.99 +
   1.100 +# De-Register Schema and Provider
   1.101 +%{_datadir}/%{name}/provider-register.sh -d -t @CIMSERVER@ \
   1.102 +        -r %{REGISTRATION} -m %{SCHEMA} > /dev/null
   1.103 +                                                                                
   1.104 +%postun
   1.105 +/sbin/ldconfig
   1.106 +                                                                                
   1.107 +# -----------------------------------------------------------------------------
   1.108 +
   1.109 +%files
   1.110 +%defattr(-,root,root)
   1.111 +%{_datadir}/%{name}
   1.112 +%{_datadir}/doc/%{name}-%{version}
   1.113 +%{_libdir}/cmpi/*.so*
   1.114 +