|
Dan Smith |
52a029d |
# -*- rpm-spec -*-
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
Summary: A CIM provider for libvirt
|
|
Dan Smith |
52a029d |
Name: libvirt-cim
|
|
Kaitlin Rupert |
133ce5b |
Version: 0.5.4
|
|
|
e366efb |
Release: 2%{?dist}
|
|
Dan Smith |
52a029d |
License: LGPLv2+
|
|
Dan Smith |
52a029d |
Group: Development/Libraries
|
|
Dan Smith |
52a029d |
Source: libvirt-cim-%{version}.tar.gz
|
|
Dan Smith |
52a029d |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
Dan Smith |
52a029d |
URL: http://libvirt.org/CIM/
|
|
Dan Smith |
52a029d |
Requires: unzip
|
|
Kaitlin Rupert |
bd4df41 |
Requires: tog-pegasus
|
|
Dan Smith |
b3734dd |
BuildRequires: libcmpiutil >= 0.4
|
|
Dan Smith |
52a029d |
BuildRequires: tog-pegasus-devel
|
|
Dan Smith |
52a029d |
BuildRequires: libvirt-devel >= 0.3.2
|
|
Dan Smith |
52a029d |
BuildRequires: e2fsprogs-devel
|
|
Dan Smith |
52a029d |
BuildRequires: libxml2-devel
|
|
Dan Smith |
52a029d |
BuildRequires: libcmpiutil-devel
|
|
Dan Smith |
52a029d |
BuildConflicts: sblim-cmpi-devel
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%description
|
|
Dan Smith |
52a029d |
Libvirt-cim is a CMPI CIM provider that implements the DMTF SVPC
|
|
Dan Smith |
52a029d |
virtualization model. The goal is to support most of the features
|
|
Dan Smith |
52a029d |
exported by libvirt itself, enabling management of multiple
|
|
Dan Smith |
52a029d |
platforms with a single provider.
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%prep
|
|
Dan Smith |
52a029d |
%setup -q
|
|
Dan Smith |
0f51f93 |
chmod -f -x src/* libxkutil/* schema/* README doc/* #base_schema/README*
|
|
Dan Smith |
52a029d |
chmod +X src/* libxkutil/* schema/*
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%build
|
|
Dan Smith |
52a029d |
%configure --disable-werror
|
|
Dan Smith |
52a029d |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
Dan Smith |
52a029d |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
Dan Smith |
52a029d |
make %{?_smp_mflags}
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%install
|
|
Dan Smith |
52a029d |
rm -fr $RPM_BUILD_ROOT
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
Dan Smith |
8648999 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
Dan Smith |
52a029d |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
Dan Smith |
52a029d |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
Dan Smith |
52a029d |
rm -f $RPM_BUILD_ROOT%{_libdir}/cmpi/*.la
|
|
Dan Smith |
52a029d |
rm -f $RPM_BUILD_ROOT%{_libdir}/cmpi/*.a
|
|
Dan Smith |
52a029d |
rm -f $RPM_BUILD_ROOT%{_libdir}/libxkutil.so
|
|
Dan Smith |
a67273c |
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
|
Dan Smith |
8648999 |
echo %{_libdir}/cmpi > $RPM_BUILD_ROOT/etc/ld.so.conf.d/libvirt-cim.conf
|
|
Dan Smith |
fb0793d |
mkdir -p $RPM_BUILD_ROOT/etc/libvirt/cim
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%clean
|
|
Dan Smith |
52a029d |
rm -fr $RPM_BUILD_ROOT
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%pre
|
|
Dan Smith |
52a029d |
%define REGISTRATION %{_datadir}/%{name}/*.registration
|
|
Dan Smith |
52a029d |
%define SCHEMA %{_datadir}/%{name}/*.mof
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
b3734dd |
%define INTEROP_REG %{_datadir}/%{name}/{RegisteredProfile,ElementConformsToProfile,ReferencedProfile}.registration
|
|
Kaitlin Rupert |
bd4df41 |
%define INTEROP_MOF %{_datadir}/%{name}/{ComputerSystem,HostSystem,RegisteredProfile,DiskPool,MemoryPool,NetPool,ProcessorPool,VSMigrationService,ElementConformsToProfile,ReferencedProfile}.mof
|
|
Kaitlin Rupert |
bd4df41 |
|
|
Kaitlin Rupert |
bd4df41 |
%define CIMV2_REG %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,ElementConformsToProfile,HostedAccessPoint}.registration
|
|
Kaitlin Rupert |
bd4df41 |
%define CIMV2_MOF %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,RegisteredProfile,ComputerSystem,ElementConformsToProfile,HostedAccessPoint}.mof
|
|
Dan Smith |
8648999 |
|
|
Kaitlin Rupert |
133ce5b |
%define INTEROP_REG %{_datadir}/%{name}/{RegisteredProfile,ElementConformsToProfile,ReferencedProfile}.registration
|
|
Kaitlin Rupert |
133ce5b |
%define INTEROP_MOF %{_datadir}/%{name}/{ComputerSystem,HostSystem,RegisteredProfile,DiskPool,MemoryPool,NetPool,ProcessorPool,VSMigrationService,ElementConformsToProfile,ReferencedProfile}.mof
|
|
Kaitlin Rupert |
133ce5b |
|
|
Kaitlin Rupert |
133ce5b |
%define CIMV2_REG %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,ElementConformsToProfile,HostedAccessPoint}.registration
|
|
Kaitlin Rupert |
133ce5b |
%define CIMV2_MOF %{_datadir}/%{name}/{HostedResourcePool,ElementCapabilities,HostedService,HostedDependency,RegisteredProfile,ComputerSystem,ElementConformsToProfile,HostedAccessPoint}.mof
|
|
Kaitlin Rupert |
133ce5b |
|
|
Dan Smith |
52a029d |
# _If_ there is already a version of this installed, we must deregister
|
|
Dan Smith |
52a029d |
# the classes we plan to install in post, otherwise we may corrupt
|
|
Dan Smith |
52a029d |
# the pegasus repository. This is convention in other provider packages
|
|
Dan Smith |
52a029d |
%{_datadir}/%{name}/provider-register.sh -d -t pegasus \
|
|
Dan Smith |
5085ecc |
-n root/virt \
|
|
Dan Smith |
52a029d |
-r %{REGISTRATION} -m %{SCHEMA} >/dev/null 2>&1 || true
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%post
|
|
Dan Smith |
52a029d |
/sbin/ldconfig
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%{_datadir}/%{name}/install_base_schema.sh %{_datadir}/%{name}
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
/etc/init.d/tog-pegasus condrestart
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%{_datadir}/%{name}/provider-register.sh -t pegasus \
|
|
Dan Smith |
5085ecc |
-n root/virt \
|
|
Dan Smith |
52a029d |
-r %{REGISTRATION} -m %{SCHEMA} >/dev/null 2>&1 || true
|
|
Dan Smith |
8648999 |
%{_datadir}/%{name}/provider-register.sh -t pegasus \
|
|
Kaitlin Rupert |
133ce5b |
-n root/virt \
|
|
Kaitlin Rupert |
133ce5b |
-r %{REGISTRATION} -m %{SCHEMA} >/dev/null 2>&1 || true
|
|
Dan Smith |
b3734dd |
%{_datadir}/%{name}/provider-register.sh -t pegasus \
|
|
Kaitlin Rupert |
133ce5b |
-n root/interop \
|
|
Kaitlin Rupert |
133ce5b |
-r %{INTEROP_REG} -m %{INTEROP_MOF} -v >/dev/null 2>&1 || true
|
|
Kaitlin Rupert |
bd4df41 |
%{_datadir}/%{name}/provider-register.sh -t pegasus \
|
|
Kaitlin Rupert |
133ce5b |
-n root/cimv2\
|
|
Kaitlin Rupert |
133ce5b |
-r %{CIMV2_REG} -m %{CIMV2_MOF} -v >/dev/null 2>&1 || true
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%preun
|
|
Dan Smith |
52a029d |
%{_datadir}/%{name}/provider-register.sh -d -t pegasus \
|
|
Dan Smith |
5085ecc |
-n root/virt \
|
|
Dan Smith |
52a029d |
-r %{REGISTRATION} -m %{SCHEMA} >/dev/null 2>&1 || true
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%postun -p /sbin/ldconfig
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%files
|
|
Dan Smith |
52a029d |
%defattr(-, root, root)
|
|
Kaitlin Rupert |
eb771ac |
/etc/libvirt/cim
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%doc README COPYING doc/CodingStyle doc/SubmittingPatches
|
|
Dan Smith |
0f51f93 |
#%doc base_schema/README.DMTF
|
|
Dan Smith |
52a029d |
%doc doc/*.html
|
|
Dan Smith |
52a029d |
%{_libdir}/lib*.so*
|
|
Dan Smith |
52a029d |
# CIM providers are .so modules, thus they belong in the main package
|
|
Dan Smith |
52a029d |
%{_libdir}/cmpi/lib*.so*
|
|
Dan Smith |
52a029d |
%{_datadir}/libvirt-cim/*.sh
|
|
Dan Smith |
52a029d |
%{_datadir}/libvirt-cim/*.mof
|
|
Dan Smith |
52a029d |
%{_datadir}/libvirt-cim/cimv*-interop_mof
|
|
Kaitlin Rupert |
bd4df41 |
%{_datadir}/libvirt-cim/cimv*-cimv2_mof
|
|
Dan Smith |
52a029d |
%{_datadir}/libvirt-cim/*.registration
|
|
Dan Smith |
52a029d |
%{_datadir}/libvirt-cim/fix_schema.patch
|
|
Dan Smith |
52a029d |
%{_datadir}/libvirt-cim/cimv*-MOFs.zip
|
|
Dan Smith |
a67273c |
/etc/ld.so.conf.d/libvirt-cim.conf
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
%changelog
|
|
|
e366efb |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
|
|
|
e366efb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
e366efb |
|
|
Kaitlin Rupert |
133ce5b |
* Tue Feb 17 2009 Kaitlin Rupert <kaitlin@us.ibm.com> - 0.5.4-1
|
|
Kaitlin Rupert |
133ce5b |
- Updated to latest upstream source
|
|
Kaitlin Rupert |
bd4df41 |
|
|
Kaitlin Rupert |
eb771ac |
* Thu Jan 15 2009 Kaitlin Rupert <kaitlin@us.ibm.com> - 0.5.3-1
|
|
Kaitlin Rupert |
eb771ac |
- Updated to latest upstream source
|
|
Kaitlin Rupert |
eb771ac |
|
|
Kaitlin Rupert |
950e715 |
* Mon Oct 06 2008 Kaitlin Rupert <kaitlin@us.ibm.com> - 0.5.2-1
|
|
Kaitlin Rupert |
950e715 |
- Updated to latest upstream source
|
|
Kaitlin Rupert |
950e715 |
|
|
Kaitlin Rupert |
a2f1f38 |
* Tue Sep 23 2008 Kaitlin Rupert <kaitlin@us.ibm.com> - 0.5.1-5
|
|
Kaitlin Rupert |
a2f1f38 |
- Added vsmigser_schema patch to remove dup method name from VSMigrationService
|
|
Kaitlin Rupert |
a2f1f38 |
- Added mem_parse patch to set proper mem max_size and mem values
|
|
Kaitlin Rupert |
a2f1f38 |
- Added mig_prof_ver patch to report the proper Migration Profile version
|
|
Kaitlin Rupert |
a2f1f38 |
- Added hyp_conn_fail patch to fix when not connecting to hyp returns a failure
|
|
Kaitlin Rupert |
a2f1f38 |
- Added rm_def_virtdev patch to remove default DiskRADSD virtual device
|
|
Kaitlin Rupert |
a2f1f38 |
- Added rm_eafp_err patch to remove error status when EAFP no pool link exists
|
|
Kaitlin Rupert |
a2f1f38 |
- Added sdc_unsup patch to make SDC not return unsup for RASD to AC case
|
|
Kaitlin Rupert |
a2f1f38 |
|
|
Kaitlin Rupert |
1951118 |
* Wed Aug 27 2008 Kaitlin Rupert <kaitlin@us.ibm.com> - 0.5.1-4
|
|
Kaitlin Rupert |
68fdcef |
- Added nostate patch to consider XenFV no state guests as running guests
|
|
Kaitlin Rupert |
68fdcef |
- Added createsnap_override patch to add vendor defined values to CreateSnapshot
|
|
Kaitlin Rupert |
68fdcef |
- Added add_shutdown_rsc patch to add support for shutdown operation
|
|
Kaitlin Rupert |
68fdcef |
- Added vsmc_add_remove patch to expose Add/Remove resources via VSMC
|
|
Kaitlin Rupert |
68fdcef |
- Added override_refconf patch to fix dup devs where ID matches refconf dev ID
|
|
Kaitlin Rupert |
8dcb85b |
|
|
Dan Smith |
fb0793d |
* Thu Aug 07 2008 Dan Smith <danms@us.ibm.com> - 0.5.1-3
|
|
Dan Smith |
fb0793d |
- Added infostore_trunc patch to fix infostore corruption
|
|
Dan Smith |
fb0793d |
- Added vsss_paramname patch to fix VSSS parameter name
|
|
Dan Smith |
fb0793d |
- Added vsss_logic patch to fix terminal memory snapshot logic
|
|
Dan Smith |
fb0793d |
- Added /etc/libvirt/cim directory for infostore
|
|
Dan Smith |
fb0793d |
|
|
Dan Smith |
24d7916 |
* Thu Jul 31 2008 Dan Smith <danms@us.ibm.com> - 0.5.1-1
|
|
Dan Smith |
24d7916 |
- Updated to latest upstream source
|
|
Dan Smith |
24d7916 |
|
|
Dan Smith |
b3734dd |
* Thu Jun 03 2008 Dan Smith <danms@us.ibm.com> - 0.5-1
|
|
Dan Smith |
b3734dd |
- Updated to latest upstream source
|
|
Dan Smith |
b3734dd |
|
|
Dan Smith |
b3734dd |
* Fri May 30 2008 Dan Smith <danms@us.ibm.com> - 0.4-2
|
|
Dan Smith |
b3734dd |
- Fixed schema registration to pick up ECTP in root/virt properly
|
|
Dan Smith |
b3734dd |
- Fixed schema registration to include ReferencedProfile in interop
|
|
Dan Smith |
b3734dd |
- Added RASD namespace fix
|
|
Dan Smith |
b3734dd |
|
|
Dan Smith |
b3734dd |
* Wed May 21 2008 Dan Smith <danms@us.ibm.com> - 0.4-1
|
|
Dan Smith |
b3734dd |
- Updated to latest upstream source
|
|
Dan Smith |
b3734dd |
- Added default disk pool configuration patch
|
|
Dan Smith |
b3734dd |
|
|
Dan Smith |
13d3423 |
* Fri Mar 14 2008 Dan Smith <danms@us.ibm.com> - 0.3-4
|
|
Dan Smith |
8648999 |
- Fixed loader config for 64-bit systems
|
|
Dan Smith |
8648999 |
- Added missing root/interop schema install
|
|
Dan Smith |
13d3423 |
- Added RegisteredProfile.registration to install
|
|
Dan Smith |
8648999 |
|
|
Dan Smith |
4fbd8d5 |
* Fri Mar 07 2008 Dan Smith <danms@us.ibm.com> - 0.3-2
|
|
Dan Smith |
4fbd8d5 |
- Added KVM method enablement patch
|
|
Dan Smith |
4fbd8d5 |
|
|
Dan Smith |
1fb20f9 |
* Mon Mar 03 2008 Dan Smith <danms@us.ibm.com> - 0.3-1
|
|
Dan Smith |
1fb20f9 |
- Updated to latest upstream source
|
|
Dan Smith |
1fb20f9 |
|
|
Dan Smith |
5085ecc |
* Wed Feb 13 2008 Dan Smith <danms@us.ibm.com> - 0.2-1
|
|
Dan Smith |
5085ecc |
- Updated to latest upstream source
|
|
Dan Smith |
5085ecc |
|
|
Dan Smith |
a67273c |
* Thu Jan 17 2008 Dan Smith <danms@us.ibm.com> - 0.1-8
|
|
Dan Smith |
a67273c |
- Add ld.so.conf.d configuration
|
|
Dan Smith |
a67273c |
|
|
Dan Smith |
e8e8fd0 |
* Mon Jan 14 2008 Dan Smith <danms@us.ibm.com> - 0.1-7
|
|
Dan Smith |
f40f226 |
- Update to offical upstream release
|
|
Dan Smith |
e8e8fd0 |
- Patch source to fix parallel make issue until fixed upstream
|
|
Dan Smith |
f40f226 |
|
|
Dan Smith |
52a029d |
* Mon Jan 07 2008 Dan Smith <danms@us.ibm.com> - 0.1-3
|
|
Dan Smith |
52a029d |
- Remove RPATH on provider modules
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
* Mon Jan 07 2008 Dan Smith <danms@us.ibm.com> - 0.1-2
|
|
Dan Smith |
52a029d |
- Cleaned up Release
|
|
Dan Smith |
52a029d |
- Removed unnecessary Requires
|
|
Dan Smith |
52a029d |
- After install, condrestart pegasus
|
|
Dan Smith |
52a029d |
- Updated to latest source snapshot
|
|
Dan Smith |
52a029d |
|
|
Dan Smith |
52a029d |
* Fri Oct 26 2007 Daniel Veillard <veillard@redhat.com> - 0.1-1
|
|
Dan Smith |
52a029d |
- created
|