2008-10-10 19:33:10 +08:00
|
|
|
%define __strip %{_mingw32_strip}
|
|
|
|
%define __objdump %{_mingw32_objdump}
|
|
|
|
%define _use_internal_dependency_generator 0
|
|
|
|
%define __find_requires %{_mingw32_findrequires}
|
|
|
|
%define __find_provides %{_mingw32_findprovides}
|
2010-05-05 01:12:01 +08:00
|
|
|
%define __debug_install_post %{_mingw32_debug_install_post}
|
2008-10-10 19:33:10 +08:00
|
|
|
|
|
|
|
Name: mingw32-libvirt
|
|
|
|
Version: @VERSION@
|
|
|
|
Release: 3%{?dist}%{?extra_release}
|
|
|
|
Summary: MinGW Windows libvirt virtualization library
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://libvirt.org/
|
|
|
|
Source0: ftp://libvirt.org/libvirt/libvirt-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildRequires: mingw32-filesystem >= 23
|
|
|
|
BuildRequires: mingw32-gcc
|
|
|
|
BuildRequires: mingw32-binutils
|
|
|
|
BuildRequires: mingw32-libgpg-error
|
|
|
|
BuildRequires: mingw32-libgcrypt
|
|
|
|
BuildRequires: mingw32-gnutls
|
|
|
|
BuildRequires: mingw32-gettext
|
|
|
|
BuildRequires: mingw32-libxml2
|
|
|
|
BuildRequires: mingw32-portablexdr
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
# Need native version for msgfmt
|
|
|
|
BuildRequires: gettext
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2010-05-05 01:12:01 +08:00
|
|
|
%{?_mingw32_debug_package}
|
2008-10-10 19:33:10 +08:00
|
|
|
|
|
|
|
%description
|
|
|
|
MinGW Windows libvirt virtualization library.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n libvirt-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
# XXX enable SASL in future
|
|
|
|
%{_mingw32_configure} \
|
|
|
|
--without-sasl \
|
|
|
|
--without-avahi \
|
|
|
|
--without-polkit \
|
|
|
|
--without-python \
|
|
|
|
--without-xen \
|
|
|
|
--without-qemu \
|
|
|
|
--without-lxc \
|
2008-11-25 19:27:51 +08:00
|
|
|
--without-uml \
|
2009-04-20 00:37:15 +08:00
|
|
|
--without-vbox \
|
2008-10-10 19:33:10 +08:00
|
|
|
--without-openvz \
|
2009-07-25 00:20:50 +08:00
|
|
|
--without-phyp \
|
2009-07-30 20:07:51 +08:00
|
|
|
--without-netcf \
|
2010-09-15 21:44:11 +08:00
|
|
|
--without-audit \
|
Add dtrace static probes in libvirtd
Adds initial support for dtrace static probes in libvirtd
daemon, assuming use of systemtap dtrace compat shim on
Linux. The probes are inserted for network client connect,
disconnect, TLS handshake states and authentication protocol
states.
This can be tested by running the xample program and then
attempting to connect with any libvirt client (virsh,
virt-manager, etc).
# stap examples/systemtap/client.stp
Client fd=44 connected readonly=0
Client fd=44 auth polkit deny pid:24997,uid:500
Client fd=44 disconnected
Client fd=46 connected readonly=1
Client fd=46 auth sasl allow test
Client fd=46 disconnected
The libvirtd.stp file should also really not be required,
since it is duplicated info that is already available in
the main probes.d definition file. A script to autogenerate
the .stp file is needed, either in libvirtd tree, or better
as part of systemtap itself.
* Makefile.am: Add examples/systemtap subdir
* autobuild.sh: Disable dtrace for mingw32
* configure.ac: Add check for dtrace
* daemon/.gitignore: Ignore generated dtrace probe file
* daemon/Makefile.am: Build dtrace probe header & object
files
* daemon/libvirtd.stp: SystemTAP convenience probeset
* daemon/libvirtd.c: Add connect/disconnect & TLS probes
* daemon/remote.c: Add SASL and PolicyKit auth probes
* daemon/probes.d: Master probe definition
* daemon/libvirtd.h: Add convenience macro for probes
so that compilation is a no-op when dtrace is not available
* examples/systemtap/Makefile.am, examples/systemtap/client.stp
Example systemtap script using dtrace probe markers
* libvirt.spec.in: Enable dtrace on F13/RHEL6
* mingw32-libvirt.spec.in: Force disable dtrace
2010-09-15 00:30:32 +08:00
|
|
|
--without-dtrace \
|
2008-10-10 19:33:10 +08:00
|
|
|
--without-libvirtd
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/libvirt
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/doc/*
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc/*
|
|
|
|
|
|
|
|
rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt.a
|
2010-09-04 03:48:25 +08:00
|
|
|
rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt-qemu.a
|
2008-10-10 19:33:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mingw32_bindir}/libvirt-0.dll
|
|
|
|
%{_mingw32_bindir}/virsh.exe
|
2009-04-20 00:47:43 +08:00
|
|
|
%{_mingw32_bindir}/virt-xml-validate
|
2009-09-16 21:42:57 +08:00
|
|
|
%{_mingw32_bindir}/virt-pki-validate
|
2010-09-04 03:48:25 +08:00
|
|
|
%{_mingw32_bindir}/libvirt-qemu-0.dll
|
2008-10-10 19:33:10 +08:00
|
|
|
|
|
|
|
%{_mingw32_libdir}/libvirt.dll.a
|
|
|
|
%{_mingw32_libdir}/libvirt.la
|
|
|
|
%{_mingw32_libdir}/pkgconfig/libvirt.pc
|
2010-09-04 03:48:25 +08:00
|
|
|
%{_mingw32_libdir}/libvirt-qemu.dll.a
|
|
|
|
%{_mingw32_libdir}/libvirt-qemu.la
|
2008-10-10 19:33:10 +08:00
|
|
|
|
2009-01-27 23:29:53 +08:00
|
|
|
%dir %{_mingw32_datadir}/libvirt/
|
|
|
|
%dir %{_mingw32_datadir}/libvirt/schemas/
|
|
|
|
%{_mingw32_datadir}/libvirt/schemas/domain.rng
|
2010-06-03 04:21:45 +08:00
|
|
|
%{_mingw32_datadir}/libvirt/schemas/domainsnapshot.rng
|
2009-01-27 23:29:53 +08:00
|
|
|
%{_mingw32_datadir}/libvirt/schemas/network.rng
|
|
|
|
%{_mingw32_datadir}/libvirt/schemas/storagepool.rng
|
|
|
|
%{_mingw32_datadir}/libvirt/schemas/storagevol.rng
|
|
|
|
%{_mingw32_datadir}/libvirt/schemas/nodedev.rng
|
|
|
|
%{_mingw32_datadir}/libvirt/schemas/capability.rng
|
Fix misc Win32 compile warnings
GCC >= 4.4 assumes the 'printf' attribute refers to the native
runtime libraries format specifiers. Thanks to gnulib, libvirt
has GNU format specifiers everywhere. This means we need to
use 'gnu_printf' with GCC >= 4.4 to get correct compiler
checking of printf format specifiers.
* HACKING: Document new rules for ATTRIBUTE_FMT_PRINTF
* autobuild.sh, mingw32-libvirt.spec.in: Disable OpenNebula
driver on mingw32 builds
* qemud/dispatch.h, qemud/qemu.h, src/buf.h src/internal.h,
src/logging.h, src/security.h, src/sexpr.h, src/util.h,
src/virterror_internal.h, src/xend_internal.c: Change
over to ATTRIBUTE_FMT_PRINTF.
* src/virsh.c: Disable 'cd' and 'pwd' commands on Win32
since they don't compile
* src/threads-win32.c: Add missing return value check
2009-07-23 23:07:32 +08:00
|
|
|
%{_mingw32_datadir}/libvirt/schemas/interface.rng
|
2010-05-05 01:12:01 +08:00
|
|
|
%{_mingw32_datadir}/libvirt/schemas/nwfilter.rng
|
2009-07-28 08:39:48 +08:00
|
|
|
%{_mingw32_datadir}/libvirt/schemas/secret.rng
|
2009-08-20 03:50:10 +08:00
|
|
|
%{_mingw32_datadir}/libvirt/schemas/storageencryption.rng
|
2009-01-27 23:29:53 +08:00
|
|
|
|
2010-05-05 01:12:01 +08:00
|
|
|
%{_mingw32_datadir}/libvirt/cpu_map.xml
|
|
|
|
|
2008-10-10 19:33:10 +08:00
|
|
|
%{_mingw32_datadir}/locale/*/LC_MESSAGES/libvirt.mo
|
|
|
|
|
|
|
|
%dir %{_mingw32_includedir}/libvirt
|
|
|
|
%{_mingw32_includedir}/libvirt/libvirt.h
|
|
|
|
%{_mingw32_includedir}/libvirt/virterror.h
|
2010-09-04 03:48:25 +08:00
|
|
|
%{_mingw32_includedir}/libvirt/libvirt-qemu.h
|
2008-10-10 19:33:10 +08:00
|
|
|
|
|
|
|
%{_mingw32_mandir}/man1/virsh.1*
|
2009-04-20 00:47:43 +08:00
|
|
|
%{_mingw32_mandir}/man1/virt-xml-validate.1*
|
2009-09-16 21:42:57 +08:00
|
|
|
%{_mingw32_mandir}/man1/virt-pki-validate.1*
|
2008-10-10 19:33:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 0.4.6-3
|
|
|
|
- BuildArch should be noarch
|
|
|
|
|
|
|
|
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-2
|
|
|
|
- Whitespace removal.
|
|
|
|
|
|
|
|
* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-1
|
|
|
|
- New upstream release 0.4.6.
|
|
|
|
- Rename mingw -> mingw32.
|
|
|
|
|
|
|
|
* Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-4%{?extra_release}
|
|
|
|
- Import crash fix from rawhide
|
|
|
|
|
|
|
|
* Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-3%{?extra_release}
|
|
|
|
- Add dep on gettext & pkgconfig
|
|
|
|
|
|
|
|
* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.5-2
|
|
|
|
- Remove static lib.
|
|
|
|
|
|
|
|
* Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.4-1
|
|
|
|
- Initial RPM release, largely based on earlier work from several sources.
|