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: 8%{?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 # All of these patches are upstream after 0.4.6.
19 Patch0: mingw32-libvirt-0.4.6-debug-registration.patch
20 Patch1: mingw32-libvirt-0.4.6-register-remote.patch
21 Patch2: mingw32-libvirt-0.4.6-win-icon.patch
22 Source1: libvirt_win_icon_16x16.ico
23 Source2: libvirt_win_icon_32x32.ico
24 Source3: libvirt_win_icon_48x48.ico
25 Source4: libvirt_win_icon_64x64.ico
27 BuildRequires: mingw32-filesystem >= 23
28 BuildRequires: mingw32-gcc
29 BuildRequires: mingw32-binutils
30 BuildRequires: mingw32-libgpg-error
31 BuildRequires: mingw32-libgcrypt
32 BuildRequires: mingw32-gnutls
33 BuildRequires: mingw32-gettext
34 BuildRequires: mingw32-libxml2
35 # Portable XDR <= 4.0.10 contains a serious endianness bug on Windows.
36 BuildRequires: mingw32-portablexdr >= 4.0.11
37 BuildRequires: mingw32-readline
38 BuildRequires: mingw32-termcap >= 1.3.1-3
39 BuildRequires: pkgconfig
41 # Need native version for msgfmt
42 BuildRequires: gettext
45 BuildRequires: autoconf, automake, libtool
51 MinGW Windows libvirt virtualization library.
55 %setup -q -n libvirt-%{version}
67 # XXX enable SASL in future
68 %{_mingw32_configure} \
82 rm -rf $RPM_BUILD_ROOT
84 make DESTDIR=$RPM_BUILD_ROOT install
86 rm -rf $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/libvirt
87 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/doc/*
88 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc/*
90 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt.a
94 rm -rf $RPM_BUILD_ROOT
99 %{_mingw32_bindir}/libvirt-0.dll
100 %{_mingw32_bindir}/virsh.exe
102 %{_mingw32_libdir}/libvirt.dll.a
103 %{_mingw32_libdir}/libvirt.la
104 %{_mingw32_libdir}/pkgconfig/libvirt.pc
106 %{_mingw32_datadir}/locale/*/LC_MESSAGES/libvirt.mo
108 %dir %{_mingw32_includedir}/libvirt
109 %{_mingw32_includedir}/libvirt/libvirt.h
110 %{_mingw32_includedir}/libvirt/virterror.h
112 %{_mingw32_mandir}/man1/virsh.1*
116 * Fri Oct 31 2008 Richard Jones <rjones@redhat.com> - 0.4.6-8
117 - Rebuild against latest termcap.
119 * Thu Oct 16 2008 Richard Jones <rjones@redhat.com> - 0.4.6-7
120 - Windows icon patch from
121 https://www.redhat.com/archives/libvir-list/2008-October/msg00331.html
123 * Wed Oct 15 2008 Richard Jones <rjones@redhat.com> - 0.4.6-6
125 https://www.redhat.com/archives/libvir-list/2008-October/msg00328.html
126 - BR mingw32-portablexdr >= 4.0.11 to fix serious Windows endianness bug.
128 * Tue Oct 14 2008 Richard Jones <rjones@redhat.com> - 0.4.6-4
129 - +BR mingw32-readline.
131 * Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 0.4.6-3
132 - BuildArch should be noarch
134 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-2
135 - Whitespace removal.
137 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-1
138 - New upstream release 0.4.6.
139 - Rename mingw -> mingw32.
141 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-4%{?extra_release}
142 - Import crash fix from rawhide
144 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-3%{?extra_release}
145 - Add dep on gettext & pkgconfig
147 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.5-2
150 * Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.4-1
151 - Initial RPM release, largely based on earlier work from several sources.