1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
9 Release: 6%{?dist}%{?extra_release}
10 Summary: MinGW Windows libvirt virtualization library
13 Group: Development/Libraries
14 URL: http://libvirt.org/
15 Source0: ftp://libvirt.org/libvirt/libvirt-%{version}.tar.gz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18 Patch0: mingw32-libvirt-0.4.6-debug-registration.patch
19 Patch1: mingw32-libvirt-0.4.6-register-remote.patch
21 BuildRequires: mingw32-filesystem >= 23
22 BuildRequires: mingw32-gcc
23 BuildRequires: mingw32-binutils
24 BuildRequires: mingw32-libgpg-error
25 BuildRequires: mingw32-libgcrypt
26 BuildRequires: mingw32-gnutls
27 BuildRequires: mingw32-gettext
28 BuildRequires: mingw32-libxml2
29 # Portable XDR <= 4.0.10 contains a serious endianness bug on Windows.
30 BuildRequires: mingw32-portablexdr >= 4.0.11
31 BuildRequires: mingw32-readline
32 BuildRequires: pkgconfig
33 # Need native version for msgfmt
34 BuildRequires: gettext
40 MinGW Windows libvirt virtualization library.
44 %setup -q -n libvirt-%{version}
50 # XXX enable SASL in future
51 %{_mingw32_configure} \
65 rm -rf $RPM_BUILD_ROOT
67 make DESTDIR=$RPM_BUILD_ROOT install
69 rm -rf $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/libvirt
70 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/doc/*
71 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc/*
73 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt.a
77 rm -rf $RPM_BUILD_ROOT
82 %{_mingw32_bindir}/libvirt-0.dll
83 %{_mingw32_bindir}/virsh.exe
85 %{_mingw32_libdir}/libvirt.dll.a
86 %{_mingw32_libdir}/libvirt.la
87 %{_mingw32_libdir}/pkgconfig/libvirt.pc
89 %{_mingw32_datadir}/locale/*/LC_MESSAGES/libvirt.mo
91 %dir %{_mingw32_includedir}/libvirt
92 %{_mingw32_includedir}/libvirt/libvirt.h
93 %{_mingw32_includedir}/libvirt/virterror.h
95 %{_mingw32_mandir}/man1/virsh.1*
99 * Wed Oct 15 2008 Richard Jones <rjones@redhat.com> - 0.4.6-6
101 https://www.redhat.com/archives/libvir-list/2008-October/msg00328.html
102 - BR mingw32-portablexdr >= 4.0.11 to fix serious Windows endianness bug.
104 * Tue Oct 14 2008 Richard Jones <rjones@redhat.com> - 0.4.6-4
105 - +BR mingw32-readline.
107 * Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 0.4.6-3
108 - BuildArch should be noarch
110 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-2
111 - Whitespace removal.
113 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-1
114 - New upstream release 0.4.6.
115 - Rename mingw -> mingw32.
117 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-4%{?extra_release}
118 - Import crash fix from rawhide
120 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-3%{?extra_release}
121 - Add dep on gettext & pkgconfig
123 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.5-2
126 * Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.4-1
127 - Initial RPM release, largely based on earlier work from several sources.