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: 4%{?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 BuildRequires: mingw32-filesystem >= 23
19 BuildRequires: mingw32-gcc
20 BuildRequires: mingw32-binutils
21 BuildRequires: mingw32-libgpg-error
22 BuildRequires: mingw32-libgcrypt
23 BuildRequires: mingw32-gnutls
24 BuildRequires: mingw32-gettext
25 BuildRequires: mingw32-libxml2
26 # Portable XDR <= 4.0.10 contains a serious endianness bug on Windows.
27 BuildRequires: mingw32-portablexdr >= 4.0.11
28 BuildRequires: mingw32-readline
29 BuildRequires: mingw32-termcap >= 1.3.1-3
30 BuildRequires: pkgconfig
32 # Need native version for msgfmt
33 BuildRequires: gettext
41 MinGW Windows libvirt virtualization library.
45 %setup -q -n libvirt-%{version}
49 # XXX enable SASL in future
50 %{_mingw32_configure} \
66 rm -rf $RPM_BUILD_ROOT
68 make DESTDIR=$RPM_BUILD_ROOT install
70 rm -rf $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/libvirt
71 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/doc/*
72 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc/*
78 rm -rf $RPM_BUILD_ROOT
81 %files -f libvirt.lang
84 %{_mingw32_bindir}/libvirt-0.dll
85 %{_mingw32_bindir}/virsh.exe
87 %{_mingw32_libdir}/libvirt.dll.a
88 %{_mingw32_libdir}/libvirt.la
89 %{_mingw32_libdir}/pkgconfig/libvirt.pc
91 %dir %{_mingw32_includedir}/libvirt
92 %{_mingw32_includedir}/libvirt/libvirt.h
93 %{_mingw32_includedir}/libvirt/virterror.h
95 %{_mingw32_mandir}/man1/virsh.1*
99 * Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 0.5.1-4
100 - Rebuild for mingw32-gcc 4.4
102 * Fri Jan 30 2009 Richard Jones <rjones@redhat.com> - 0.5.1-3
103 - Include license file.
105 * Fri Jan 30 2009 Richard Jones <rjones@redhat.com> - 0.5.1-2
106 - Requires pkgconfig.
108 * Fri Jan 23 2009 Richard Jones <rjones@redhat.com> - 0.5.1-1
109 - Rebase to Fedora native version 0.5.1.
110 - Use find_lang macro.
112 - Disable static libraries.
114 * Wed Nov 26 2008 Richard Jones <rjones@redhat.com> - 0.5.0-1
115 - New upstream version 0.5.0.
117 * Sat Nov 22 2008 Richard Jones <rjones@redhat.com> - 0.4.6-9
118 - Rebuild against new readline.
120 * Fri Oct 31 2008 Richard Jones <rjones@redhat.com> - 0.4.6-8
121 - Rebuild against latest termcap.
123 * Thu Oct 16 2008 Richard Jones <rjones@redhat.com> - 0.4.6-7
124 - Windows icon patch from
125 https://www.redhat.com/archives/libvir-list/2008-October/msg00331.html
127 * Wed Oct 15 2008 Richard Jones <rjones@redhat.com> - 0.4.6-6
129 https://www.redhat.com/archives/libvir-list/2008-October/msg00328.html
130 - BR mingw32-portablexdr >= 4.0.11 to fix serious Windows endianness bug.
132 * Tue Oct 14 2008 Richard Jones <rjones@redhat.com> - 0.4.6-4
133 - +BR mingw32-readline.
135 * Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 0.4.6-3
136 - BuildArch should be noarch
138 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-2
139 - Whitespace removal.
141 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-1
142 - New upstream release 0.4.6.
143 - Rename mingw -> mingw32.
145 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-4%{?extra_release}
146 - Import crash fix from rawhide
148 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-3%{?extra_release}
149 - Add dep on gettext & pkgconfig
151 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.5-2
154 * Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.4-1
155 - Initial RPM release, largely based on earlier work from several sources.