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: 3%{?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 BuildRequires: mingw32-portablexdr
27 BuildRequires: pkgconfig
28 # Need native version for msgfmt
29 BuildRequires: gettext
35 MinGW Windows libvirt virtualization library.
39 %setup -q -n libvirt-%{version}
43 # XXX enable SASL in future
44 %{_mingw32_configure} \
58 rm -rf $RPM_BUILD_ROOT
60 make DESTDIR=$RPM_BUILD_ROOT install
62 rm -rf $RPM_BUILD_ROOT%{_mingw32_sysconfdir}/libvirt
63 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/doc/*
64 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc/*
66 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt.a
70 rm -rf $RPM_BUILD_ROOT
75 %{_mingw32_bindir}/libvirt-0.dll
76 %{_mingw32_bindir}/virsh.exe
78 %{_mingw32_libdir}/libvirt.dll.a
79 %{_mingw32_libdir}/libvirt.la
80 %{_mingw32_libdir}/pkgconfig/libvirt.pc
82 %{_mingw32_datadir}/locale/*/LC_MESSAGES/libvirt.mo
84 %dir %{_mingw32_includedir}/libvirt
85 %{_mingw32_includedir}/libvirt/libvirt.h
86 %{_mingw32_includedir}/libvirt/virterror.h
88 %{_mingw32_mandir}/man1/virsh.1*
92 * Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 0.4.6-3
93 - BuildArch should be noarch
95 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-2
98 * Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.6-1
99 - New upstream release 0.4.6.
100 - Rename mingw -> mingw32.
102 * Mon Sep 22 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-4%{?extra_release}
103 - Import crash fix from rawhide
105 * Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.5-3%{?extra_release}
106 - Add dep on gettext & pkgconfig
108 * Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.4.5-2
111 * Tue Sep 2 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.4-1
112 - Initial RPM release, largely based on earlier work from several sources.